[Python-bugs-list] [ python-Bugs-414228 ] Wrong PYTHONPATH in Makefile
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 10 Apr 2001 13:05:11 -0700
Bugs item #414228, was updated on 2001-04-06 00:12
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=414228&group_id=5470
Category: Build
>Group: Irreproducible
Status: Open
>Priority: 2
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Wrong PYTHONPATH in Makefile
Initial Comment:
The build process stopped with error in target
sharemods
PYTHONPATH= ./python ./setup.py build
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "./setup.py", line 9, in ?
import sys, os, getopt
ImportError: No module named os
*** Error code 1
make: Fatal error: Command failed for target
`sharedmods'
This is cured with changing the Makefile (inserting
./Lib)
# Build the shared modules
sharedmods: $(PYTHON)
PYTHONPATH=./Lib ./$(PYTHON)
$(srcdir)/setup.py build
Python: Python-2.1b2a
System: SunOS 5.7 Generic sun4u sparc SUNW,Ultra-60
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-04-10 13:05
Message:
Logged In: YES
user_id=6380
Have you set PYTHONHOME in the environment? That could
cause this.
Lowering the priority since, as Neil says, this should not
be required.
----------------------------------------------------------------------
Comment By: Neil Schemenauer (nascheme)
Date: 2001-04-10 09:15
Message:
Logged In: YES
user_id=35752
Setting PYTHONPATH should not be required. Modules/getpath
must be getting confused. I have no idea why. The output
from
./python -c "import sys; print sys.path"
might be helpful.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=414228&group_id=5470