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
Possible OSX module location bug #38343
Comments
I have an app with a testfile 'os.py' that was designed to Running scripts from the directory containing this file An OSX user reported an error trying to run the scripts. I can't reproduce it since I don't have OSX, but if Create a subdirectory under site-packages User didn't appear to have anything too funky in sys.path |
Logged In: YES I tried this with all three of
None of these see os.py in the current directory. The only thing I can If this isn't the case, ask for the following:
|
Logged In: YES Here's what he sent me before. I'll go ahead and forward a link to this bug to him. Unless he python -v buildWeb.py
# /usr/lib/python2.2/site.pyc
matches /usr/lib/python2.2/site.py import site # precompiled
from /usr/lib/python2.2/site.pyc # ./os.pyc matches ./os.py
import os # precompiled from ./os.pyc Ugh! 'import site' failed;
traceback: Traceback (most recent call last):
File "/usr/lib/python2.2/site.py", line 69, in ?
m.__file__ = os.path.abspath(m.__file__)
AttributeError: 'module' object has no attribute 'path'
Python 2.2 (#1, 07/14/02, 23:25:09)
[GCC Apple cpp-precomp 6.14] on darwin
Type "help", "copyright", "credits" or "license" for more
information. ... % python -c "import sys;print sys.path" |
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: