2.5 and py2exe problems

Hi all. This has probably already been covered, but I couldn't find it...

I just upgraded to wxPython 2.5.1 and successfully migrated my app
to it. The results of py2exe no longer work though. The message I get when
I run the app is:

Traceback (most recent call last):
  File "wyrd.py", line 49, in ?
  File "wx\__init__.pyc", line 45, in ?
  File "wxPython\__init__.pyc", line 20, in ?
  File "wxPython\wxc.pyc", line 9, in ?
  File "wxPython\wxc.pyc", line 7, in __load
ImportError: DLL load failed: The specified module could not be found.

It's not clear which dll is the problem. I tried adding "wx" to the
packages list in my setup.py but although that gave me many more
files in the distribution directory, I got the same error.

As always, help appreciated.

(By the way, Robin and everyone else who answers all the questions
and does all the work: Great Job!)

···

------------------------------------------------------------
Jeff Kotula
jkotula@earthlink.net

"Jeff Kotula" <jkotula@earthlink.net> writes:

Hi all. This has probably already been covered, but I couldn't find it...

I just upgraded to wxPython 2.5.1 and successfully migrated my app
to it. The results of py2exe no longer work though. The message I get when
I run the app is:

Traceback (most recent call last):
  File "wyrd.py", line 49, in ?
  File "wx\__init__.pyc", line 45, in ?
  File "wxPython\__init__.pyc", line 20, in ?
  File "wxPython\wxc.pyc", line 9, in ?
  File "wxPython\wxc.pyc", line 7, in __load
ImportError: DLL load failed: The specified module could not be found.

It's not clear which dll is the problem. I tried adding "wx" to the
packages list in my setup.py but although that gave me many more
files in the distribution directory, I got the same error.

As always, help appreciated.

Wild guess: did you 'forget' to clean out the existing build and dist tree
before trying a new build? I say 'forget' because it's not mentioned
anywhere that it's required, but sometimes it does wonders ;-).

Thomas

That took care of it! I had deleted the dist directory, but not build.
Thanks Thomas. py2exe is a great utility.

···

----- Original Message -----
From: "Thomas Heller" <theller@python.net>
To: <wxpython-users@lists.wxwindows.org>
Sent: Tuesday, April 13, 2004 8:21 AM
Subject: [wxPython-users] Re: 2.5 and py2exe problems

"Jeff Kotula" <jkotula@earthlink.net> writes:

> Hi all. This has probably already been covered, but I couldn't find

it...

>
> I just upgraded to wxPython 2.5.1 and successfully migrated my app
> to it. The results of py2exe no longer work though. The message I get

when

> I run the app is:
>
> Traceback (most recent call last):
> File "wyrd.py", line 49, in ?
> File "wx\__init__.pyc", line 45, in ?
> File "wxPython\__init__.pyc", line 20, in ?
> File "wxPython\wxc.pyc", line 9, in ?
> File "wxPython\wxc.pyc", line 7, in __load
> ImportError: DLL load failed: The specified module could not be found.
>
> It's not clear which dll is the problem. I tried adding "wx" to the
> packages list in my setup.py but although that gave me many more
> files in the distribution directory, I got the same error.
>
> As always, help appreciated.

Wild guess: did you 'forget' to clean out the existing build and dist tree
before trying a new build? I say 'forget' because it's not mentioned
anywhere that it's required, but sometimes it does wonders ;-).

Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org

________________________________________________________________________
This email has been scanned for all viruses and found to be virus free. If

you have questions regarding this scanning please visit the Information
Services area of http://home.vitalimages.com

________________________________________________________________________