I’m able to load a .obj file into my program and it runs fine.
But when I use
setuptools to bundle it into an app, the app doesn’t run and I get the error(s):
:audio(error): load_dso(libp3fmod_audio.so) failed, will use NullAudioManager :audio(error): No error. :loader(warning): Unable to load libp3assimp.dylib: No error. :loader(error): Extension of file models_and_textures/mars.obj is unrecognized; cannot load. Currently known scene file types are: Bam .bam :loader(error): Couldn't load file models_and_textures/mars.obj: all matching files on model path invalid (the model path is currently: "/Volumes/iMac and MBP Files/CAMBRIDGE/ENGINEERING – 1A/Mars_Lander/Python Version/Project Files/build/macosx_10_6_x86_64/Mars Lander – 2019.app/Contents/MacOS/../Resources:/..:/../models") Traceback (most recent call last): File "lander_graphics.py", line 23, in <module> lander = Lander() File "lander_graphics.py", line 17, in __init__ self.mars = self.loader.loadModel("models_and_textures/mars.obj") File "/Volumes/iMac and MBP Files/CAMBRIDGE/ENGINEERING – 1A/Mars_Lander/Python Version/Project Files/build/__whl_cache__/panda3d-22.214.171.124+opt-cp37-cp37m-macosx_10_6_x86_64.whl/direct/showbase/Loader.py", line 286, in loadModel OSError: Could not load model file(s): ['models_and_textures/mars.obj']
I’m aware that a bundled app uses .bam files which are usually converted from .egg files. However, the
obj2egg program does not work with textures, so the model ends up white if I convert it to .egg.
Are there any other things I can try?