Panda3D doesn't start, I only get an ImportError

Return to Installation

Panda3D doesn't start, I only get an ImportError

Postby Redmage » Wed Jul 13, 2005 8:46 am

Hi,
panda3d doesn't run at my Fedora 3. I'm using the Fedora 3 rpm and running on python 2.3.4.

I get this error message:

$ ppython GreetingCard.py

DirectStart: Starting the game.
Traceback (most recent call last):
File "GreetingCard.py", line 1, in ?
import direct.directbase.DirectStart
File "/usr/src/redhat/BUILD/panda3d-1.0.5/BUILDROOT/usr/share/panda3d/direct/src/directbase/DirectStart.py", line 3, in ?
File "/usr/src/redhat/BUILD/panda3d-1.0.5/BUILDROOT/usr/share/panda3d/direct/src/showbase/ShowBase.py", line 6, in ?
File "/usr/share/panda3d/pandac/PandaModules.py", line 25, in ?
exec "from PandaModulesUnsqueezed import *"
File "<string>", line 1, in ?
File "/usr/lib64/python2.3/ihooks.py", line 398, in import_module
q, tail = self.find_head_package(parent, str(name))
File "/usr/lib64/python2.3/ihooks.py", line 434, in find_head_package
q = self.import_it(head, qname, parent)
File "/usr/lib64/python2.3/ihooks.py", line 489, in import_it
m = self.loader.load_module(fqname, stuff)
File "<package>", line 29, in load_module
File "PandaModulesUnsqueezed", line 1, in ?
File "/usr/lib64/python2.3/ihooks.py", line 398, in import_module
q, tail = self.find_head_package(parent, str(name))
File "/usr/lib64/python2.3/ihooks.py", line 434, in find_head_package
q = self.import_it(head, qname, parent)
File "/usr/lib64/python2.3/ihooks.py", line 489, in import_it
m = self.loader.load_module(fqname, stuff)
File "<package>", line 29, in load_module
File "libpandaexpressModules", line 5, in ?
File "/usr/lib64/python2.3/ihooks.py", line 398, in import_module
q, tail = self.find_head_package(parent, str(name))
File "/usr/lib64/python2.3/ihooks.py", line 441, in find_head_package
raise ImportError, "No module named " + qname
ImportError: No module named libdtoolconfig


This is my library path, could it be, that it is wrong?
>>> import sys
>>> sys.path
['', '/usr/lib64/python23.zip', '/usr/lib64/python2.3', '/usr/lib64/python2.3/plat-linux2', '/usr/lib64/python2.3/lib-tk', '/usr/lib64/python2.3/lib-dynload', '/usr/lib64/python2.3/site-packages', '/usr/lib64/python2.3/site-packages/gtk-2.0', '/usr/lib/python2.3/site-packages', '/usr/share/panda3d']

If it's wrong, how can I fix it?

Thank you very much for your help
Redmage
Redmage
 
Posts: 1
Joined: Wed Jul 13, 2005 8:36 am

xyz

Postby Josh Yelon » Wed Jul 13, 2005 9:51 am

I see the problem. The directory /usr/lib64 is in your path, and in fact, python itself is installed in /usr/lib64. But I believe that the spec file I wrote assumes that python is installed in /usr/lib, not /usr/lib64. You might have to take a look at the spec file and fix it.

One thing you might consider doing is just untarring the tar file and building panda using makepanda, instead of trying to use the RPM build system. Doing this would bypass the whole which-directory-should-it-be-installed-in question.

Also, if this really is a 64-bit processor, then be warned --- we haven't tested panda on every microprocessor. You may run into difficulties.
Josh Yelon, Teacher, Carnegie Mellon Entertainment Technology Center
Josh Yelon
 
Posts: 1360
Joined: Wed Mar 30, 2005 8:30 pm


Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests