On 18/05/13 18:34, brunobulox wrote:
> I am getting this error when trying to run pywws... I am pretty sure I
> have correctly installed the dependencies ...
>
> Detail:
>
> ~/work/pywws/code $ python TestWeatherStation.py
> Traceback (most recent call last):
> File "TestWeatherStation.py", line 179, in <module>
> sys.exit(main())
> File "TestWeatherStation.py", line 114, in main
> ws = WeatherStation.weather_station()
> File "/home/pi/work/pywws/code/pywws/WeatherStation.py", line 394, in
> __init__
> self.cusb = CUSBDrive()
> File "/home/pi/work/pywws/code/pywws/WeatherStation.py", line 301, in
> __init__
> from .device_ctypes_hidapi import USBDevice
> File "/home/pi/work/pywws/code/pywws/device_ctypes_hidapi.py", line
> 97, in <module>
> hidapi = ctypes.CDLL(path)
> File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
> self._handle = _dlopen(self._name, mode)
> OSError: libhidapi-libusb.so.0: cannot open shared object file: No such
> file or directory
Hmm, this could be a problem with LD_LIBRARY_PATH or similar. I hate those.
Try finding the file directly:
find /usr -name libhidapi-libusb.so.0 -ls
If this finds the file, temporarily add the directory it's in to
LD_LIBRARY_PATH:
export LD_LIBRARY_PATH = dir_name:$LD_LIBRARY_PATH
Then try TestWeatherStation.py again.
After that it's over to the Raspberry Pi experts...
--
Jim Easterbrook <
http://www.jim-easterbrook.me.uk/>