[libhid-discuss] Installing Python wrappers from SVN

Sarah Mount s.mount at wlv.ac.uk
Mon Nov 17 11:47:47 UTC 2008


On Mon, Nov 17, 2008 at 02:34, Charles Lepple <clepple at ghz.cc> wrote:
> On Nov 16, 2008, at 4:42 PM, Sarah Mount wrote:
>
>> Importing libhid.hid looks like it ought to work but actually gives
>> the following error:
>>
>>>>> import libhid.hid
>>
>> Traceback (most recent call last):
>>  File "<stdin>", line 1, in <module>
>>  File "/usr//lib/python2.5/site-packages/libhid/__init__.py", line
>> 11, in <module>
>>    import _hid
>> ImportError: /usr/lib/python2.5/site-packages/libhid/_hid.so:
>> undefined symbol: assert
>
> That's a very odd error. "assert" should be a preprocessor #define. What if
> you cd to /usr/lib/python2.5/site-packages/libhid, then run python and try
> "import hid"?
>

Same thing:


>>> import hid
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/libhid/hid.py", line 11, in <module>
    import _hid
ImportError: ./_hid.so: undefined symbol: assert
>>>



The ldd output you asked for is this:

$ sudo ldd /usr/lib/python2.5/site-packages/libhid/_hid.so
	linux-gate.so.1 =>  (0xb80d9000)
	/lib/snoopy.so (0xb80c5000)
	libhid.so.0 => /usr/lib/libhid.so.0 (0xb80a0000)
	libusb-0.1.so.4 => /lib/libusb-0.1.so.4 (0xb8097000)
	libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7f39000)
	libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7f35000)
	/lib/ld-linux.so.2 (0xb80da000)
$


Odd!

Many thanks,

Sarah

-- 
Sarah Mount, Senior Lecturer, University of Wolverhampton
Web:  http://www.wlv.ac.uk/~in0316/
Book: http://www.pythonforrookies.org/
Blog: http://varspool.blogspot.com/
Photos: http://flickr.com/photos/sarahmount/

This email, together with any attachment, is for the exclusive and
confidential use of the addressee(s) and may contain legally
privileged information.  Any use, disclosure or reproduction without
the sender's explicit consent is unauthorised and may be unlawful.

Any e-mail including its content and any attachments may be monitored
and used by The University of Wolverhampton for reasons of security
and for monitoring internal compliance with the University's policy on
internet use. E-mail blocking software may also be used.  The
University cannot guarantee that this message or any attachment is
virus free or has not been intercepted and amended.

If you believe you have received this message in error please notify
the sender by email, telephone or fax and destroy the message and any
copies.



More information about the libhid-discuss mailing list