Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document potential interference issues with ~/.pydistutils.cfg #5961

Closed
sagetrac-mabshoff mannequin opened this issue May 2, 2009 · 3 comments
Closed

Document potential interference issues with ~/.pydistutils.cfg #5961

sagetrac-mabshoff mannequin opened this issue May 2, 2009 · 3 comments

Comments

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented May 2, 2009

See https://groups.google.com/group/sage-devel/browse_thread/thread/2cee11b068180497

Dear Sage developers,

I tried to build Sage-3.4 on my intel macbook (Mac OS X 10.4.11).  I
have Xcode 2.5 installed and gcc-4.0.1. I downloaded the sage-3.4.tar,
untarred it and ran make. I have macports installed so changed the PATH
to remove anything from /opt.  I also renamed /opt to something else in
one attempt but both failed with the same error:

-------------
[...]
Sleeping for three seconds before testing python
Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "/Users/prabhu/src/build/sage-3.4/local/lib/python2.5/md5.py",
line 6, in <module>
     from hashlib import md5
   File
"/Users/prabhu/src/build/sage-3.4/local/lib/python2.5/hashlib.py", line
133, in <module>
     md5 = __get_builtin_constructor('md5')
   File
"/Users/prabhu/src/build/sage-3.4/local/lib/python2.5/hashlib.py", line
60, in __get_builtin_constructor
     import _md5
ImportError: No module named _md5
md5 module failed to import
[...]
sage: An error occurred while installing python-2.5.2.p9
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /Users/prabhu/src/build/sage-3.4/install.log.  Describe your
computer, operating system, etc.

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

Searching the lists for this gave me this:

http://groups.google.com/group/sage-devel/browse_thread/thread/e2fcb3...

which isn't very helpful.

After spending a little while figuring out what is wrong I realize that
I've done something a little non-standard that broke things.  I have
a default ~/.pydistutils.cfg which reads like so:

[install]
install_lib = ~/Library/Python/$py_version_short/site-packages
install_scripts = ~/usr/bin

I completely forgot about this and my install logs indicated a large
number of files being installed in the `install_lib` directory. So
moving this .pydistutils.cfg out of the way helped resolve the problem
and the build went well.

I think this should be documented somewhere so others don't fall into
the same trap.  Thanks.

cheers,
prabhu 

Component: documentation

Reviewer: Karl-Dieter Crisman

Issue created by migration from https://trac.sagemath.org/ticket/5961

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-5.11 milestone May 2, 2009
@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@kcrisman
Copy link
Member

kcrisman commented Jan 5, 2015

comment:5

This is a dup of #9536.

@kcrisman
Copy link
Member

kcrisman commented Jan 5, 2015

Reviewer: Karl-Dieter Crisman

@kcrisman
Copy link
Member

kcrisman commented Jan 5, 2015

comment:6

Not that that one has had much activity lately either, but it has an actual patch and some conversation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants