Menu

#2 Can't import name unescape

open
None
5
2014-08-23
2003-11-25
Ravi Desai
No

I'm running the program on RH8 Linux. I downloaded the wxWindows
and the wxPython libraries. Whenever I start it from './pyDC.sh' it gives
the following error as on output -
[ravi@localhost pydc]$ ./pyDC.sh
Traceback (most recent call last):
File "pydc.py", line 6, in ?
from MainWnd import *
File "MainWnd.py", line 7, in ?
from Settings import *
File "Settings.py", line 10, in ?
from DCSettings import DCSettings
File "/opt/pydc/pydc/pyDClib/DCSettings.py", line 12, in ?
from xml.sax.saxutils import escape, unescape
ImportError: cannot import name unescape

I also tried the CLI and this came out -
[ravi@localhost pydc]$ ./inter.sh
Python 2.2.1 (#1, Aug 30 2002, 12:15:30)
[GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
/opt/pydc/pydc/pyDClib/DCChannel.py:20: Warning: 'yield' will become a
reserved
keyword in the future
Traceback (most recent call last):
File "InterUtils.py", line 6, in ?
from DCWorker import *
File "/opt/pydc/pydc/pyDClib/DCWorker.py", line 16, in ?
from DCHub import *
File "/opt/pydc/pydc/pyDClib/DCHub.py", line 12, in ?
from DCChannel import *
File "/opt/pydc/pydc/pyDClib/DCChannel.py", line 20
yield DCChannelCommand(self.cmdBuf[:pos])
^
SyntaxError: invalid syntax
>>>

Also, should add that while installing the wxWindows lib, after the 'make
install' command, I tried 'ldconfig', but it did'nt work. So I used an
ldconfig file I found in the '/sbin' directory on my comp.

Ravster here,
Thanks

Discussion

  • Anakim Border

    Anakim Border - 2003-11-29

    Logged In: YES
    user_id=346186

    Please contact me at aborder@users.sourceforge.net using
    your real email address (I've tried replying to
    ravster@users.sourceforge.net but I got a '550 Unrouteable
    address' error!)

     
  • Anakim Border

    Anakim Border - 2003-11-29
    • assigned_to: nobody --> aborder
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.