Troubles in installation

texugo

20-06-2008 18:18:49

Hi everybody

I'm a ubuntu user and python programmer and try to install python-ogre like i see in : http://wiki.python-ogre.org/index.php/LinuxBuildV2

When i came in step 5...
python python-ogre/BuildModule.py -g -c ois ogre

I received:

PythonOgre.BuildModule: INFO Building Source code for ogre
PythonOgre.BuildModule: WARNING Task Failed
PythonOgre.BuildModule: INFO Compiling Source code for ogre
PythonOgre.BuildModule: WARNING Task Failed

in log.out i got:

Building ogre
WARNING: Generate the sources in this directory: "/home/paco/development/python-ogre/generated/ogre_1.4"

06-21 14:04 PythonOgre.BuildModule DEBUG OSError: [Errno 2] No such file or directory: '/home/paco/development/python-ogre/generated/ogre_1.4':
File "/home/paco/development/python-ogre/SConstruct", line 188:
sourcefiles = get_source_files(cls, cls._source, usepch)
File "/home/paco/development/python-ogre/SConstruct", line 87:
raise e

But when i see the C++ Demos they run ok!
Someone can help? I don't know how to fix.
:shock:

Thanks

bjern

21-06-2008 17:09:47

Hello,

Im using Kubuntu 8.04 and have the same problem with installation.
python python-ogre/BuildModule.py -g -c ois worked fine but python python-ogre/BuildModule.py -g -c ogre failed, Here is full log.out: http://pastebin.4programmers.net/4131 (its quite big). I think these are some of the interesting parts among all the log's spam:

06-21 16:47 PythonOgre.BuildModule INFO Building Source code for ogre
06-21 16:47 PythonOgre.BuildModule DEBUG Spawning 'python generate_code.py' in '/home/marcin/svn/ogre/python-ogre/code_generators/ogre'
06-21 16:51 PythonOgre.BuildModule WARNING Task Failed
06-21 16:51 PythonOgre.BuildModule DEBUG Hand wrapper (asFrustum) created to cast from Camera to Frustum
(...)
AUTOFT ERROR: Duplicate Tranforms. void Ogre::Matrix3::Tridiagonal(Ogre::Real * afDiag, Ogre::Real * afSubDiag) [member function]
::Ogre::Real *
::Ogre::Real *
AUTOFT ERROR: Duplicate Tranforms. bool Ogre::Matrix3::QLAlgorithm(Ogre::Real * afDiag, Ogre::Real * afSubDiag) [member function]
::Ogre::Matrix3 &
::Ogre::Matrix3 &
::Ogre::Matrix3 &
::Ogre::Matrix3 &
::Ogre::Matrix3 &
::Ogre::Matrix3 &
::Ogre::Real *
(...)
06-21 16:51 PythonOgre.BuildModule DEBUG
INFO Parsing xml file "/home/marcin/svn/ogre/python-ogre/code_generators/cache/ogre_1.4_cache.xml" ...

INFO GCCXML version - 0.9
/home/marcin/svn/ogre/root/usr/lib/python2.5/site-packages/pygccxml/parser/scanner.py:335: UserWarning: unable to find out array size from expression ""
warnings.warn( msg )
Traceback (most recent call last):
File "generate_code.py", line 1059, in <module>
generate_code()
File "generate_code.py", line 965, in generate_code
common_utils.fix_unnamed_classes( main_ns.classes( name='' ), 'Ogre' )
File "../common_utils/__init__.py", line 87, in fix_unnamed_classes
if declarations.is_array (mvar.type):
AttributeError: 'destructor_t' object has no attribute 'type'

06-21 16:51 PythonOgre.BuildModule INFO Compiling Source code for ogre
06-21 16:51 PythonOgre.BuildModule DEBUG Spawning 'scons PROJECTS=ogre' in '/home/marcin/svn/ogre/python-ogre'
06-21 16:51 PythonOgre.BuildModule WARNING Task Failed
06-21 16:51 PythonOgre.BuildModule DEBUG scons: Reading SConscript files ...
Building ogre
WARNING: Generate the sources in this directory: "/home/marcin/svn/ogre/python-ogre/generated/ogre_1.4"

