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.
Created on 2010年02月07日 23:22 by flox, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue7880_sysconfig.diff | flox, 2010年02月07日 23:47 | Patch, apply to trunk | ||
| Messages (8) | |||
|---|---|---|---|
| msg99027 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年02月07日 23:22 | |
~ $ cd /tmp ~ $ ln -s /usr/local/bin/python . ~ $ ./python -c "import sys; print sys.executable" 'import site' failed; use -v for traceback /tmp/python |
|||
| msg99028 - (view) | Author: Tarek Ziadé (tarek) * (Python committer) | Date: 2010年02月07日 23:28 | |
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) |
|||
| msg99029 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年02月07日 23:43 | |
proposed fix. |
|||
| msg99030 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年02月07日 23:47 | |
actually realpath == abspath on most platforms where symlink is not implemented. Changed. |
|||
| msg99112 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2010年02月09日 12:05 | |
Why would sys.executable be a directory? |
|||
| msg99113 - (view) | Author: Tarek Ziadé (tarek) * (Python committer) | Date: 2010年02月09日 12:15 | |
Antoine, see http://bugs.python.org/issue7774 |
|||
| msg99114 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年02月09日 12:19 | |
Yes, it is the issue #7774. The patch proposed on msg98284 should fix sys.executable being a directory. Tarek, if you implement the patch for sysconfig, add a note regarding the dir hack: # XXX : see issue 7774 |
|||
| msg100818 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2010年03月11日 00:09 | |
Fixed in r78828 and r78829 (py3k), except for the part related to #7774. (It was turning buildbots red, after Victor fixed #3137) |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:57 | admin | set | github: 52128 |
| 2010年03月23日 11:48:42 | flox | set | status: pending -> closed |
| 2010年03月11日 00:09:34 | flox | set | status: open -> pending resolution: fixed messages: + msg100818 stage: patch review -> resolved |
| 2010年02月09日 12:19:25 | flox | set | messages: + msg99114 |
| 2010年02月09日 12:15:03 | tarek | set | messages: + msg99113 |
| 2010年02月09日 12:05:47 | pitrou | set | nosy:
+ pitrou messages: + msg99112 |
| 2010年02月07日 23:47:44 | flox | set | files:
+ issue7880_sysconfig.diff messages: + msg99030 |
| 2010年02月07日 23:46:35 | flox | set | files: - issue7880_sysconfig.diff |
| 2010年02月07日 23:43:31 | flox | set | stage: patch review |
| 2010年02月07日 23:43:18 | flox | set | files:
+ issue7880_sysconfig.diff keywords: + patch messages: + msg99029 |
| 2010年02月07日 23:28:43 | tarek | set | messages: + msg99028 |
| 2010年02月07日 23:26:18 | tarek | set | priority: normal -> high |
| 2010年02月07日 23:22:10 | flox | create | |