Problems (#1) - ImportError? in 0.6.00 (#67) - Message List

ImportError? in 0.6.00
 unsolved

The python extension, cwiid.so, can't seem to find the symbols defined in libcwiid.so:

import cwiid

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

ImportError?: /usr/local/lib/python2.5/site-packages/cwiid.so: undefined symbol: cwiid_set_data

I'm running Ubuntu, so I ran

./configure

sudo checkinstall

to install as a deb if that matters. wmgui and the other C tools work.

  • Message #24301

    Where does Debian put libcwiid.so?

    • Message #24304

      /usr/local/lib/libcwiid.so.1

      /usr/local/lib/libcwiid.so

    • Message #24305

      Actually, this might be a compile problem, using ldd:

      ldd /usr/local/lib/python2.5/site-packages/cwiid.so

      linux-gate.so.1 => (0xffffe000) libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7ef0000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7da6000) /lib/ld-linux.so.2 (0x80000000

      So, the extension so doesn't even think it needs libcwiid.so

  • Message #24306

    It appears to be either a quirk of how checkinstall invokes make or how the make install targets are written, but if I run make and then checkinstall, cwiid.so get a reference to libcwiid.so and works. If I run just checkinstall directly, without the make first, cwiid.so does not have a libcwiid.so reference. So, I have a work around. Just have to make sure to run make manually before checkinstall.

Attachments

No attachments created.