MEtalhead
21-11-2010 18:12:32
I don´t know how to get rid of this problem!
Everything worked fine build,install but when i try to start an example i get this Error.
I searched in the directories but everything is where it belongs to...i thing.
The only odd thing is,that the _ogre_ module have the extension .pyd instead of .so ... could this maybe the problem?I read that .pyd is an dynamic lib for windows used by python.
I hope you can help me!
Thank you in anticipation!
P.S:I use Ubuntu 10.10 live (Maverick Meerkat) If you need to know.
dermont
21-11-2010 20:23:49
I don´t know how to get rid of this problem!
Everything worked fine build,install but when i try to start an example i get this Error.
I searched in the directories but everything is where it belongs to...i thing.
The only odd thing is,that the _ogre_ module have the extension .pyd instead of .so ... could this maybe the problem?I read that .pyd is an dynamic lib for windows used by python.
I hope you can help me!
Thank you in anticipation!
P.S:I use Ubuntu 10.10 live (Maverick Meerkat) If you need to know.
What were the steps that you took to build and install python-ogre?
MEtalhead
22-11-2010 16:17:38
Hmm.... i just done everything in the Python-Ogre 1.7.1 Available announcement.
Then i delete the existing build dir and rebuild it withe python setup.py build command and installed it.
Again i got the error.(I realized that you only can do this under Windows

)
Now i downloaded the python-ogre src from
http://python-ogre.svn.sourceforge.net/ ... thon-ogre/
with svn.
And i trying now to build it like the "
http://wiki.python-ogre.org/index.php/LinuxBuildV4" says,but now i get this message:
INFO Retrieving -d :pserver:anoncvs@www.gccxml.org:/cvsroot/GCC_XML co -D 01Jan2010 gccxml
PythonOgre.BuildModule: WARNING Task Failed
after enter this :
python python-ogre/BuildModule.py -r cg pygccxml pyplusplus gccxml
SirGolan
22-11-2010 17:28:53
There should be a log file "log.out" it will likely have more information on what went wrong. Feel free to paste the error you find there. If I had to guess though, I'd say you need to install cvs.
MEtalhead
22-11-2010 17:41:37
Yupp you´re right
Now Im on Step 2 ,but when enter
python python-ogre/BuildModule.py -b gccxml pygccxml cg pyplusplus boost_python --usesystem
i get this error:
Traceback (most recent call last):
File "python-ogre/BuildModule.py", line 9, in <module>
import environment
File "/home/roman/PyOgre/python-ogre/environment.py", line 1309, in <module>
class ogrevideo(pymodule):
File "/home/roman/PyOgre/python-ogre/environment.py", line 1330, in ogrevideo
os.path.join(Config.PATH_libtheoraplayer, "include"),
AttributeError: 'module' object has no attribute 'PATH_libtheoraplayer'
I found an similiar problem post in this forum and the solution was to change PythonOgreConfig_posix.py but the file is already changed in my src.
SirGolan
22-11-2010 17:54:53
I think you need to make the change in environment.py as per this post:
viewtopic.php?f=3&t=13145
BTW, I think the line number mentioned in the post is off, but if you just search for PATH_ogrevideo in there, you should find it.
Mike
dermont
22-11-2010 19:09:14
Yupp you´re right 
Now Im on Step 2 ,but when enter
python python-ogre/BuildModule.py -b gccxml pygccxml cg pyplusplus boost_python --usesystem
i get this error:
Traceback (most recent call last):
File "python-ogre/BuildModule.py", line 9, in <module>
import environment
File "/home/roman/PyOgre/python-ogre/environment.py", line 1309, in <module>
class ogrevideo(pymodule):
File "/home/roman/PyOgre/python-ogre/environment.py", line 1330, in ogrevideo
os.path.join(Config.PATH_libtheoraplayer, "include"),
AttributeError: 'module' object has no attribute 'PATH_libtheoraplayer'
I found an similiar problem post in this forum and the solution was to change PythonOgreConfig_posix.py but the file is already changed in my src.
viewtopic.php?f=3&t=13329
I think that since you use the --usesystem option the config file is PythonOgreConfig_system.py, you should therefore modify that file as per the above thread.
MEtalhead
22-11-2010 19:42:50
@SIrGolan
I already had this problem with ogrevideo.
But the solution for libtheoraplayer was similiar with the ogrevideo.
Just swap this
os.path.join(Config.PATH_libtheoraplayer, "include")
with this:
os.path.join(Config.PATH_Theora, "include")
I just searched Theora in PythonOgreConfig_system.py foundout that the PATH_libtheoraplayer doesnt exist but PATH_Theora.
I had the same problem with PATH_LIB_Ogre_OgreMain_debug but i didnt found anything that had debug within his name.
So i commented every Config.PATH_LIB_Ogre_OgreMain_debug in enviroment.py.(Im not sure if this is so good

)
Now I got nearly one step further but then i got this message:
PythonOgre.BuildModule: INFO Build Command sudo bjam install --with-python --prefix=/usr
PythonOgre.BuildModule: WARNING Task Failed
Heres the log.out entry
11-22 20:12 PythonOgre.BuildModule INFO Build Command mkdir -p gccxml-build
11-22 20:12 PythonOgre.BuildModule DEBUG Spawning 'mkdir -p gccxml-build' in '/home/roman/PyOgre'
11-22 20:12 PythonOgre.BuildModule INFO Build Command cmake ../gccxml -DCMAKE_INSTALL_PREFIX:PATH=/usr
11-22 20:12 PythonOgre.BuildModule DEBUG Spawning 'cmake ../gccxml -DCMAKE_INSTALL_PREFIX:PATH=/usr' in '/home/roman/PyOgre/gccxml-build'
11-22 20:13 PythonOgre.BuildModule INFO Build Command make
11-22 20:13 PythonOgre.BuildModule DEBUG Spawning 'make' in '/home/roman/PyOgre/gccxml-build'
11-22 20:20 PythonOgre.BuildModule INFO Build Command sudo make install
11-22 20:20 PythonOgre.BuildModule DEBUG Spawning 'sudo make install' in '/home/roman/PyOgre/gccxml-build'
11-22 20:20 PythonOgre.BuildModule INFO Build Command sudo python setup.py install
11-22 20:20 PythonOgre.BuildModule DEBUG Spawning 'sudo python setup.py install ' in '/home/roman/PyOgre/pygccxml'
11-22 20:20 PythonOgre.BuildModule INFO Build Command sudo tar xvzf /home/roman/PyOgre/downloads/Cg-2.2_October2009_x86.tgz --overwrite
11-22 20:20 PythonOgre.BuildModule DEBUG Spawning 'sudo tar xvzf /home/roman/PyOgre/downloads/Cg-2.2_October2009_x86.tgz --overwrite' in '/'
11-22 20:20 PythonOgre.BuildModule INFO Build Command sudo python setup.py install
11-22 20:20 PythonOgre.BuildModule DEBUG Spawning 'sudo python setup.py install ' in '/home/roman/PyOgre/pyplusplus'
11-22 20:20 PythonOgre.BuildModule INFO Build Command unzip -o /home/roman/PyOgre/python-ogre/ThirdParty/boost_python.zip
11-22 20:20 PythonOgre.BuildModule DEBUG Spawning 'unzip -o /home/roman/PyOgre/python-ogre/ThirdParty/boost_python.zip' in '/home/roman/PyOgre'
11-22 20:20 PythonOgre.BuildModule INFO Build Command bjam -j2 release --with-python --with-thread --with-date_time --prefix=/usr
11-22 20:20 PythonOgre.BuildModule DEBUG Spawning 'bjam -j2 release --with-python --with-thread --with-date_time --prefix=/usr' in '/home/roman/PyOgre/boost_python'
11-22 20:20 PythonOgre.BuildModule WARNING Task Failed
11-22 20:20 PythonOgre.BuildModule DEBUG
11-22 20:20 PythonOgre.BuildModule DEBUG /bin/sh: bjam: not found
11-22 20:20 PythonOgre.BuildModule INFO Build Command echo This may take a while -- copying each include file individually!!
11-22 20:20 PythonOgre.BuildModule DEBUG Spawning 'echo This may take a while -- copying each include file individually!!' in '/home/roman/PyOgre'
11-22 20:20 PythonOgre.BuildModule INFO Build Command sudo bjam install --with-python --prefix=/usr
11-22 20:20 PythonOgre.BuildModule DEBUG Spawning 'sudo bjam install --with-python --prefix=/usr' in '/home/roman/PyOgre/boost_python'
11-22 20:20 PythonOgre.BuildModule WARNING Task Failed
11-22 20:20 PythonOgre.BuildModule DEBUG
11-22 20:20 PythonOgre.BuildModule DEBUG sudo: bjam: command not found
@dermont
viewtopic.php?f=3&t=13329
check out the trunks this change is already done.
dermont
22-11-2010 20:56:49
MEtalhead
24-11-2010 15:46:48
I deleted the python-ogre dir,
made sure i have all prerequisites,
redownloaded python-ogre,
got the same error like befor without the bjam thing,
Had problems with cegui,that i solved somehow,
Now i stuck in Step 5.
I guess,for now,i will use the stable branch thing.
dermont
24-11-2010 16:32:10
I guess,for now,i will use the stable branch thing.
So you what branch are you now using - v1-6-4?
Now i stuck in Step 5.
You will have to post your log /description of your problem if you want someone to help.