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: missing packages
Type: compile error Stage: resolved
Components: Installation Versions: Python 2.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: S.S, brett.cannon, eric.araujo, orsenthil
Priority: normal Keywords:

Created on 2010-10-14 16:35 by S.S, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (6)
msg118685 - (view) Author: S S (S.S) Date: 2010-10-14 16:35
when trying to install beutifulsoup package on windows xp x86 with python 2.6.6 getting the following error

C:\Python26>python C:\temp\BeautifulSoup-3.0.8.1\setup.py install
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "C:\temp\BeautifulSoup-3.0.8.1\setup.py", line 1, in <module>
    from distutils.core import setup
ImportError: No module named distutils.core


installing the same package with python 2.7 gives a different error about site module missing. 

these errors i am getting with any packages  installs actually.
msg118689 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2010-10-14 16:51
Double-check your install. Errors like this typically means that your Python executable is not able to read the standard library files. Either that or something got moved and so the files are not where Python expects them to be.
msg118699 - (view) Author: S S (S.S) Date: 2010-10-14 17:46
Brett,
the installation did not had any issues.
its running on windows xp, i am administrator of the machine so no permission issues. 

nothing got moved either as it fresh install
msg118703 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2010-10-14 17:56
I'm not a Windows user, so there might be a better way to solve this, but...

Run ``python -v`` and see what it says about why 'site' was not imported. You can also verify that site.py is readable by Python by checking that its directory location is listed in sys.path and that you can read the file from the prompt.

Beyond that I am out of my element as it is probably a Windows-specific issue.
msg118753 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2010-10-15 09:14
I would suggest to OP, to take it with python-help for the problem to be fixed. It's raised on python26 as well. Highly unlikely that anything is wrong with Python installation here. Marking it invalid and closing it.
msg119393 - (view) Author: S S (S.S) Date: 2010-10-22 17:21
finally was able to figure it out.
i had another product installed, which uses python 2.4 that product during installation put PYTHONHOME into system variable environment. 

as soon as i either change that PYTHONHOME to my latest python path c:\python26 everything starts working.
History
Date User Action Args
2022-04-11 14:57:07adminsetgithub: 54315
2010-10-22 17:21:09S.Ssetmessages: + msg119393
2010-10-15 09:14:23orsenthilsetstatus: pending -> closed

nosy: + orsenthil
messages: + msg118753

resolution: not a bug
stage: resolved
2010-10-15 00:31:52brett.cannonsetstatus: open -> pending
2010-10-14 23:08:07eric.araujosetnosy: + eric.araujo
2010-10-14 17:56:32brett.cannonsetmessages: + msg118703
2010-10-14 17:56:24brett.cannonsetmessages: - msg118702
2010-10-14 17:56:12brett.cannonsetmessages: + msg118702
2010-10-14 17:46:51S.Ssetmessages: + msg118699
2010-10-14 16:51:27brett.cannonsetnosy: + brett.cannon
messages: + msg118689
2010-10-14 16:35:38S.Screate