Trouble installing the binary on Debian unstable

Scramblejams

17-02-2010 05:49:08

Hi all,

Having a little trouble getting Python-Ogre going. I'm running Debian unstable (64-bit), with Debian's packaged Ogre 1.6.4. I installed Python2.6, downloaded Python-Ogre-Core-1.6.4-r1017-py263.7z and did

python2.6 setup.py build
sudo python2.6 setup.py install

All seems to go fine, no problems I could see. Then, going through tutorial 1 I hit a roadblock pretty quick:

$ python2.6
Python 2.6.4+ (r264:75706, Jan 31 2010, 22:27:50)
[GCC 4.4.3] on linux2
>>> import ogre.renderer.OGRE as ogre
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/dist-packages/ogre/renderer/OGRE/__init__.py", line 10, in <module>
from _ogre_ import *
ImportError: No module named _ogre_

Any ideas? I've already tried symlinking the Debian-provided ogre.so (actually /usr/lib/libOgreMain.so) in the /usr/local/lib/python2.6/dist-packages/ogre directory, but that didn't help.

Thanks!

Steve

dermont

17-02-2010 06:08:13

I think that you may be following the steps for Windows installation.
viewtopic.php?f=3&t=11318

See the following for how to build and install python-ogre on Linux. There are also instructions on how to run the package you downloaded on Wine.
http://wiki.python-ogre.org/index.php/LinuxBuildV2

You should check to see if a packed version exists for your distro. Note that there appears to be problems running python-ogre on 64bit machines so again you should check if this has been resolved before building. Here is the link to the developers group.
http://groups.google.com/group/python-ogre-developers

Scramblejams

17-02-2010 06:17:46

I think that you may be following the steps for Windows installation.
viewtopic.php?f=3&t=11318

Not specifically, I was just using the included setup.py to install, which for other Python libraries tends to be the right thing to do...

See the following for how to build and install python-ogre on Linux. There are also instructions on how to run the package you downloaded on Wine.
http://wiki.python-ogre.org/index.php/LinuxBuildV2

Yes, I reviewed that page. It says at the top to download the binary package if I'm using Debian. It doesn't refer to a specific file, but if it's not what I downloaded, any idea what that's referring to?

Beyond that -- I'm not using WINE, and I really do not want to build from source if I can help it.

You should check to see if a packed version exists for your distro. Note that there appears to be problems running python-ogre on 64bit machines so again you should check if this has been resolved before building. Here is the link to the developers group.
http://groups.google.com/group/python-ogre-developers

As mentioned above, the docs seem to indicate a packed version exists for Debian, but if I didn't already download it, I don't know where to find it. Nobody seems to be building deb files that I can see. Regarding 64-bit, thanks, I'll do some searching...

Steve

dermont

17-02-2010 06:43:50



See the following for how to build and install python-ogre on Linux. There are also instructions on how to run the package you downloaded on Wine.
http://wiki.python-ogre.org/index.php/LinuxBuildV2

Yes, I reviewed that page. It says at the top to download the binary package if I'm using Debian. It doesn't refer to a specific file, but if it's not what I downloaded, any idea what that's referring to?



I think it is referring to the packaged version of python-ogre via the thousandparsec repo IIRC. I'm not sure of the current status of this or whether it works on 64bit machines. Check on the developers group:

http://groups.google.com/group/python-o ... 6872?pli=1
http://groups.google.com/group/python-o ... 116e8bf21d

Scramblejams

17-02-2010 06:57:04

I think it is referring to the packaged version of python-ogre via the thousandparsec repo IIRC. I'm not sure of the current status of this or whether it works on 64bit machines. Check on the developers group:

http://groups.google.com/group/python-o ... 6872?pli=1
http://groups.google.com/group/python-o ... 116e8bf21d

Thanks for that, that fills something in from my memory of messing with this a couple of years ago. Looks like it's disappeared from their repository, unfortunately. I'll try building from source. :(

To anybody who reads this in the future and would like to see python-ogre as an official Debian package, go to https://bugs.launchpad.net/debian/+bug/199497?comments=all, register, login and click on "This bug affects X other people, does it affect you?" Thanks!

Steve

dermont

17-02-2010 07:09:18

I think it is referring to the packaged version of python-ogre via the thousandparsec repo IIRC. I'm not sure of the current status of this or whether it works on 64bit machines. Check on the developers group:

http://groups.google.com/group/python-o ... 6872?pli=1
http://groups.google.com/group/python-o ... 116e8bf21d

Thanks for that, that fills something in from my memory of messing with this a couple of years ago. Looks like it's disappeared from their repository, unfortunately. I'll try building from source. :(

To anybody who reads this in the future and would like to see python-ogre as an official Debian package, go to https://bugs.launchpad.net/debian/+bug/199497?comments=all, register, login and click on "This bug affects X other people, does it affect you?" Thanks!

Steve


Don't know what the status of the above repo is, last instructions I read regarding this was:
viewtopic.php?f=3&t=5558&start=0

If I were you I would post on the developers group, there may an updated link for your distro or someone may have an unofficial build that you can use.

Before you start building from source check the developers group and problems other users are having with 64bit builds, better than wasting your time building only to find you encounter run-time problems.