ArchiveFSHandler and ZipFSHandler

Python 32 Phoenix (svn)

when running Lib\site-packages\wx\tools\helpviewer.py

helpviewer.py:63: wxPyDeprecationWarning: Using deprecated class. Use ArchiveFSHandler instead.

wx.FileSystem.AddHandler(wx.ZipFSHandler())

Traceback (most recent call last):

File “helpviewer.py”, line 89, in

main()

File “helpviewer.py”, line 63, in main

**wx.FileSystem.AddHandler(wx.ZipFSHandler())**

File “C:\Python32_32\lib\site-packages\wx\core.py”, line 69, in init

item.__init__(*args, **kw)

TypeError: keyword arguments are not supported

and the switching to

wx.FileSystem.AddHandler(wx.ArchiveFSHandler())

i get a error:

Traceback (most recent call last):

File “helpviewer.py”, line 90, in

main()

File “helpviewer.py”, line 64, in main

**wx.FileSystem.AddHandler(wx.ArchiveFSHandler())**

TypeError: wx._core.ArchiveFSHandler represents a C++ abstract class and cannot be instantiated

any ideas how to fix this ?

regards

ramin

Ramin Sabet wrote:

Python 32 Phoenix (svn)

when running Lib\site-packages\wx\tools\helpviewer.py

helpviewer.py:63: wxPyDeprecationWarning: Using deprecated class. Use
ArchiveFSHandler instead.
wx.FileSystem.AddHandler(wx.ZipFSHandler())
Traceback (most recent call last):
File "helpviewer.py", line 89, in <module>
main()
File "helpviewer.py", line 63, in main
*wx.FileSystem.AddHandler(wx.ZipFSHandler())*
File "C:\Python32_32\lib\site-packages\wx\core.py", line 69, in __init__
item.__init__(*args, **kw)
TypeError: keyword arguments are not supported

and the switching to
wx.FileSystem.AddHandler(wx.ArchiveFSHandler())
i get a error:
Traceback (most recent call last):
File "helpviewer.py", line 90, in <module>
main()
File "helpviewer.py", line 64, in main
*wx.FileSystem.AddHandler(wx.ArchiveFSHandler())*
TypeError: wx._core.ArchiveFSHandler represents a C++ abstract class and
cannot be instantiated

any ideas how to fix this ?

I'm rebuilding to test a fix for it now. I'll push it up to the git and svn repo's later this evening. (Probably.)

···

--
Robin Dunn
Software Craftsman

works perfect, many thanks Robin !

just added some paranthesis to helpviewer to make it py3 complient

regards

ramin

helpviewer.py.patch (975 Bytes)

···

On Saturday, February 16, 2013 4:05:42 PM UTC+1, Ramin Sabet wrote:

Python 32 Phoenix (svn)

helpviewer.py:63: wxPyDeprecationWarning: Using deprecated class. Use ArchiveFSHandler instead.

wx.FileSystem.AddHandler(wx.ZipFSHandler())

Traceback (most recent call last):

File “helpviewer.py”, line 89, in

main()

File “helpviewer.py”, line 63, in main

**wx.FileSystem.AddHandler(wx.ZipFSHandler())**

File “C:\Python32_32\lib\site-packages\wx\core.py”, line 69, in init

item.__init__(*args, **kw)

TypeError: keyword arguments are not supported

and the switching to

wx.FileSystem.AddHandler(wx.ArchiveFSHandler())

i get a error:

Traceback (most recent call last):

File “helpviewer.py”, line 90, in

main()

File “helpviewer.py”, line 64, in main

**wx.FileSystem.AddHandler(wx.ArchiveFSHandler())**

TypeError: wx._core.ArchiveFSHandler represents a C++ abstract class and cannot be instantiated

any ideas how to fix this ?

regards

ramin

when running Lib\site-packages\wx\tools\helpviewer.py