hi ,
i want to use py2exe or installer5b5_5 with my python source
so no problem when i execute the source , but when i use installer or
py2exe to create an exe file on windows , i have some problems
when my program want to read a xml file i have an error
2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit (Intel)]
Traceback (most recent call last):
File "wxFrame1.pyc", line 287, in OnButton1Button
File "EIM_xml.pyc", line 135, in main_xml
File "EIM_xml.pyc", line 44, in construction_liste_xml
File "xml\sax\__init__.pyc", line 33, in parse
File "xml\sax\expatreader.pyc", line 86, in parse
File "xml\sax\saxutils.pyc", line 250, in prepare_input_source
File "ntpath.pyc", line 274, in isfile
LookupError: no codec search functions registered: can't find encoding
i don't know what is it , but i surch something and i did't find the
solution
if something have an idea , thanks a lot
charles 2 1785
hellprout wrote: hi , i want to use py2exe or installer5b5_5 with my python source
so no problem when i execute the source , but when i use installer or py2exe to create an exe file on windows , i have some problems when my program want to read a xml file i have an error
2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit (Intel)] Traceback (most recent call last): File "wxFrame1.pyc", line 287, in OnButton1Button File "EIM_xml.pyc", line 135, in main_xml File "EIM_xml.pyc", line 44, in construction_liste_xml File "xml\sax\__init__.pyc", line 33, in parse File "xml\sax\expatreader.pyc", line 86, in parse File "xml\sax\saxutils.pyc", line 250, in prepare_input_source File "ntpath.pyc", line 274, in isfile LookupError: no codec search functions registered: can't find encoding
Apparently, there is some weird code importing the codecs that py2exe or
McMillan installer cannot correctly figure out. I had the same problem some time
ago, which I solved by simply importing explicitely the codecs module via an:
import codecs
somewhere in the code. This seems to fix up things for McM's installer (never
used py2exe).
HTH
--
- Eric Brunel <er*********@pragmadev.com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com
In article <bi**********@news-reader3.wanadoo.fr>, Eric Brunel
<er*********@pragmadev.com> writes hellprout wrote: hi , i want to use py2exe or installer5b5_5 with my python source so no problem when i execute the source , but when i use installer or py2exe to create an exe file on windows , i have some problems when my program want to read a xml file i have an error 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit (Intel)] Traceback (most recent call last): File "wxFrame1.pyc", line 287, in OnButton1Button File "EIM_xml.pyc", line 135, in main_xml File "EIM_xml.pyc", line 44, in construction_liste_xml File "xml\sax\__init__.pyc", line 33, in parse File "xml\sax\expatreader.pyc", line 86, in parse File "xml\sax\saxutils.pyc", line 250, in prepare_input_source File "ntpath.pyc", line 274, in isfile LookupError: no codec search functions registered: can't find encoding
Apparently, there is some weird code importing the codecs that py2exe or McMillan installer cannot correctly figure out. I had the same problem some time ago, which I solved by simply importing explicitely the codecs module via an:
import codecs
somewhere in the code. This seems to fix up things for McM's installer (never used py2exe).
I had a similar problem with the McMillan installer. This wasn't solved
by adding:
import codecs
but it was solved by adding
import encodings
--
Andrew McLean This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
by: Rene Olsthoorn |
last post by:
Dear readers,
py2exe has a problem including libxml2. Not at building time, but at
runtime. The libxml2.dll cannot be loaded... Is there anyone that NOT has
the problem? (and can you drop me...
|
by: bapeterson |
last post by:
I'd like to use PY2EXE to "compile" a program using the
VPYTHON module (www.vpython.org). I have an example
where this was previously done to the demo script: Hanoi.py
(a towers of Hanoi demo) a...
|
by: Lad |
last post by:
I try to make an exe file from my script with help of Py2exe but I am
not successfull.
I have my script
start.py that has only one command
###############
import rgs.py
##############
...
|
by: DDany |
last post by:
HI!
I've a problem with py2exe: well, first of all I say that I use python
2.4.1 , py2exe 0.6.3 and distutils 1.0.2 on winxp.
To use py2exe I wrote a file setup.py like this:
from...
|
by: bwaha |
last post by:
First time trying to create an executable with py2exe. I have a small
program which makes use of python23 (2.3.5?), wxpython ('2.6.2.1'),
matplotlib ('0.83.2'), win32com (latest?), Numeric...
|
by: Michele Petrazzo |
last post by:
Hi list,
just found in this moment that my applications stop to work with win xp
and receive this error:
"""
This application has requested the Runtime to terminate it in an unusual
way....
|
by: Dave Lim |
last post by:
>On May 3, 1:29 pm, Dave Lim <diband... at yahoo.com>
wrote:
site:http://surguy.net/articles/speechrecognition.xml
used
out
tried
?
to
protection aroundhttp://mail.yahoo.com
I went and
|
by: msunderwd |
last post by:
Having a problem with "compiling" a Tkinter/python program using
py2exe (and pyinstaller, for that matter)...
I have several dialogs that are derived from the tkSimpleDialog.Dialog
class. These...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |