DeltaEscher / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 0 forks source link

Cannot import name sax #436

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Editra 0.5.15 on Ubuntu Karmic
2. Try to run from terminal

What is the expected output? What do you see instead?
Editra should load. I get this instead:

Traceback (most recent call last):
  File "/usr/local/bin/Editra", line 79, in <module>
    main()
  File "/usr/local/bin/Editra", line 74, in main
    import Editra
  File "/usr/local/lib/python2.6/dist-packages/Editra/src/Editra.py", line
59, in <module>
    import profiler
  File "/usr/local/lib/python2.6/dist-packages/Editra/src/profiler.py",
line 35, in <module>
    import util
  File "/usr/local/lib/python2.6/dist-packages/Editra/src/util.py", line
33, in <module>
    import syntax.syntax as syntax
  File
"/usr/local/lib/python2.6/dist-packages/Editra/src/syntax/__init__.py",
line 24, in <module>
    from synxml import *
  File
"/usr/local/lib/python2.6/dist-packages/Editra/src/syntax/synxml.py", line
61, in <module>
    from xml import sax
ImportError: cannot import name sax

IMPORTANT!!! Please answer these questions for any and ALL bug reports

What version of the product are you using? On what operating system?
0.5.15, Ubuntu Karmic 9.10

What method of install was your version installed with (Binary/Source)?
Source

If from source: What version of python and wxPython are you using?
Python 2.6 and wxPython 2.8.10.1

Please provide any additional information below.

from xml import sax works fine in a regular python shell.

Original issue reported on code.google.com by EXC...@gmail.com on 4 Dec 2009 at 12:54

GoogleCodeExporter commented 8 years ago
Hi,

Did you have an older install of Editra that you installed this one over?

I ask this as because I think that there is an old 'xml.py' in
(/usr/local/lib/python2.6/dist-packages/Editra/src/syntax/). All of those 
modules
should have been renamed to _xml.py.

Can you post an 'ls' of 
/usr/local/lib/python2.6/dist-packages/Editra/src/syntax/

Thanks,

Cody

Original comment by CodyPrec...@gmail.com on 4 Dec 2009 at 1:44

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Yes I did have 0.5.05 installed before installing this over.

chris@apoch:~/projects/staining$ ls
/usr/local/lib/python2.6/dist-packages/Editra/src/syntax/ | grep xml
synxml.py
synxml.pyc
synxml.pyo
_xml.py
xml.py
_xml.pyc
xml.pyc
_xml.pyo
xml.pyo

Original comment by EXC...@gmail.com on 4 Dec 2009 at 1:51

GoogleCodeExporter commented 8 years ago
Strange, how did you install?

Suggest removing /usr/local/lib/python2.6/dist-packages/Editra and reinstalling 
or
just removing the xml.py and xml.pyc file might be just enough but since those 
are
there there are likely lots of other old files there too that shouldn't be.

Cody

Original comment by CodyPrec...@gmail.com on 4 Dec 2009 at 1:57

GoogleCodeExporter commented 8 years ago
I just untarred and ran setup.py install. Removing xml.py got it working. 
Thanks! :)

Original comment by EXC...@gmail.com on 4 Dec 2009 at 2:00

GoogleCodeExporter commented 8 years ago
Hi,

Thanks for the info. This is kind of a big issue then since the install is not
removing old files before adding the new ones.

Leaving open until I resolve this issue.

Thanks,

Cody

Original comment by CodyPrec...@gmail.com on 4 Dec 2009 at 2:09

GoogleCodeExporter commented 8 years ago
Fixed

* Check for existing install and attempt to remove existing source directory 
prior to
installing new files.

Original comment by CodyPrec...@gmail.com on 9 Dec 2009 at 3:53