473,748 Members | 7,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ImportError: No module named zipextimporter on py2exe when {

Hi,

I'm trying to compile using py2exe, and am getting the following:

$ python_win Setup.py py2exe
running py2exe
creating c:\Documents and Settings\rbarak \rbarak_devel\d pm09\build
creating c:\Documents and Settings\rbarak \rbarak_devel\d pm09\build\bdis t.win32
creating c:\Documents and Settings\rbarak \rbarak_devel\d pm09\build\bdis t.win32\winexe
creating c:\Documents and Settings\rbarak \rbarak_devel\d pm09\build\bdis t.win32\winexe\ collect-2.5
creating c:\Documents and Settings\rbarak \rbarak_devel\d pm09\build\bdis t.win32\winexe\ bundle-2.5
creating c:\Documents and Settings\rbarak \rbarak_devel\d pm09\build\bdis t.win32\winexe\ temp
*** searching for required modules ***
Traceback (most recent call last):
File "Setup.py", line 96, in <module>
windows = [test_wx]
File "C:\Python25\li b\distutils\cor e.py", line 151, in setup
dist.run_comman ds()
File "C:\Python25\li b\distutils\dis t.py", line 974, in run_commands
self.run_comman d(cmd)
File "C:\Python25\li b\distutils\dis t.py", line 994, in run_command
cmd_obj.run()
File "c:\Python25\li b\site-packages\py2exe \build_exe.py", line 228, in run
self._run()
File "c:\Python25\li b\site-packages\py2exe \build_exe.py", line 281, in _run
self.find_neede d_modules(mf, required_files, required_module s)
File "c:\Python25\li b\site-packages\py2exe \build_exe.py", line 1202, in find_needed_mod ules
mf.import_hook( mod)
File "c:\Python25\li b\site-packages\py2exe \mf.py", line 716, in import_hook
return Base.import_hoo k(self,name,cal ler,fromlist,le vel)
File "c:\Python25\li b\site-packages\py2exe \mf.py", line 136, in import_hook
q, tail = self.find_head_ package(parent, name)
File "c:\Python25\li b\site-packages\py2exe \mf.py", line 204, in find_head_packa ge
raise ImportError, "No module named " + qname
ImportError: No module named zipextimporter
My Setup.py (produced by GUI2Exe) is attached.

Note that I set compressed to 0 in Setup.py (options = {"py2exe": {"compressed ": 0), but it does not help.

Any ideas ?

Bye,
Ron.

Sep 10 '08 #1
0 2403

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

Similar topics

0
4552
by: Carsten Gehling | last post by:
Figured out myself - I just removed the line with "from url import Url" -it doesn't seem to be used anywhere ;-) - Carsten > -----Oprindelig meddelelse----- > Fra: python-list-admin@python.org > På vegne af Carsten Gehling > Sendt: 16. juli 2003 16:24
2
17714
by: x-herbert | last post by:
Hi, I have a small test to "compile" al litle script as a WMI-Tester. The script include a wmi-wrapper and "insert" the Win32-modeles. here the code: my "WMI-Tester.py" ----- import wmi
0
6305
by: M. Lavasani | last post by:
Hi I am trying to test Python-2.3. Any solution for this problem please: >>>gmake test case $MAKEFLAGS in \ *-s*) LD_LIBRARY_PATH=/net/ia64/lavasani/Python-2.3:/usr/local/lib/hpux32:/usr/local/lib CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
1
1521
by: nyiann | last post by:
Hi, Brand new to python. I am trying to install the py2exe modeule, and when I run scripts (simple ones I've made, and examples) I get an importerror. At the python command line I type: import py2exe and get: 'ImportError: no module named py2exe So installed everything on my laptop (windows me) and it all works fine. Has anyone seen this before? Am I importing the module incorrectly? Are
4
9591
by: prashant | last post by:
I am running a python script which has the line import getopt, sys, os, re, string And i get the error ImportError: No module named getopt Could you please point out a possible solution for this?
3
3363
by: Tim | last post by:
I'm at the end of my limited experience... I'm using py2exe to create an executable. I'm using bundle level 1. When I don't use the zipfile option, the executable and library.zip get created and the executable works correctly. When I add the zipfile=None option to put everything into the exe, the exe doesn't work. It raises an ImportError whose traceback is: File "...boot_common.py" ... no module name linecache
1
6380
by: kyosohma | last post by:
Hi, Recently I began my journey into creating executables. I am using Andrea Gavana's cool GUI2EXE program which works very well and that is a GUI for py2ece. I am also using Inno Setup to create a script/executable. Anyway, today I am putting the program to the test with some volunteer testers and
4
7561
by: Daniel | last post by:
Hello, I'm trying to build a very simple IPC system. What I have done is create Data Transfer Objects (DTO) for each item I'd like to send across the wire. I am serializing these using cPickle. I've also tried using pickle (instead of cPickle), but I get the same response. Below is the code. I'll put the rest of my comments after the code
4
5812
by: vincehofmeister | last post by:
Hey everyone: I am using py2exe and everything is working fine except one module, ClientCookie, found here: http://wwwsearch.sourceforge.net/ClientCookie/ Keeps coming up as not found no matter what I do. I have tried all these combinations from the command line:
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8830
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
9544
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
8243
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
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
4606
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3313
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
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.