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:
direct/actor
direct/gui
direct/…
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.