Opened 14 years ago
Closed 14 years ago
#11 closed defect (fixed)
Consider adding SET PYTHONPATH to CONFIG.SYS
Reported by: | David McKenna | Owned by: | Yuri Dario |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | python | Version: | |
Severity: | Keywords: | ||
Cc: |
Description
The 'Next Steps' instructions recommends removing the bootstrap programs after installing YUM (presumably to recover disc space). However, after doing that, trying to run YUM from the command line fails because SET PYTHONPATH is not added to CONFIG.SYS by the installer.
Change History (3)
comment:1 by , 14 years ago
Status: | new → assigned |
---|
comment:2 by , 14 years ago
For some reason, if I remove SET PYTHONPATH and SET PYTHONHOME statements from my CONFIG.SYS, then reboot when I try to use YUM (say: YUM LIST) I get this error:
'import site' failed; use -v for traceback
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.5 (r265:79063, May 22 2010, 09:04:43)
[GCC 4.3.4]
If you cannot solve this problem yourself, please go to
the yum faq at:
If I add back the statements (specifically:
SET PYTHONHOME=C:\usr\lib\python2.6
SET PYTHONPATH=C:\usr\lib\python2.6;C:\usr\share\yum-cli;C:\usr\lib\python2.6\lib-dynload;C:\usr\lib\python2.6\site-packages)
then YUM works. I did this because the YUM-Console.cmd file from the bootstrap had these statements in it (although there PYTHONHOME was blank).
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
After deleting everything and reinstalling with bootstrap 1.3 I no longer need SET PYTHONPATH - although I had an issue with installing I will create a new ticket for.
this python build does not require a PYTHONPATH variable to work since it is hardcoded to /@unixroot.
but it could fail on reboot is an old value is already in config.sys; same for PYTHONHOME setting.