Problems with Python bindings: dynamic module does not define init function

Am 10.12.2012 18:10, schrieb DNA:
> Hi all,
>
> I am trying to use the PyKDL pyton bindings under Xubuntu 12.04. I
> compiled the tagged version from the GIT repository:
> orocos_kinematics_dynamics-0.2.3 as well as the latest version from
> 2012-09-07 using the following steps without encountering any errors:
>
> 1.Install KDL:
> dna@dna-MBP:~/Downloads/orocos_kinematics_dynamics-8e45049/orocos_kdl$
> mkdir build && cd build
>
> dna@dna-MBP:~/Downloads/orocos_kinematics_dynamics-8e45049/orocos_kdl/build$
> ccmake ../
>
> dna@dna-MBP:~/Downloads/orocos_kinematics_dynamics-8e45049/orocos_kdl/build$
> make
>
> dna@dna-MBP:~/Downloads/orocos_kinematics_dynamics-8e45049/orocos_kdl/build$
> sudo make install
>
> 2. Install python bindings:
> dna@dna-MBP:~/Downloads/orocos_kinematics_dynamics-8e45049/python_orocos_kdl$
> mkdir build && cd build
>
> dna@dna-MBP:~/Downloads/orocos_kinematics_dynamics-8e45049/python_orocos_kdl$
> ccmake ../
>
> dna@dna-MBP:~/Downloads/orocos_kinematics_dynamics-8e45049/python_orocos_kdl$
> make
>
> dna@dna-MBP:~/Downloads/orocos_kinematics_dynamics-8e45049/python_orocos_kdl$
> sudo make install
>
> After execution the PyKDL.so file shows up under:
> /usr/local/lib/python2.7/dist-packages/PyKDL.so
> liborocos-kdl.so.1.1.99 and the respective liborocos-kdl.so and
> liborocos-kdl.so.1.1 links are located in /usr/local/lib
>
> Then - of course - I can import the module using IDLE which however
> results in the following error:
>
> >>> import PyKDL
> Traceback (most recent call last):
> File "<pyshell#3>", line 1, in <module>
> import PyKDL
> ImportError: dynamic module does not define init function (initPyKDL)
>
> What is it I'm missing?
> Any help is greatly appreciated!
>
> regards
> David

Hi all,

I found the solution myself:

I had the package python-sip installed and the compilation worked. But
the generated cpp-files were empty. Additionally installing
python-sip-dev solves the problem.

regards
David

Problems with Python bindings: dynamic module does not define in

Hi all,

I am trying to use the PyKDL pyton bindings under Xubuntu 12.04. I
compiled the tagged version from the GIT repository:
orocos_kinematics_dynamics-0.2.3 as well as the latest version from
2012-09-07 using the following steps without encountering any errors:

1.Install KDL:
dna@dna-MBP:~/Downloads/orocos_kinematics_dynamics-8e45049/orocos_kdl$
mkdir build && cd build

dna@dna-MBP:~/Downloads/orocos_kinematics_dynamics-8e45049/orocos_kdl/build$
ccmake ../

dna@dna-MBP:~/Downloads/orocos_kinematics_dynamics-8e45049/orocos_kdl/build$
make

dna@dna-MBP:~/Downloads/orocos_kinematics_dynamics-8e45049/orocos_kdl/build$
sudo make install

2. Install python bindings:
dna@dna-MBP:~/Downloads/orocos_kinematics_dynamics-8e45049/python_orocos_kdl$
mkdir build && cd build

dna@dna-MBP:~/Downloads/orocos_kinematics_dynamics-8e45049/python_orocos_kdl$
ccmake ../

dna@dna-MBP:~/Downloads/orocos_kinematics_dynamics-8e45049/python_orocos_kdl$
make

dna@dna-MBP:~/Downloads/orocos_kinematics_dynamics-8e45049/python_orocos_kdl$
sudo make install

After execution the PyKDL.so file shows up under:
/usr/local/lib/python2.7/dist-packages/PyKDL.so
liborocos-kdl.so.1.1.99 and the respective liborocos-kdl.so and
liborocos-kdl.so.1.1 links are located in /usr/local/lib

Then - of course - I can import the module using IDLE which however
results in the following error:

>>> import PyKDL
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
import PyKDL
ImportError: dynamic module does not define init function (initPyKDL)

What is it I'm missing?
Any help is greatly appreciated!

regards
David