473,480 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem with McMillan Installer: no codec search function registered

Hi all,

When building a exe for a Python application under Windows XP with The
McMillan installer, the insttaltion succeeds but when I run the
resulting executable the application tracebacks complaining about a
codec not being registered:

Traceback (most recent call last):
File "<string>", line 222, in ?
File "ivcm\buildivcm\out1.pyz/gettext", line 428, in install
File "ivcm\buildivcm\out1.pyz/gettext", line 416, in translation
File "ivcm\buildivcm\out1.pyz/gettext", line 176, in __init__
File "ivcm\buildivcm\out1.pyz/gettext", line 304, in _parse
LookupError: no codec search functions registered: can't find encoding

This application runs fine when executing from python.exe. It generates
the following error when I run the executable built with the McMillan
Installer.

I have found a solution for the problem if I was using py2exe (which
I'll probably try soon) in
http://mail.python.org/pipermail/pyt...ch/155106.html.
My app uses in some of the .py files

# -*- coding: iso-8859-1 -*-

What is strange is that I can build the application inside another
computer running XP and the same version of the McMillan installer) and
the problem does not show up.

I would try to get help from Gordon McMillan's site but it has been down
for several weeks, so if someone encountered the same problem, and
solved it, I'd really like to hear if you ran into the same problem.

My setup:
Python 2.3.3
McMillan Installer 5b5

My App:
Uses wxPython 2.4.2.4

Thansk for any help,

Pierre



Jul 18 '05 #1
1 2622
Pierre Rouleau wrote:
Hi all,

When building a exe for a Python application under Windows XP with The
McMillan installer, the insttaltion succeeds but when I run the
resulting executable the application tracebacks complaining about a
codec not being registered:

Traceback (most recent call last):
File "<string>", line 222, in ?
File "ivcm\buildivcm\out1.pyz/gettext", line 428, in install
File "ivcm\buildivcm\out1.pyz/gettext", line 416, in translation
File "ivcm\buildivcm\out1.pyz/gettext", line 176, in __init__
File "ivcm\buildivcm\out1.pyz/gettext", line 304, in _parse
LookupError: no codec search functions registered: can't find encoding

This application runs fine when executing from python.exe. It generates
the following error when I run the executable built with the McMillan
Installer.

I have found a solution for the problem if I was using py2exe (which
I'll probably try soon) in
http://mail.python.org/pipermail/pyt...ch/155106.html.
My app uses in some of the .py files

# -*- coding: iso-8859-1 -*-

What is strange is that I can build the application inside another
computer running XP and the same version of the McMillan installer) and
the problem does not show up.

I would try to get help from Gordon McMillan's site but it has been down
for several weeks, so if someone encountered the same problem, and
solved it, I'd really like to hear if you ran into the same problem.

My setup:
Python 2.3.3
McMillan Installer 5b5

My App:
Uses wxPython 2.4.2.4


I found the solution to the problem. There is a bug in McMillan
Installer 5b5: it does not handle the codec properly for Unicode. To
solve the problem, the Installer/support/useUnicode.py file must be updated:

Replace:

import codecs
with:
import encodings
Hope this can help anyone that runs into the same problem.

Pierre

Jul 18 '05 #2

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

Similar topics

2
1791
by: hellprout | last post by:
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...
0
1329
by: Michael Peuser | last post by:
I encountered two problems with Mcmillan's Installer when trying to make a distribution from an OpenGL/Tk program. (1) This part of the Tk interface seems to be to hard: The exe does not find...
0
1478
by: achrist | last post by:
After using the McMillan installer and executables built with it for a while, I've noticed some residual files accumulating on my disk. The installer docs mentions these. Here's code I wrote...
0
1512
by: achrist | last post by:
I've just installed the new wxPython, version 2.4.2.4 (under Windows NT, sp6, python 2.3.2) and tried to create an exe using the McMillan installer. Seems to be a new problem ... I've got the...
1
1531
by: Ajay Bakhshi | last post by:
Hi, I have Python-2.2.3/ Mcmillian Installer: _5b5_5 System: HP 11.11 64 bit. Installer + Python were build with 64 bit support (Compiler flag: +DD64) I have a Python file...
2
2890
by: Federico | last post by:
Hi, Where can I download the mcmillan installer utility? http://www.mcmillan-inc.com/ doesn't exist anymore? Thanks
9
1964
by: Christopher Stone | last post by:
I can't seem to find a working web site for this installer. Are there any mirror sites available which have this application? I need an installer for Linux based systems, and I heard this was the...
6
683
by: Club-B42 | last post by:
i've compiled my programm using command "python setup.py py2exe >1" python script works fine, but .exe version fails with =====================================================================...
4
2087
by: mrmakent | last post by:
3 quick questions for the newsgroup: 1. Does anyone know why McMillan Installer 5b5 does not work with Python 2.4 under Linux (works with Python 2.3 just fine), and how to fix it? 2. Will...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7045
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6741
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6944
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5341
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4782
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4483
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2985
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.