471,334 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Error on windows startup (zipextimporter)

HI everybody !
I have finished my python program with WxPython and it compile with py2exe
My program work fine when I start it by an icon but when I use windows registry (HKCU\Sofware\windows\currentversion\run\myprogram .exe) to start my program on windows startup my program does'nt work and I have this error:
Expand|Select|Wrap|Line Numbers
  1. Traceback (most recent call last):
  2.   File "<install zipextimporter>", line 1, in <module>
  3. ImportError: No module named zipextimporter
  4. Traceback (most recent call last):
  5.   File "myprogram.pyw", line 6, in <module>
  6. ImportError: No module named wx
I think it's a py2exe problem so here the setup.py:
Expand|Select|Wrap|Line Numbers
  1. from distutils.core import setup 
  2. import py2exe 
  3.  
  4. opts = {
  5.     "py2exe": {
  6.         "includes": "email.mime.text"
  7.     }
  8. }
  9.  
  10. setup( 
  11.     options={"py2exe":{"bundle_files": 2,"compressed": 3, "optimize": 0, "includes": "email.encoders, email.generator, email.iterators, email.utils, email.mime.base, email.mime.multipart, email.mime.text, email.base64mime"}}, 
  12.     windows=[
  13.             {
  14.                 "script":"D:\\myprogram.pyw",
  15.                 "icon_resources": [(1, "D:\\icon.ico")]
  16.             }],
  17.     )
  18.  
Can you help me please
Thank !
Jan 12 '08 #1
0 1196

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Wayno | last post: by
5 posts views Thread by Tony Wright | last post: by
1 post views Thread by Janez Kostanj¹ek | last post: by
3 posts views Thread by Mihai | last post: by
8 posts views Thread by =?Utf-8?B?TWFydGluIFNhY2hz?= | last post: by
reply views Thread by Keith Bailey | last post: by
reply views Thread by rosydwin | last post: by

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.