You are not logged in.
I installed python-ogre from AUR, but when I try to test it out and run one of the examples I get the following error:
[kiril@lynx ogre]$ python2 Demo_Grass.py
Traceback (most recent call last):
File "Demo_Grass.py", line 32, in <module>
import ogre.renderer.OGRE as ogre
File "/usr/lib/python2.7/site-packages/ogre/renderer/OGRE/__init__.py", line 10, in <module>
from _ogre_ import *
ImportError: No module named _ogre_So instead I tried to follow the instructions of kkb110's comment post in the AUR page for the package. However, when I get to the build step I receive this error:
[kiril@lynx workspace]$ python2 python-ogre/BuildModule.py -g -c ogre
PythonOgre.BuildModule: INFO Building Source code for ogre
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Compiling Source code for ogreFinally, I tried installing from source following the instruction on the wiki page of python-ogre here: http://wiki.python-ogre.org/index.php/LinuxBuildV4
I get the following error when going for step 3:
[kiril@lynx workspace]$ python2 python-ogre/BuildModule.py -r cg pygccxml gccxml
PythonOgre.BuildModule: INFO Retrieving http://developer.download.nvidia.com/cg/Cg_2.2/Cg-2.2_October2009_x86_64.tgz
PythonOgre.BuildModule: INFO Retrieving co http://pygccxml.svn.sourceforge.net/svnroot/pygccxml/pygccxml_dev pygccxml
PythonOgre.BuildModule: INFO Retrieving -d :pserver:anoncvs@www.gccxml.org:/cvsroot/GCC_XML co -D 01Jan2010 gccxml
[kiril@lynx workspace]$ python2 python-ogre/BuildModule.py -r pyplusplus
PythonOgre.BuildModule: INFO Retrieving co http://pygccxml.svn.sourceforge.net/svnroot/pygccxml/pyplusplus_dev pyplusplus
[kiril@lynx workspace]$ python2 python-ogre/BuildModule.py -b gccxml pygccxml cg pyplusplus boost_python --usesystem
Traceback (most recent call last):
File "python-ogre/BuildModule.py", line 9, in <module>
import environment
File "/home/kiril/workspace/python-ogre/environment.py", line 1858, in <module>
class hydrax(pymodule):
File "/home/kiril/workspace/python-ogre/environment.py", line 1877, in hydrax
moduleLibs = [ os.path.join(Config.PATH_LIB_hydrax, 'Hydrax')]
AttributeError: 'module' object has no attribute 'PATH_LIB_hydrax'This happens every time the --usesystem is used on BuildModule.py
I tried to run it without the --usesystem flag:
[kiril@lynx workspace]$ python2 python-ogre/BuildModule.py -b gccxml pygccxml cg pyplusplus boost_python
PythonOgre.BuildModule: INFO Build Command mkdir -p gccxml-build
PythonOgre.BuildModule: INFO Build Command cmake ../gccxml -DCMAKE_INSTALL_PREFIX:PATH=/home/kiril/workspace/root/usr
PythonOgre.BuildModule: INFO Build Command make
PythonOgre.BuildModule: INFO Build Command make install
PythonOgre.BuildModule: INFO Build Command python setup.py install --prefix=/home/kiril/workspace/root/usr
PythonOgre.BuildModule: INFO Build Command tar xvzf /home/kiril/workspace/downloads/Cg-2.2_October2009_x86_64.tgz --overwrite
PythonOgre.BuildModule: INFO Build Command python setup.py install --prefix=/home/kiril/workspace/root/usr
PythonOgre.BuildModule: INFO Build Command unzip -o /home/kiril/workspace/python-ogre/ThirdParty/boost_python.zip
PythonOgre.BuildModule: INFO Build Command bjam -j2 release --with-python --with-thread --with-date_time --prefix=/home/kiril/workspace/root/usr
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Build Command echo This may take a while -- copying each include file individually!!
PythonOgre.BuildModule: INFO Build Command bjam install --with-python --prefix=/home/kiril/workspace/root/usr
PythonOgre.BuildModule: WARNING Task FailedSince I must have py++, gccxml and boost installed from the previous attempts, I tried compiling the ogre binaries. Same WARNING Task Failed as above.
Lastly, I tried to build the wrapper itself, like in step 2, but with the sources that I got from python-ogre's svn. Same error as in attempt 2.
The contebt of the log.out file in the python-ogre is this:
12-19 17:08 PythonOgre.BuildModule INFO Retrieving http://developer.download.nvidia.com/cg/Cg_2.2/Cg-2.2_October2009_x86_64.tgz
12-19 17:08 PythonOgre.BuildModule DEBUG Spawning 'wget -c -nc http://developer.download.nvidia.com/cg/Cg_2.2/Cg-2.2_October2009_x86_64.tgz' in '/home/kiril/workspace/python-ogre/downloads'
12-19 17:08 PythonOgre.BuildModule INFO Retrieving co http://pygccxml.svn.sourceforge.net/svnroot/pygccxml/pygccxml_dev pygccxml
12-19 17:08 PythonOgre.BuildModule DEBUG Spawning 'svn --non-interactive co http://pygccxml.svn.sourceforge.net/svnroot/pygccxml/pygccxml_dev pygccxml' in '/home/kiril/workspace/python-ogre'
12-19 17:08 PythonOgre.BuildModule INFO Retrieving -d :pserver:anoncvs@www.gccxml.org:/cvsroot/GCC_XML co -D 01Jan2010 gccxml
12-19 17:08 PythonOgre.BuildModule DEBUG Spawning 'cvs -z3 -q -d :pserver:anoncvs@www.gccxml.org:/cvsroot/GCC_XML co -D 01Jan2010 gccxml' in '/home/kiril/workspace/python-ogre'
12-19 17:08 PythonOgre.BuildModule WARNING Task Failed
12-19 17:08 PythonOgre.BuildModule DEBUG
12-19 17:08 PythonOgre.BuildModule DEBUG /bin/sh: cvs: command not foundI have cvs installed. Not sure why it cannot find it.
At this point I am not sure what to do. Any advice is greatly appreciated.
Thanks in advance.
Last edited by kirilz (2011-12-20 03:11:53)
Offline