[libhid-discuss] Need help installing on Debian 6 (Squeeze)
Michael Sandford
mike at usglobalmail.com
Wed Jul 18 19:14:13 UTC 2012
Hi Folks,
I am trying to install libhid on debian 6 and running into some problems.
1. Dependency on swig and libhid-dev not well outlined, but solved.
2. Installs to /usr/local/lib/python2.6/site-packages which isn't on
pythonpath, but also solved.
3. When trying to use library, get one of two errors:
sandford at debian-test:~/item_entry/src$ python
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import hid
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named hid
>>>
So then I do this:
sandford at debian-test:~/item_entry/src$ export
PYTHONPATH="$PYTHONPATH:/usr/local/lib/python2.6/site-packages/"
sandford at debian-test:~/item_entry/src$ python
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import hid
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named hid
>>> import libhid
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/site-packages/libhid/__init__.py",
line 29, in <module>
_hid = swig_import_helper()
File "/usr/local/lib/python2.6/site-packages/libhid/__init__.py",
line 25, in swig_import_helper
_mod = imp.load_module('_hid', fp, pathname, description)
ImportError: libhid.so.0: cannot open shared object file: No such file
or directory
>>>
So then I do this:
sandford at debian-test:~/item_entry/src$ ls
/usr/local/lib/python2.6/dist-packages/libhid/
_hid.a hid.pyc _hid.so.0 hidwrap.pyc __init__.pyc
_hid.la hid.pyo _hid.so.0.0.0 hidwrap.pyo __init__.pyo
hid.py _hid.so hidwrap.py __init__.py
sandford at debian-test:~/item_entry/src$
Funnily enough, libhid.so.0 is not in that directory. I am not really
sure what is going wrong here but I could really use some help to get it
installed at working.
Thanks,
Mike
More information about the libhid-discuss
mailing list