473,748 Members | 2,353 Online
Bytes | Software Development & Data Engineering Community
+ 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 2638
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
1812
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 problems when my program want to read a xml file i have an error 2.2.3 (#42, May 30 2003, 18:12:08) Traceback (most recent call last): File "wxFrame1.pyc", line 287, in OnButton1Button
0
1340
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 Togl (I copied the .dll manually, but that did not help any...) (Lines 71 - 82 from __init__ ) ....... # add this file's directory to Tcl's search path # on Linux Togl is installed in ./linux2-tk8.0 # on Windows (Python2.0) in ./win32-tk8.3
0
1503
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 to clean these up: --------------------Program Fillows---------------------- import fnmatch import os
0
1524
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 5b5 version of the McMillan installer. It crashes around line 161 of its mf.py module, where it is analyzing my program and pulling information out of the Windows registry. It looks in HKLM\Software\Python\PythonCore\2.3\Modules\wxPython
1
1540
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 Recover.py that calls "C" functions written in an extension module. Now these "C" functions (in the shared library) load
2
2906
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
1982
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 best. Thanks in advance! -Chris
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 ===================================================================== D:\\Scripts\B-4-2\la2luncher\dist>la2launcher.exe Traceback (most recent call last): File "la2launcher.py", line 9, in ? File "config.pyc", line 11, in ? File "config.pyc", line 8, in u LookupError: no codec search functions registered: can't find...
4
2105
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 anyone be picking up the maintenance and development ball for McMillan Installer? 3. Is there another, better-supported solution for distributing a
0
8831
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9552
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9326
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6796
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3315
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 we have to send another system
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.