[libhid-discuss] Installing Python wrappers from SVN
Sarah Mount
s.mount at wlv.ac.uk
Mon Nov 17 15:12:31 UTC 2008
On Mon, Nov 17, 2008 at 15:02, Charles Lepple <clepple at ghz.cc> wrote:
> On Nov 17, 2008, at 6:47 AM, Sarah Mount wrote:
>
>> 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:
>
> I am pretty sure I did not see this on 8.04, and I don't have an 8.10 box
> available to test.
>
> I'd say to file a bug on Launchpad, but that won't be helpful if you didn't
> see that error with the original Ubuntu package.
>
> Anyone else on the list running Ubuntu?
>
Thanks Charles. I notice that the python-hid package on the Ubuntu
repositories is set up quite differently to the SVN. dpkg -L says this
about it:
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/python-hid
/usr/share/doc/python-hid/README
/usr/share/doc/python-hid/copyright
/usr/share/doc/python-hid/examples
/usr/share/doc/python-hid/examples/test_libhid.py
/usr/share/doc/python-hid/changelog.Debian.gz
/usr/share/python-support
/usr/share/python-support/python-hid
/usr/share/python-support/python-hid/hid
/usr/share/python-support/python-hid/hid/_hid.a
/usr/share/python-support/python-hid/hid/_hid.la
/usr/share/python-support/python-hid/hid/__init__.py
/usr/lib
/usr/lib/python-support
/usr/lib/python-support/python-hid
/usr/lib/python-support/python-hid/python2.5
/usr/lib/python-support/python-hid/python2.5/hid
/usr/lib/python-support/python-hid/python2.5/hid/_hid.so.0.0.0
/usr/lib/python-support/python-hid/python2.5/hid/_hid.so.0
/usr/lib/python-support/python-hid/python2.5/hid/_hid.so
Which doesn't include files such as hid.py, so it looks like the
Canonical people have completely repackaged everything.
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