Version of Editra bundled with wxPython doesn't work on Windows

The version of Editra that is bundled with wxPython in the “tools” subdirectory doesn’t work on Windows. When I run it, pythonw.exe is launched, but no window appears, and the process quits after a few seconds.

This seems like a serious bug. I would expect that the version of Editra bundled with wxPython should have the exact same contents as the source code tarball downloadable from Editra’s website, which does work.

– Timothy

What error are you getting? When I try to run

python.exe ~/version\ controlled/ThirdParty/lib/wx-3.0.1-msw-classic/wx/tools/Editra/launcher.py

I get:

C:\Users\Nathan\version controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\src\Editra.py", line 32, in

wxversion.ensureMinimal('2.8')

File “C:\Users\Nathan\version controlled\ThirdParty\Portable Python 2.7.5.1\App\lib\site-packages\wxversion.py”, line 185, in ensureMinimal

minv = _wxPackageInfo(minVersion)

C:\Users\Nathan\version controlled\ThirdParty\Portable Python 2.7.5.1\App\lib\site-packages\wxversion.py", line 360, in init

self.version = tuple([int(x) for x in segments[0].split('.')])

IndexError: list index out of range

I’ve previously had problems with wxVersion, but in this case it was using an unmodified copy of wxversion.py… when I replaced it with my custom version (which was on a different path, and thus not being found in the default site-packages module search path) I got past that error, but then got hit with:

File “C:\Users\Nathan\version controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\launcher.py”, line 12, in

execfile(launcher)

File “C:\Users\Nathan\version controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\Editra”, line 79, in

main()

File “C:\Users\Nathan\version controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\Editra”, line 74, in main

import Editra

File “C:\Users\Nathan\version controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\src\Editra.py”, line 68, in

import ed_ipc

File “C:\Users\Nathan\version controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\src\ed_ipc.py”, line 61, in

import ed_xml

File “C:\Users\Nathan\version controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\src\ed_xml.py”, line 22, in

import extern.dexml as dexml

ImportError: No module named dexml

I found dexml on PyPi, but from their example it doesn’t look like the module is in a package called extern… so I’m not sure what is going on there.

Now checking the directory it failed in 'wx\tools\Editra\src' I see an ‘extern’ directory, but it doesn’t show dexml:
README init.pyc decorlib.py embeddedimage.py events.py flatnotebook.py pubsub.py pygments stcprint.pyc stcspellcheck.pyc vertedit.pyc

init.py aui decorlib.pyc embeddedimage.pyc ez_setup.py pkg_resources.py pubsub.pyc stcprint.py stcspellcheck.py vertedit.py

Very strange, but honestly, I don’t even know what Editra is/does or why it is in the wxPython library files (since I’ve never seen it mentioned in tutorials or the docs).

···

On Tuesday, October 28, 2014 5:34:55 PM UTC-7, ps16thypresence...@gmail.com wrote:

The version of Editra that is bundled with wxPython in the “tools” subdirectory doesn’t work on Windows. When I run it, pythonw.exe is launched, but no window appears, and the process quits after a few seconds.

This seems like a serious bug. I would expect that the version of Editra bundled with wxPython should have the exact same contents as the source code tarball downloadable from Editra’s website, which does work.

Editra “is a multi-platform text editor with an implementation that focuses on creating an easy to use interface and features that aid in code development.” - http://editra.org/

It is written using wxPython and I believe it was added as a fully functional program for people to learn from.

  • Mike
···

On Wednesday, October 29, 2014 4:16:43 PM UTC-5, Nathan McCorkle wrote:

On Tuesday, October 28, 2014 5:34:55 PM UTC-7, ps16thypresence...@gmail.com wrote:

The version of Editra that is bundled with wxPython in the “tools” subdirectory doesn’t work on Windows. When I run it, pythonw.exe is launched, but no window appears, and the process quits after a few seconds.

This seems like a serious bug. I would expect that the version of Editra bundled with wxPython should have the exact same contents as the source code tarball downloadable from Editra’s website, which does work.

What error are you getting? When I try to run

python.exe ~/version\ controlled/ThirdParty/lib/wx-3.0.1-msw-classic/wx/tools/Editra/launcher.py

I get:

C:\Users\Nathan\version controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\src\Editra.py", line 32, in

wxversion.ensureMinimal('2.8')

File “C:\Users\Nathan\version controlled\ThirdParty\Portable Python 2.7.5.1\App\lib\site-packages\wxversion.py”, line 185, in ensureMinimal

minv = _wxPackageInfo(minVersion)

C:\Users\Nathan\version controlled\ThirdParty\Portable Python 2.7.5.1\App\lib\site-packages\wxversion.py", line 360, in init

