Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > xml.sax in py2exe

Reply
Thread Tools

xml.sax in py2exe

 
 
Guest
Posts: n/a
 
      07-17-2003
I want a binnary file to my aplicattion, but py2exe don't match the xmll.sax module.

the py2exe shows this errors:

warning: py2exe: ************************************************** *************
**********
warning: py2exe: * The following modules were not found:
warning: py2exe: * xml.sax
warning: py2exe: * win32con
warning: py2exe: * pywintypes
warning: py2exe: * os.path
warning: py2exe: * hexdump
warning: py2exe: * win32com.client.gencache
warning: py2exe: * win32api
warning: py2exe: ************************************************** *************
**********

but in python if i import the module, its works very well!

Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import xml.sax
>>> xml.sax

<module 'xml.sax' from 'C:\PYTHON22\lib\site-packages\_xmlplus\sax\__init__.pyc'

why???

Juliano Freitas
 
Reply With Quote
 
 
 
 
Thomas Heller
Guest
Posts: n/a
 
      07-17-2003
<> writes:

> I want a binnary file to my aplicattion, but py2exe don't match the
> xmll.sax module.
>
> the py2exe shows this errors:
>
> warning: py2exe: ************************************************** *************
> **********
> warning: py2exe: * The following modules were not found:
> warning: py2exe: * xml.sax
> warning: py2exe: * win32con
> warning: py2exe: * pywintypes
> warning: py2exe: * os.path
> warning: py2exe: * hexdump
> warning: py2exe: * win32com.client.gencache
> warning: py2exe: * win32api
> warning: py2exe: ************************************************** *************
> **********
>
> but in python if i import the module, its works very well!
>
> Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import xml.sax
>>>> xml.sax

> <module 'xml.sax' from 'C:\PYTHON22\lib\site-packages\_xmlplus\sax\__init__.pyc'


Currently the released version of py2exe doesn't work with PyXML.

There is a workaround, although this should be considered as a hack,
and I'm not completely sure it will work:

Remove the lib\site-packages\xml directory, and rename
lib\site-packages\_xmlplus into lib\site-packages\xml.

Another workaround would be to remove PyXML and use the stock Python xml
support, if it's sufficient.

It may also be that the current CVS version will be able to do it,
but again I'm not sure.

Thomas
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: [Py2exe-users] py2exe 0.6.9 released Chris Spencer Python 3 12-08-2008 05:17 PM
RE: [Py2exe-users] py2exe 0.6.9 released Mark Hammond Python 0 11-17-2008 05:27 AM
about py2exe, I installed it, but can't find py2exe.exe in my computer. python Python 3 05-22-2006 02:08 PM
[py2exe] py2exe and datetime -> No module named datetime F. GEIGER Python 0 08-16-2004 01:13 PM
Re: py2exe and dynamic service installation ? Harald Schneider Python 0 06-24-2003 09:03 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57