I’m not sure if this is the correct category for this question, but…
I tried to make the game “client” with py2exe, but when i run the .exe file i get this error: “Cannot find libpandaexpress.dll”
Any help on fixing it would be greatly appreciated.
Just include all Panda’s .dll.
Have you followed this :
Thanks, here’s the response i get:
NameError: name ‘exit’ is not defined
[size=75]Please see this post why the exit gives an error:
I believe it has been fixed in 1.5.2, but I’m not sure.[/size]
How I fixed this was: From my local Panda3D copy, I removed the direct/init.py and direct/init.pyc files, and moved all directories from direct/src/* to direct/*, and then removing the direct/src/ dir, so I would end up with a directory structure like:
Instead of direct/src/actor etc.
That perfectly solved the issue here.
It won’t work
And when i run the python file itself, i get this:
File “C:\Panda3D-1.5.2\python\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py”, line 310, in RunScript
exec codeObject in main.dict
File “file.py”, line 1, in
from pandac.PandaModules import loadPrcFileData
File “pandac\PandaModules.py”, line 5, in
File “pandac\libp3directModules.py”, line 15, in
ImportError: No module named direct.directnotify.DirectNotifyGlobal
So, pro-rsoft, do you always relocate those files every packing time ?
I don’t like letting my hands wet doing the same thing around that **** hole.
Just use my setup script there, end of problem. My script takes care all those “features”.
@Awky, oh yeah you will need to make another init.py which imports all those modules, I just created a little unix/python script to do that.
@ynjh_jo, no, just once, cuz panda imports work the same afterwards. But I’m only packing once per two months or so, normally I’m on linux Plus, I’m using pyInstaller instead of py2exe, I find it to work much better than py2exe.
sure, but still you have to do that, and the worse thing is you’re encouraging other ppl to do it too !