[SOLVED]Installing Panda3D on Ubuntu 12.04 Bheta

Return to Installation

[SOLVED]Installing Panda3D on Ubuntu 12.04 Bheta

Postby Nalpam » Fri Apr 13, 2012 8:59 am

Hello Folks,

I'm trying to install and use panda 3d, so that i can run another program, named Tethical (a TBS engine, based on FFT, with support for online matches).

Anyway, the problem I'm facing here is that when I try to run the server for Tethical, this error message pops up:

Traceback (most recent call last):
File "main.py", line 1, in <module>
from panda3d.core import loadPrcFile
File "/usr/local/share/panda3d/panda3d.py", line 196, in __getattr__
mod = self.__manager__.libimport(lib)
File "/usr/local/share/panda3d/panda3d.py", line 105, in libimport
return __import__(name)
ImportError: dynamic module does not define init function (initlibpandaexpress)


Now, I have already looked through the forums searching for initlibpandaexpress but I found only 3 matches and none of then seems to have a conclusive answer to the problem, other than "You screwed up during installation. Try again!" and "initlibpandaexpress wasn't compiled with the Python interfaces".

Now, I do believe that the compilation without the interfaces is the cause of the problem here, but I don't have a clue what this mean. I'm inexperienced with Python, and I only know some fundamentals about it. I know what an Interface is but I don't know how could I check if the file got this interface in it's binaries.

Also, about the installation process, I'm using makepanda, in contrast to the other forum topics, where users where trying to install it with ppremake.

And for some data about what/where I've been doing this:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu precise (development branch)"


I'm using a x64 distribution of the OS.

Python 2.7.3rc2


I'm building panda with the makepanda.py --nothing flag.

Any help or insight on the subject would greatly be appreciated.

Sorry about my rusty english :P and Thanks for your help and time spent reading my post.
Last edited by Nalpam on Sun Apr 15, 2012 8:29 pm, edited 2 times in total.
Nalpam
 
Posts: 6
Joined: Fri Apr 13, 2012 8:28 am
Location: Brasil

Postby Nalpam » Sat Apr 14, 2012 8:31 pm

After going through some forums searchs, I found out that I can't run the samples that were distributed in it.

The reason behind it is because I choose --nothing at pandamake, and because of that, some essential libraries (for the samples) were left out.

I went through the process of trying it again, but with --everything but this resulted in a lot of warnings in my screen, saying i don't have some third party libraries.

I also noticed that one of the warnings mentioned zlib, so I checked If i had this package installed. For my surprise, it WAS installed, and even the dev package was also installed.

So, the thing is, how does pandamake checks for the libraries I currently have installed in my system?

Btw, I'm trying to install version 1.7.2 of Panda3D. Maybe I should try 1.8.0 or the one directly from the repositories...

Anyway, thanks for your attention on this matter.
Nalpam
 
Posts: 6
Joined: Fri Apr 13, 2012 8:28 am
Location: Brasil

Postby Nalpam » Sun Apr 15, 2012 8:29 pm

Alright! :D

Here is the deal. For Ubuntu 12.04, I'd recommend installing the 1.8.0 version of Panda3D, and do it with the --everything --installer option.

This method won't generate any error messages and can find the packages installed in your OS (no more zlib trouble).

As for me, I had do manually remove the files that installpanda.py had created. After this, I just did what I stated before.

Best luck to you.
Nalpam
 
Posts: 6
Joined: Fri Apr 13, 2012 8:28 am
Location: Brasil

Postby rdb » Wed Apr 18, 2012 2:02 pm

You can add the --verbose flag and makepanda will explain which files it is checking for presence of libraries such as zlib. Make sure you install the devel version of the packages, eg zlib1g-dev or libz-dev, or whatever it is called.
rdb
 
Posts: 8565
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands


Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests