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
sysconfig does not like symlinks #52128
Comments
~ $ cd /tmp |
florentx
mannequin
added
stdlib
Python modules in the Lib dir
type-bug
An unexpected behavior, bug, or error
labels
Feb 7, 2010
Here's the traceback, I'll look at the problem asap 'import site' failed; traceback:
Traceback (most recent call last):
File "/MacDev/svn.python.org/python-trunk/Lib/site.py", line 530, in <module>
main()
File "/MacDev/svn.python.org/python-trunk/Lib/site.py", line 509, in main
addbuilddir()
File "/MacDev/svn.python.org/python-trunk/Lib/site.py", line 118, in addbuilddir
s = "build/lib.%s-%.3s" % (get_platform(), sys.version)
File "/MacDev/svn.python.org/python-trunk/Lib/sysconfig.py", line 577, in get_platform
cfgvars = get_config_vars()
File "/MacDev/svn.python.org/python-trunk/Lib/sysconfig.py", line 402, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/MacDev/svn.python.org/python-trunk/Lib/sysconfig.py", line 255, in _init_posix
raise IOError(msg)
IOError: invalid Python installation: unable to open /usr/local/lib/python2.7/config/Makefile (No such file or directory) |
proposed fix. |
actually realpath == abspath on most platforms where symlink is not implemented. Changed. |
Why would sys.executable be a directory? |
Antoine, see http://bugs.python.org/issue7774 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: