Discussion:
[omniORB] Problem importing omniORB in python
steven bellens
2009-11-06 16:38:29 UTC
Permalink
Hi,

I have a problem with importing omniORB in python:

]$ python
Python 2.6 (r26:66714, Jun 8 2009, 16:07:29)
[GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import omniORB
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named omniORB
I work on 64-bit Fedora 11:
]$ uname -a
Linux 2.6.30.8-64.fc11.x86_64 #1 SMP Fri Sep 25 04:43:32 EDT 2009 x86_64
x86_64 x86_64 GNU/Linux

As omniORB is not contained in the fedora package list, I downloaded omniORB
4.1.4 and omniORBPy 3.4, build (GNUMake 3.81) and installed it (omniORB
first, omniORBPy afterwards) using the autoconf option.
I have set my python path and library path, but still python can't find the
omniORB module.

What am I doing wrong?

Regards,

Steven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20091106/bd1ad4b3/attachment.htm
steven bellens
2009-11-16 15:26:34 UTC
Permalink
Hi,

I have a problem with importing omniORB in python:

]$ python
Python 2.6 (r26:66714, Jun 8 2009, 16:07:29)
[GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import omniORB
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named omniORB
I work on 64-bit Fedora 11:
]$ uname -a
Linux 2.6.30.8-64.fc11.x86_64 #1 SMP Fri Sep 25 04:43:32 EDT 2009 x86_64
x86_64 x86_64 GNU/Linux

As omniORB is not contained in the fedora package list, I downloaded omniORB
4.1.4 and omniORBPy 3.4, build (GNUMake 3.81) and installed it (omniORB
first, omniORBPy afterwards) using the autoconf option.
I have set my python path and library path, but still python can't find the
omniORB module.

What am I doing wrong?

Regards,

Steven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20091116/e13d2057/attachment.htm
Urban Purkat
2009-11-16 16:26:50 UTC
Permalink
Hi!

Check PYTHONPATH env variable.

The directory that contains the omniORB directory (normally
/omniORB_root/lib/python) must be in path.

I hope that helps.

Urban
Post by steven bellens
Hi,
]$ python
Python 2.6 (r26:66714, Jun 8 2009, 16:07:29)
[GCC 4.4.0 20090506 (Red Hat 4.4.0-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import omniORB
File "<stdin>", line 1, in <module>
ImportError: No module named omniORB
]$ uname -a
Linux 2.6.30.8-64.fc11.x86_64 #1 SMP Fri Sep 25 04:43:32 EDT 2009
x86_64 x86_64 x86_64 GNU/Linux
As omniORB is not contained in the fedora package list, I downloaded
omniORB 4.1.4 and omniORBPy 3.4, build (GNUMake 3.81) and installed it
(omniORB first, omniORBPy afterwards) using the autoconf option.
I have set my python path and library path, but still python can't
find the omniORB module.
What am I doing wrong?
Regards,
Steven
------------------------------------------------------------------------
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
Duncan Grisby
2009-11-16 17:06:18 UTC
Permalink
On Mon, 2009-11-16 at 10:26 +0100, steven bellens wrote:

[...]
Post by steven bellens
As omniORB is not contained in the fedora package list, I downloaded
omniORB 4.1.4 and omniORBPy 3.4, build (GNUMake 3.81) and installed it
(omniORB first, omniORBPy afterwards) using the autoconf option.
I have set my python path and library path, but still python can't
find the omniORB module.
Presumably, it isn't really on your PYTHONPATH. What exactly are they
steps you carried out to configure and install it?

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
steven bellens
2009-11-16 17:29:12 UTC
Permalink
Post by Duncan Grisby
[...]
Post by steven bellens
As omniORB is not contained in the fedora package list, I downloaded
omniORB 4.1.4 and omniORBPy 3.4, build (GNUMake 3.81) and installed it
(omniORB first, omniORBPy afterwards) using the autoconf option.
I have set my python path and library path, but still python can't
find the omniORB module.
Presumably, it isn't really on your PYTHONPATH. What exactly are they
steps you carried out to configure and install it?
I downloaded and extracted omniORB-4.1.4 and afterwards:
mkdir build; cd build; ../configure; make; sudo make install; which gave me
no error messages
There are 2 warning during configuring:
WARNING: '../contrib/pkgconfig/omniORB4.pc.in' seems to ignore the
--datarootdir setting
WARNING: '../contrib/pkgconfig/omniCOS4.pc.in' seems to ignore the
--datarootdir setting

Then I downloaded and extracted omniORBpy-3.4 and afterwards:
mkdir build; cd build; ../configure; make; sudo make install; which gave me
no error messages either.
There is one warning during configuring:
WARNING: '../mk/beforeauto.mk.in' seems to ignore the --datarootdir setting

I added about every directory which could be useful to my pythonpath:

$PYTHONPATH
bash:
/home/steven/src/svn/robotics-ros/packages/ros/core/roslib/src:/home/steven/Download/omniORB-4.1.4/build/lib:/home/steven/Download/omniORBpy-3.4/python/omniORB:/home/steven/Download/omniORBpy-3.4/build/python/omniORB:/home/steven/Download/omniORBpy-3.4/modules:/lib/python://lib/:/usr/local/lib/python2.6/site-packages/omniORB:/usr/local/lib/python2.6/site-packages/omniORB/COS/:/usr/lib64/python2.6:/usr/local/lib:/usr/local/lib/python2.6/site-packages/omniidl:/usr/local/lib64/python2.6/site-packages:/usr/local/lib/python2.6/site-packages/omniidl_be:/usr/local/share/idl/omniORB:usr/local/lib/python2.6/site-packages:/usr/local/include/omniORB4:/lib/:/usr/include:/usr/local/include/omniORB4:/usr/local/share/idl/omniORB:/usr/local/lib:/lib/:/home/steven/orocos/lib:/usr/include:/usr/local/include/omniORB4:/usr/local/share/idl/omniORB:/usr/local/lib::/home/steven/src/svn/robotics-ros/packages/ros/core/roslib/src:/home/steven/Download/omniORB-4.1.4/build/lib:/home/steven/Download/omniORBpy-3.4/python/omniORB:/home/steven/Download/omniORBpy-3.4/build/python/omniORB/:/lib/python://lib/:/usr/local/lib/python2.6/site-packages/omniORB:/usr/local/lib/python2.6/site-packages/omniORB/COS/:/usr/lib64/python2.6:/usr/local/lib:/usr/local/lib/python2.6/site-packages/omniidl:/usr/local/lib64/python2.6/site-packages:/usr/local/lib/python2.6/site-packages/omniidl_be:/usr/local/share/idl/omniORB:usr/local/lib/python2.6/site-packages:/usr/local/include/omniORB4:/lib/:/home/steven/orocos/lib:/usr/include:/usr/local/include/omniORB4:/usr/local/share/idl/omniORB:/usr/local/lib::/home/steven/src/svn/robotics-ros/packages/ros/core/roslib/src:/home/steven/Download/omniORB-4.1.4/build/lib:/home/steven/Download/omniORBpy-3.4/python/omniORB:/home/steven/Download/omniORBpy-3.4/build/python/omniORB/:/lib/python://lib/:/usr/local/lib/python2.6/site-packages/omniORB:/usr/local/lib/python2.6/site-packages/omniORB/COS/:/usr/lib64/python2.6:/usr/local/lib:/usr/local/lib/python2.6/site-packages/omniidl:/usr/local/lib64/python2.6/site-packages:/usr/local/lib/python2.6/site-packages/omniidl_be:/usr/local/share/idl/omniORB:usr/local/lib/python2.6/site-packages:/usr/local/include/omniORB4:/lib/:/home/steven/orocos/lib:/usr/include:/usr/local/include/omniORB4:/usr/local/share/idl/omniORB:/usr/local/lib:::
No such file or directory
Post by Duncan Grisby
Duncan.
Steven
Post by Duncan Grisby
--
-- Duncan Grisby --
-- http://www.grisby.org --
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20091116/a79d9205/attachment.htm
Duncan Grisby
2009-11-16 17:53:04 UTC
Permalink
Apart from the directory in which it's actually installed...

You should not put any of the source / build directories onto the path.
The one thing you must use is /usr/local/lib/python2.6/site-packages

Cheers,

Duncan.
--
-- Duncan Grisby --
-- ***@grisby.org --
-- http://www.grisby.org --
steven bellens
2009-11-16 18:03:42 UTC
Permalink
Post by Duncan Grisby
Apart from the directory in which it's actually installed...
You should not put any of the source / build directories onto the path.
The one thing you must use is /usr/local/lib/python2.6/site-packages
It was there as well. Following up your advice I removed all unnecessary
paths from the PYTHONPATH and now the module is found. Many thanks!

Steven
Post by Duncan Grisby
Cheers,
Duncan.
--
-- Duncan Grisby --
-- http://www.grisby.org --
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20091116/0841c5f2/attachment.htm
Loading...