06-21 16:51 PythonOgre.BuildModule DEBUG OSError: [Errno 2] No such file or directory: '/home/marcin/svn/ogre/python-ogre/generated/ogre_1.4':
File "/home/marcin/svn/ogre/python-ogre/SConstruct", line 188:
sourcefiles = get_source_files(cls, cls._source, usepch)
File "/home/marcin/svn/ogre/python-ogre/SConstruct", line 87:
raise e

Also, C++ demos run fine.
I would appreciate any help.

texugo

22-06-2008 18:04:36

Hummm.... try install today again and... nothing. I'm search for similar topics in fórum and nothing.

Please, someone, help us :roll:

Zyzle

28-06-2008 22:00:27

I'm having the exact same problem

Traceback (most recent call last):
File "generate_code.py", line 1059, in <module>
generate_code()
File "generate_code.py", line 965, in generate_code
common_utils.fix_unnamed_classes( main_ns.classes( name='' ), 'Ogre' )
File "../common_utils/__init__.py", line 87, in fix_unnamed_classes
if declarations.is_array (mvar.type):
AttributeError: 'destructor_t' object has no attribute 'type'


and also noticed the discussion about this in the google group here:
http://groups.google.com/group/python-ogre-developers/browse_thread/thread/41c51512835ab22c

This seems to suggest that the problem is caused by mixing different versions of python-ogre and pygccxml rather than using those (formally) posted on the wiki 557 and 1234 respectively.

However on my systen:


colin@colin-desktop:~/development$ svn info pygccxml/
Path: pygccxml
URL: http://pygccxml.svn.sourceforge.net/svnroot/pygccxml
Repository Root: http://pygccxml.svn.sourceforge.net/svnroot/pygccxml
Repository UUID: dc5859f9-2512-0410-ae5c-dd123cda1f76
Revision: 1234
Node Kind: directory
Schedule: normal
Last Changed Author: roman_yakovenko
Last Changed Rev: 1234
Last Changed Date: 2008-02-06 10:07:10 +0000 (Wed, 06 Feb 2008)

colin@colin-desktop:~/development$ svn info python-ogre/
Path: python-ogre
URL: https://python-ogre.svn.sourceforge.net/svnroot/python-ogre/trunk/python-ogre
Repository Root: https://python-ogre.svn.sourceforge.net/svnroot/python-ogre
Repository UUID: 3be82d60-661a-0410-ad8d-e6a4dab1e050
Revision: 557
Node Kind: directory
Schedule: normal
Last Changed Author: andy_miller
Last Changed Rev: 557
Last Changed Date: 2008-01-22 09:17:13 +0000 (Tue, 22 Jan 2008)


My build did however differ slightly from the one posted on the wiki in two ways:

1) I had to manually build boost as the BuildModule.py script didn't work properly.
2) I had to edit development/python-ogre/PythonOgreConfig_posix.py line
LIB_Boost = 'libboost_python-gcc41-1_34_1'
to
LIB_Boost = 'libboost_python-gcc42-1_34_1'

as I am using gcc4.2 on my system.

All C++ ogre tutorials seem to be working properly and I get no other build errors at any point during the process (this could however be rather meaningless as I received no errors when boost failed to build using the script)

I have checked my system (Kubuntu 8.04) and no other versions of pygccxml or gccxml exist.

I hope this doesn't sound like too much of a moan, I just wanted to show that other people are having this problem.

andy

29-06-2008 11:37:41

As a suggestion I would use the mailing list for any Linux build support as most of the active Linux guys hang out there..

Now, to fix you problems can you do a clean build based upon the 'current' wiki instructions :)

Sorry to ask you to do this, however I've just updated the Linux build system and tested it with Ubuntu 8.04 and it seems to work OK (we are now using the latest Python-Ogre SVN etc and the wiki instructions have been changed in the last 48 hours)...

Thanks
Andy

Zyzle

29-06-2008 20:52:35

Good news I just completed the build successfully with the new head svn revision of python-ogre and everything seems ok.

Im currently in the process of building the extra modules and will keep you posted as to how this goes.

andy

30-06-2008 00:47:53

Don't expect all the modules to build on Linux (at the moment)..

I've tested (built anyway) Ogre, QuickGui, OIS, CEGUI, noise, et, cadunetree, Caelum, plib and OgreForests..

Regards
Andy

Zyzle

30-06-2008 07:05:05

yup, I can confirm that all those modules build ok, I'll do some more tests later to make sure they are working fine.