473,221 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,221 software developers and data experts.

xml.sax in py2exe

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
Jul 18 '05 #1
1 2359
<ju*****@brturbo.com> 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
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
2
by: Stefan Behrens | last post by:
Hi, does anybody know how I can get py2exe to work with wxPython's wxCalendarCtrl? Currently, I have just a "standard" setup.py, and py2exe gives me a syntax error. Do I need to include any...
0
by: Kathleen Kudzma | last post by:
I'm having a problem with py2exe for Python 2.3. I got fixed the Lookuperror no codec search functions registered: can't find encoding by following the instructions on the py2exe page (added...
8
by: Kathleen Kudzma | last post by:
Does anyone know how to resolve the following problem that I'm getting in Python 2.2 and 2.3? PROBLEM: When I try to create a classReader object I get an exception: "SAXReaderNotAvailable: No...
0
by: Steven Bell | last post by:
I am trying to build an executable from a python script. Using python 2.3, SOAPpy 0.10.3, Py2exe 0.4.2. Build command: python setup.py py2exe -w --includes xml.sax.drivers2.drv_py I get the...
6
by: Luc Saffre | last post by:
Hello, I had a strange problem when freezing (using either py2exe or McMillan installer) a script that imports reportlab (which imports PIL (which imports FixTk))). - Python 2.3.3c (also with...
0
by: David Vaughan | last post by:
py2exe and Pmw problem ---------------------- I was really surprised not to find some faq setting out what to do to get py2exe working for a program using Pmw. I'm haemorrhaging time here, and...
0
by: Larry Bates | last post by:
Jimmy Retzlaff wrote: Everyone, Thanks for all your hard work on py2exe, it is greatly appreciated. -Larry Bates
0
by: Jimmy Retzlaff | last post by:
py2exe 0.6.9 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.