(sorry Adam, forgot to replay-all):

I currently have MacPython installed -- do you think that this could
cause problems with the Macports install? I've removed the MacPython
directory from my PATH.

Same thing. Interestingly I'm not getting the same "import site" error
even when I invoke Python in non-verbose mode.

-v:
/opt/local/bin: /opt/local/bin/python2.5 -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /opt/local/lib/python2.5/site.pyc matches /opt/local/lib/python2.5/site.py
import site # precompiled from /opt/local/lib/python2.5/site.pyc
- Show quoted text -
# /opt/local/lib/python2.5/os.pyc matches /opt/local/lib/python2.5/os.py
import os # precompiled from /opt/local/lib/python2.5/os.pyc
import errno # builtin
import posix # builtin
# /opt/local/lib/python2.5/posixpath.pyc matches
/opt/local/lib/python2.5/posixpath.py
import posixpath # precompiled from /opt/local/lib/python2.5/posixpath.pyc
# /opt/local/lib/python2.5/stat.pyc matches /opt/local/lib/python2.5/stat.py
import stat # precompiled from /opt/local/lib/python2.5/stat.pyc
# /opt/local/lib/python2.5/UserDict.pyc matches
/opt/local/lib/python2.5/UserDict.py
import UserDict # precompiled from /opt/local/lib/python2.5/UserDict.pyc
# /opt/local/lib/python2.5/copy_reg.pyc matches
/opt/local/lib/python2.5/copy_reg.py
import copy_reg # precompiled from /opt/local/lib/python2.5/copy_reg.pyc
# /opt/local/lib/python2.5/types.pyc matches /opt/local/lib/python2.5/types.py
import types # precompiled from /opt/local/lib/python2.5/types.pyc
import _types # builtin
# /opt/local/lib/python2.5/warnings.pyc matches
/opt/local/lib/python2.5/warnings.py
import warnings # precompiled from /opt/local/lib/python2.5/warnings.pyc
# /opt/local/lib/python2.5/linecache.pyc matches
/opt/local/lib/python2.5/linecache.py
import linecache # precompiled from /opt/local/lib/python2.5/linecache.pyc
import encodings # directory /opt/local/lib/python2.5/encodings
# /opt/local/lib/python2.5/encodings/__init__.pyc matches
/opt/local/lib/python2.5/encodings/__init__.py
import encodings # precompiled from
/opt/local/lib/python2.5/encodings/__init__.pyc
# /opt/local/lib/python2.5/codecs.pyc matches /opt/local/lib/python2.5/codecs.py
import codecs # precompiled from /opt/local/lib/python2.5/codecs.pyc
import _codecs # builtin
# /opt/local/lib/python2.5/encodings/aliases.pyc matches
/opt/local/lib/python2.5/encodings/aliases.py
import encodings.aliases # precompiled from
/opt/local/lib/python2.5/encodings/aliases.pyc
# /opt/local/lib/python2.5/encodings/utf_8.pyc matches
/opt/local/lib/python2.5/encodings/utf_8.py
import encodings.utf_8 # precompiled from
/opt/local/lib/python2.5/encodings/utf_8.pyc
Python 2.5.2 (r252:60911, Apr 29 2008, 13:48:06)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ImportError: No module named math
>>>

! -v

/opt/local/bin: /opt/local/bin/python2.5
Python 2.5.2 (r252:60911, Apr 29 2008, 13:48:06)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ImportError: No module named math
>>> quit
Use quit() or Ctrl-D (i.e. EOF) to exit
>>> quite()
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
NameError: name 'quite' is not defined


On Tue, May 13, 2008 at 10:39 PM, Adam Mercer <[EMAIL PROTECTED]> wrote:
> On Tue, May 13, 2008 at 8:36 PM, Morgan Sutherland
> <[EMAIL PROTECTED]> wrote:
>>  /opt/local/bin: /opt/local/bin/python2.5
>>  'import site' failed; use -v for traceback
>>  Python 2.5.2 (r252:60911, Apr 29 2008, 13:48:06)
>
> On Tue, May 13, 2008 at 9:16 PM, Morgan Sutherland
> <[EMAIL PROTECTED]> wrote:
>> ~: /opt/local/bin/python2.5 -v
> <snip>
>>  # /opt/local/lib/python2.5/site.pyc matches /opt/local/lib/python2.5/site.py
>>  import site # precompiled from /opt/local/lib/python2.5/site.pyc
> <snip>
>
> Interesting, this time round you're not getting the error that the
> site module couldn't be imported, what happens when you try to import
> the math module after starting python with the -v option?
>
> Cheers
>
> Adam
>



-- 
Morgan Sutherland
_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to