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 yaro-yaro
Recipients yaro-yaro
Date 2016-05-07.13:41:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462628482.0.0.926875224828.issue26971@psf.upfronthosting.co.za>
In-reply-to
Content
#wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tar.xz
#xz -d Python-3.5.1.tar.xz
#tar xvf Python-3.5.1.tar
#cd Python-3.5.1
#./configure --prefix=/usr
#make
#make altinstall

-----------------------------------

so far so good

but afterwards

$python3.5
>>>import base64

results in

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.5/base64.py", line 10, in <module>
    import struct
  File "/usr/lib/python3.5/struct.py", line 13, in <module>
    from _struct import *
ImportError: No module named '_struct'

------------------------------------------

>>>import sys
>>>sys.path
['', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-linux', '/usr/lib/lib-dynload', '/usr/lib/python3.5/site-packages']

------------------------------------------

this path is wrong '/usr/lib/lib-dynload'
correctly it should point to the '/usr/lib64/python3.5/lib-dynload' as per the destination folders generated and used via configure / make / make altinstall

thank you
yaro-yaro
History
Date User Action Args
2016-05-07 13:41:24yaro-yarosetrecipients: + yaro-yaro
2016-05-07 13:41:22yaro-yarosetmessageid: <1462628482.0.0.926875224828.issue26971@psf.upfronthosting.co.za>
2016-05-07 13:41:21yaro-yarolinkissue26971 messages
2016-05-07 13:41:20yaro-yarocreate