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 Richard.West
Recipients Ari.Consul, Richard.West, asisco, dmalcolm, eraonel, eric.araujo, flox, hozn, loewis, miro_ilias, orsenthil, spaceli, spprakash
Date 2012-05-21.22:11:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337638272.86.0.610239375237.issue9631@psf.upfronthosting.co.za>
In-reply-to
Content
I also had an ImportError on _struct module during 'make install' when building 2.7.3 from source configured with --enable-shared. My solution, which *seems* to have worked, is simple:

   $ make -i install
   $ make install

My guess is that the part of the 'make install' that copies _struct.so into the correct place occurs AFTER a part of the 'make install' that tries to use it. If you tell make to ignore errors and carry on (-i), it then completes the installation, copies _struct.so (and everything else) into their correct places, and you can then do another make install without any errors!

I hope this helps someone track down a sensible fix, and in the mean-time provides a work-around for the rest of us.
(p.s. remember your PYTHONHOME and PYTHON_PATH should be clear before making)
History
Date User Action Args
2012-05-21 22:11:13Richard.Westsetrecipients: + Richard.West, loewis, orsenthil, eric.araujo, hozn, flox, dmalcolm, spprakash, Ari.Consul, asisco, eraonel, miro_ilias, spaceli
2012-05-21 22:11:12Richard.Westsetmessageid: <1337638272.86.0.610239375237.issue9631@psf.upfronthosting.co.za>
2012-05-21 22:11:12Richard.Westlinkissue9631 messages
2012-05-21 22:11:12Richard.Westcreate