Alternatives to packaging p3d and yet another package bug.

I am starting to regret using panda3d just because I can not get the package system to work. I don’t know if it is me, ppackage and packp3d, or documentation, but I have spent too long just trying to get a working p3d for distribution. Is there any alternatives?

And now for the next issue involving the numpy package.

croxis@Planata:~/src/Outpost$ panda3d server.linux_amd64.p3d 
DirectStart: Starting the game.
:audio: NullAudioManager
:audio: NullAudioManager
:ShowBase: __dev__ == 0
Traceback (most recent call last):
  File "/root/pandaworker/panda3d-1.7.0/built_cmu/direct/showbase/Messenger.py", line 352, in __taskChainDispatch
  File "/root/pandaworker/panda3d-1.7.0/built_cmu/direct/showbase/Messenger.py", line 410, in __dispatch
  File "/root/pandaworker/panda3d-1.7.0/built_cmu/direct/p3d/AppRunner.py", line 493, in __startIfReady
  File "VFSImporter", line 153, in load_module
  File "/home/croxis/src/Outpost/server/main.py", line 30, in <module>
    import Outpost.common.Network as Network
  File "VFSImporter", line 153, in load_module
  File "/home/croxis/src/Outpost/common/__init__.py", line 2, in <module>
    from . import networkx
  File "VFSImporter", line 153, in load_module
  File "/home/croxis/src/Outpost/common/networkx/__init__.py", line 68, in <module>
    from algorithms import *
  File "VFSImporter", line 153, in load_module
  File "/home/croxis/src/Outpost/common/networkx/algorithms/__init__.py", line 1, in <module>
    from centrality import *
  File "VFSImporter", line 153, in load_module
  File "/home/croxis/src/Outpost/common/networkx/algorithms/centrality/__init__.py", line 7, in <module>
    from current_flow_closeness import *
  File "VFSImporter", line 153, in load_module
  File "/home/croxis/src/Outpost/common/networkx/algorithms/centrality/current_flow_closeness.py", line 17, in <module>
    import numpy as np
  File "VFSImporter", line 153, in load_module
  File "/usr/lib/python2.6/dist-packages/numpy/__init__.py", line 130, in <module>
    import add_newdocs
  File "VFSImporter", line 153, in load_module
  File "/usr/lib/python2.6/dist-packages/numpy/add_newdocs.py", line 9, in <module>
    from lib import add_newdoc
  File "VFSImporter", line 153, in load_module
  File "/usr/lib/python2.6/dist-packages/numpy/lib/__init__.py", line 4, in <module>
    from type_check import *
  File "VFSImporter", line 153, in load_module
  File "/usr/lib/python2.6/dist-packages/numpy/lib/type_check.py", line 8, in <module>
    import numpy.core.numeric as _nx
  File "VFSImporter", line 153, in load_module
  File "/usr/lib/python2.6/dist-packages/numpy/core/__init__.py", line 5, in <module>
    import multiarray
  File "VFSImporter", line 127, in load_module
  File "VFSImporter", line 228, in _import_extension_module
ImportError: /tmp/multitCEdwN.so: undefined symbol: _PyUnicodeUCS4_IsWhitespace
:task(error): Exception occurred in PythonTask Messenger-default
Traceback (most recent call last):
  File "/root/pandaworker/panda3d-1.7.0/built_cmu/direct/p3d/AppRunner.py", line 411, in run
  File "/root/pandaworker/panda3d-1.7.0/built_cmu/direct/task/Task.py", line 496, in run
  File "/root/pandaworker/panda3d-1.7.0/built_cmu/direct/task/Task.py", line 454, in step
  File "/root/pandaworker/panda3d-1.7.0/built_cmu/direct/showbase/Messenger.py", line 352, in __taskChainDispatch
  File "/root/pandaworker/panda3d-1.7.0/built_cmu/direct/showbase/Messenger.py", line 410, in __dispatch
  File "/root/pandaworker/panda3d-1.7.0/built_cmu/direct/p3d/AppRunner.py", line 493, in __startIfReady
  File "VFSImporter", line 153, in load_module
  File "/home/croxis/src/Outpost/server/main.py", line 30, in <module>
    import Outpost.common.Network as Network
  File "VFSImporter", line 153, in load_module
  File "/home/croxis/src/Outpost/common/__init__.py", line 2, in <module>
    from . import networkx
  File "VFSImporter", line 153, in load_module
  File "/home/croxis/src/Outpost/common/networkx/__init__.py", line 68, in <module>
    from algorithms import *
  File "VFSImporter", line 153, in load_module
  File "/home/croxis/src/Outpost/common/networkx/algorithms/__init__.py", line 1, in <module>
    from centrality import *
  File "VFSImporter", line 153, in load_module
  File "/home/croxis/src/Outpost/common/networkx/algorithms/centrality/__init__.py", line 7, in <module>
    from current_flow_closeness import *
  File "VFSImporter", line 153, in load_module
  File "/home/croxis/src/Outpost/common/networkx/algorithms/centrality/current_flow_closeness.py", line 17, in <module>
    import numpy as np
  File "VFSImporter", line 153, in load_module
  File "/usr/lib/python2.6/dist-packages/numpy/__init__.py", line 130, in <module>
    import add_newdocs
  File "VFSImporter", line 153, in load_module
  File "/usr/lib/python2.6/dist-packages/numpy/add_newdocs.py", line 9, in <module>
    from lib import add_newdoc
  File "VFSImporter", line 153, in load_module
  File "/usr/lib/python2.6/dist-packages/numpy/lib/__init__.py", line 4, in <module>
    from type_check import *
  File "VFSImporter", line 153, in load_module
  File "/usr/lib/python2.6/dist-packages/numpy/lib/type_check.py", line 8, in <module>
    import numpy.core.numeric as _nx
  File "VFSImporter", line 153, in load_module
  File "/usr/lib/python2.6/dist-packages/numpy/core/__init__.py", line 5, in <module>
    import multiarray
  File "VFSImporter", line 127, in load_module
  File "VFSImporter", line 228, in _import_extension_module
ImportError: /tmp/multitCEdwN.so: undefined symbol: _PyUnicodeUCS4_IsWhitespace
:TaskManager: TaskManager.destroy()
Successfully joined thread: 0
Failure on startup.

Did you specify -r numpy to packp3d when you generated the p3d file in the first place?

In defense of the p3d system, remember that this is a brand new release of an very complex system. And the fact that your own application was already written for the previous system, and is itself fairly complex, doesn’t make it easier. :slight_smile: There are bound to be some unexpected difficulties still be to discovered.

David

Oh. Well in this case it was an error of me :smiley:

I was mostly venting frustration, mostly from my inability at making working packages with ppackage. I also don’t want to be one of those annoying people who always asks for help. As a teacher I know what a pain those kinds of students can be :slight_smile:

No worries. Be sure you are also alert to the danger of overly frustrating yourself over an issue that could easily be solved by asking for help. :slight_smile:

David