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: ImportError: No module named os
Type: Stage:
Components: Build Versions: Python 2.4
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: diskman
Priority: critical Keywords:

Created on 2005-05-03 14:50 by diskman, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg25224 - (view) Author: Will L G (diskman) Date: 2005-05-03 14:50
Compiling on the following system:
Redhat 7.2 [alpha]
Kernel-2.6.11.4
Compaq C 6.5.9
GLIBC-2.3.2
Make-2.80
Binutils-2.15

Receiving the following error:
/usr/share/printconf/util/queueTree.py:89: GtkWarning: 
gtk_label_set_use_underline: assertion `GTK_IS_LABEL 
(label)' failed
  domain = domain)
Traceback (most recent call last):
  File "/usr/sbin/redhat-config-printer-gui", line 7, in ?
    import queueTree
  File "/usr/share/printconf/util/queueTree.py", line 1091, 
in ?
    queueTree()
  File "/usr/share/printconf/util/queueTree.py", line 128, 
in __init__
    if cups_import.import_needed ():
  File "/usr/share/printconf/util/cups_import.py", line 200, 
in import_needed
    which = which_spooler ()
  File "/usr/share/printconf/util/cups_import.py", line 195, 
in which_spooler
    return which
UnboundLocalError: local variable 'which' referenced 
before assignment
msg25225 - (view) Author: Will L G (diskman) Date: 2005-05-03 14:53
Logged In: YES 
user_id=312992

Whoops, did a cut and paste... the previous error was from 
printconfig... I was upgrading python to fix that and this is 
what I received from Python while building:

[root@jericho Python-2.4.1]# make
case $MAKEFLAGS in \
*-s*) LD_LIBRARY_PATH=/usr2/www/linux-
related/programming/python/Python-
2.4.1:/usr/X11R6/lib:/usr/lib:/usr/local/lib CC='ccache ccc -
pthread' LDSHARED='ccache ccc -pthread -shared' OPT='-
DNDEBUG -O' ./python -E ./setup.py -q build;; \
*) LD_LIBRARY_PATH=/usr2/www/linux-
related/programming/python/Python-
2.4.1:/usr/X11R6/lib:/usr/lib:/usr/local/lib CC='ccache ccc -
pthread' LDSHARED='ccache ccc -pthread -shared' OPT='-
DNDEBUG -O' ./python -E ./setup.py build;; \
esac
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "./setup.py", line 6, in ?
    import sys, os, getopt, imp, re
ImportError: No module named os
make: *** [sharedmods] Error 1
[root@jericho Python-2.4.1]# 
msg25226 - (view) Author: Will L G (diskman) Date: 2005-05-05 19:55
Logged In: YES 
user_id=312992

Duplicate of BugReport 1196154
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 41946
2005-05-03 14:50:57diskmancreate