[ python-Bugs-1194497 ] ImportError: No module named os

SourceForge.net noreply at sourceforge.net
Tue May 3 16:53:01 CEST 2005


Bugs item #1194497, was opened at 2005-05-03 14:50
Message generated for change (Comment added) made by diskman
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1194497&group_id=5470

Category: Build
Group: Python 2.4
Status: Open
Resolution: None
Priority: 7
Submitted By: Will L G (diskman)
Assigned to: Nobody/Anonymous (nobody)
Summary: ImportError: No module named os

Initial Comment:
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

----------------------------------------------------------------------

>Comment By: Will L G (diskman)
Date: 2005-05-03 14:53

Message:
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 at 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 at jericho Python-2.4.1]# 


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1194497&group_id=5470


More information about the Python-bugs-list mailing list