self.version = tuple([int(x) for x in segments[0].split('.')])

IndexError: list index out of range

I’ve previously had problems with wxVersion, but in this case it was using an unmodified copy of wxversion.py… when I replaced it with my custom version (which was on a different path, and thus not being found in the default site-packages module search path) I got past that error, but then got hit with:

File “C:\Users\Nathan\version controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\launcher.py”, line 12, in

execfile(launcher)

File “C:\Users\Nathan\version controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\Editra”, line 79, in

main()

File “C:\Users\Nathan\version controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\Editra”, line 74, in main

import Editra

File “C:\Users\Nathan\version controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\src\Editra.py”, line 68, in

import ed_ipc

File “C:\Users\Nathan\version controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\src\ed_ipc.py”, line 61, in

import ed_xml

File “C:\Users\Nathan\version controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\src\ed_xml.py”, line 22, in

import extern.dexml as dexml

ImportError: No module named dexml

I found dexml on PyPi, but from their example it doesn’t look like the module is in a package called extern… so I’m not sure what is going on there.

https://pypi.python.org/pypi/dexml/

Now checking the directory it failed in 'wx\tools\Editra\src' I see an ‘extern’ directory, but it doesn’t show dexml:
README init.pyc decorlib.py embeddedimage.py events.py flatnotebook.py pubsub.py pygments stcprint.pyc stcspellcheck.pyc vertedit.pyc

init.py aui decorlib.pyc embeddedimage.pyc ez_setup.py pkg_resources.py pubsub.pyc stcprint.py stcspellcheck.py vertedit.py

Very strange, but honestly, I don’t even know what Editra is/does or why it is in the wxPython library files (since I’ve never seen it mentioned in tutorials or the docs).

I believe the plan is to not include it any more and you should get
the latest version from the editra site.
Werner

···

On 10/30/2014 14:54, Mike Driscoll
wrote:

    On Wednesday, October 29, 2014 4:16:43 PM UTC-5, Nathan McCorkle

wrote:

            Very strange, but

honestly, I don’t even know what Editra is/does or why
it is in the wxPython library files (since I’ve never
seen it mentioned in tutorials or the docs).

      Editra "            is a multi-platform text editor with

an implementation that focuses on creating an easy to use
interface and features that aid in code development." -
It is written using wxPython and I believe it was added as a
fully functional program for people to learn from.

http://editra.org/

I believe the plan is to no longer bundle Editra in wxPython - so you should always get it from its site.

Werner

···

On 10/29/2014 1:34, ps16thypresenceisfullnessofjoy@gmail.com wrote:

The version of Editra that is bundled with wxPython in the "tools" subdirectory doesn't work on Windows. When I run it, pythonw.exe is launched, but no window appears, and the process quits after a few seconds.

This seems like a serious bug. I would expect that the version of Editra bundled with wxPython should have the exact same contents as the source code tarball downloadable from Editra's website, which does work.

I get the exact same error as the second one that Nathan posted.

From what werner said, why is Editra still bundled with wxPython, since the included version is not functional?

– Timothy

Nathan McCorkle wrote:

    The version of Editra that is bundled with wxPython in the "tools"
    subdirectory doesn't work on Windows. When I run it, pythonw.exe is
    launched, but no window appears, and the process quits after a few
    seconds.

    This seems like a serious bug. I would expect that the version of
    Editra bundled with wxPython should have the exact same contents as
    the source code tarball downloadable from Editra's website, which
    does work.

What error are you getting? When I try to run

File "C:\Users\Nathan\version
controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\launcher.py",
line 12, in <module>
execfile(launcher)
File "C:\Users\Nathan\version
controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\Editra",
line 79, in <module>
main()
File "C:\Users\Nathan\version
controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\Editra",
line 74, in main
import Editra
File "C:\Users\Nathan\version
controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\src\Editra.py",
line 68, in <module>
import ed_ipc
File "C:\Users\Nathan\version
controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\src\ed_ipc.py",
line 61, in <module>
import ed_xml
File "C:\Users\Nathan\version
controlled\ThirdParty\lib\wx-3.0.1-msw-classic\wx\tools\Editra\src\ed_xml.py",
line 22, in <module>
import extern.dexml as dexml
ImportError: No module named dexml

I found dexml on PyPi, but from their example it doesn't look like the
module is in a package called extern... so I'm not sure what is going on
there.
dexml · PyPI

The extern package is part of Editra's source code and there is a copy of dexml (and others) there, but it looks like the master package list in wxPython/setup.py didn't get updated to include it. I'll fix that up.

···

On Tuesday, October 28, 2014 5:34:55 PM UTC-7, > ps16thypresence...@gmail.com wrote:

--
Robin Dunn
Software Craftsman