This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xdegaye
Recipients jojo, ned.deily, xdegaye, yaro-yaro
Date 2016-09-09.13:57:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473429459.72.0.143960336365.issue26971@psf.upfronthosting.co.za>
In-reply-to
Content
The problem can be reproduced as follows:

Run the following commands to install python with a site configuration file that installs the libraries to lib64:

  export INSTALL_DIR=/some/path/to/install
  mkdir -p $INSTALL_DIR/share
  echo "test \"\$libdir\" = '\${exec_prefix}/lib' && libdir='\${exec_prefix}/lib64'" > $INSTALL_DIR/share/config.site
  ./configure --prefix=$INSTALL_DIR && make install

Check that the libraries have been installed to lib64 and that python fails to find them:

$ find $INSTALL_DIR -name lib-dynload
/some/path/to/install/lib64/python3.6/lib-dynload

$ $INSTALL_DIR/bin/python3 -E
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python 3.6.0a4+ (default:98a57845c8cc, Sep  9 2016, 15:34:27) 
[GCC 6.1.1 20160707] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import base64
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/some/path/to/install/lib/python3.6/base64.py", line 10, in <module>
    import struct
  File "/some/path/to/install/lib/python3.6/struct.py", line 13, in <module>
    from _struct import *
ModuleNotFoundError: No module named '_struct'
>>>
History
Date User Action Args
2016-09-09 13:57:39xdegayesetrecipients: + xdegaye, ned.deily, yaro-yaro, jojo
2016-09-09 13:57:39xdegayesetmessageid: <1473429459.72.0.143960336365.issue26971@psf.upfronthosting.co.za>
2016-09-09 13:57:39xdegayelinkissue26971 messages
2016-09-09 13:57:39xdegayecreate