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.

classification
Title: Wrong PYTHONPATH in Makefile
Type: Stage:
Components: Build Versions:
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum, nascheme
Priority: low Keywords:

Created on 2001-04-06 07:12 by anonymous, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Messages (4)
msg4188 - (view) Author: Nobody/Anonymous (nobody) Date: 2001-04-06 07:12
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


msg4189 - (view) Author: Neil Schemenauer (nascheme) * (Python committer) Date: 2001-04-10 16:15
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.
msg4190 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-04-10 20:05
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.
msg4191 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-09-05 18:58
Logged In: YES 
user_id=6380

This should be fixed in 2.2 by the -E option. Try 2.2a2 or
later.
History
Date User Action Args
2022-04-10 16:03:56adminsetgithub: 34288
2001-04-06 07:12:52anonymouscreate