467,134 Members | 1,096 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,134 developers. It's quick & easy.

py2exe: LoadLibrary(pythondll) failed

Hi there,
I py2exe my test.py as test.exe with a lot of dll and pyc in that
directory. If I move the test.exe into another directory and run it
from there, it gives me an error " LoadLibrary(pythondll) failed...
python24.dll". How can I set it up correctly for this test.exe to
run? Thanks.

Ouyang

Mar 3 '07 #1
  • viewed: 9304
Share:
2 Replies
zxo102 schrieb:
Hi there,
I py2exe my test.py as test.exe with a lot of dll and pyc in that
directory. If I move the test.exe into another directory and run it
from there, it gives me an error " LoadLibrary(pythondll) failed...
python24.dll". How can I set it up correctly for this test.exe to
run? Thanks.

Ouyang

The test.exe created by py2exe relies on everything else in the dist directory,
so you must copy these files as well.

Thomas

Mar 3 '07 #2
On 3月4日, 上午6时50分, Thomas Heller <thel...@ctypes.orgwrote:
zxo102 schrieb:
Hi there,
I py2exe my test.py as test.exe with a lot of dll and pyc in that
directory. If I move the test.exe into another directory and run it
from there, it gives me an error " LoadLibrary(pythondll) failed...
python24.dll". How can I set it up correctly for this test.exe to
run? Thanks.
Ouyang

The test.exe created by py2exe relies on everything else in the dist directory,
so you must copy these files as well.

Thomas
Thanks. Let me try it.

Mar 4 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Peter Teniz | last post: by
17 posts views Thread by Thomas Heller | last post: by
reply views Thread by Paul | last post: by
reply views Thread by jantod@gmail.com | last post: by
reply views Thread by acncgc | last post: by
1 post views Thread by centech | last post: by
1 post views Thread by gordon.chapman@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.