Hi Thomas. The results of the tests are below.
******** [root@weather ~]# python Python 2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from ctypes.util import find_library >>> print find_library('c') libc.so.6 >>> print find_library('usb-1.0') libusb-1.0.so.0 >>> print find_library('usb-0.1') libusb-0.1.so.4 >>> import usb.core >>> print usb.core.find() DEVICE ID 1d6b:0002 on Bus 001 Address 001 ================= bLength : 0x12 (18 bytes) bDescriptorType : 0x1 Device bcdUSB : 0x200 USB 2.0 bDeviceClass : 0x9 Hub bDeviceSubClass : 0x0 bDeviceProtocol : 0x0 bMaxPacketSize0 : 0x40 (64 bytes) idVendor : 0x1d6b idProduct : 0x0002 bcdDevice : 0x310 Device 3.1 iManufacturer : 0x3 Linux 3.10.0-862.11.6.el7.x86_64 ehci_hcd iProduct : 0x2 EHCI Host Controller iSerialNumber : 0x1 0000:02:03.0 bNumConfigurations : 0x1 CONFIGURATION 1: 0 mA ==================================== bLength : 0x9 (9 bytes) bDescriptorType : 0x2 Configuration wTotalLength : 0x19 (25 bytes) bNumInterfaces : 0x1 bConfigurationValue : 0x1 iConfiguration : 0x0 bmAttributes : 0xe0 Self Powered, Remote Wakeup bMaxPower : 0x0 (0 mA) INTERFACE 0: Hub ======================================= bLength : 0x9 (9 bytes) bDescriptorType : 0x4 Interface bInterfaceNumber : 0x0 bAlternateSetting : 0x0 bNumEndpoints : 0x1 bInterfaceClass : 0x9 Hub bInterfaceSubClass : 0x0 bInterfaceProtocol : 0x0 iInterface : 0x0 ENDPOINT 0x81: Interrupt IN ========================== bLength : 0x7 (7 bytes) bDescriptorType : 0x5 Endpoint bEndpointAddress : 0x81 IN bmAttributes : 0x3 Interrupt wMaxPacketSize : 0x4 (4 bytes) bInterval : 0xc >>> ******** On Thursday, 16 August 2018 19:29:05 UTC+1, Thomas Keffer wrote: > > You are probably missing the underlying libusb "C" library. > > Try running this test, using the Python interpreter. You type what's in > *bold*. > > $ *python* > >>> *from ctypes.util import find_library* > >>> *print find_library('c')* > >>> *print find_library('usb-1.0')* > >>> *print find_library('usb-0.1')* > >>> *import usb.core* > >>> *print usb.core.find()* > > -tk > > On Thu, Aug 16, 2018 at 10:50 AM Cycle London <cycle.l...@gmail.com > <javascript:>> wrote: > >> So I asked for your help a while back in migrating a faulty Pi install to >> a CentOS 7 box. I gave up then, because I thought that I'd be able to >> handle the constant crashes of the Pi, but having to unplug it and plug it >> back in three times a day is getting a bit much. And if we go away >> anywhere and it crashes.. >> >> So I have a CentOS 7.5.1804 box up and running. The Oregon Scientific >> WMR300 weather station is recognised and appears in dmesg. >> >> This is a completely fresh install of weewx, in that although I have a >> complete back up of /home/weewx from the Pi, I have not transferred any of >> the files from the backup. Everything in /home/weewx on this VM, is >> 'pristine' from the install. I used the setup.py install. So... >> >> /etc/rc.d/init.d/weewx restart >> Aug 16 18:48:13 weather systemd: Stopping SYSV: start and stop the weewx >> weather system... >> Aug 16 18:48:13 weather weewx: Shutting down weewx: [FAILED] >> Aug 16 18:48:13 weather systemd: Starting SYSV: start and stop the weewx >> weather system... >> Aug 16 18:48:14 weather weewx[1854]: engine: Initializing weewx version >> 3.8.0 >> Aug 16 18:48:14 weather weewx[1854]: engine: Using Python 2.7.5 (default, >> Jul 13 2018, 13:06:57) #012[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] >> Aug 16 18:48:14 weather weewx[1854]: engine: Platform >> Linux-3.10.0-862.11.6.el7.x86_64-x86_64-with-centos-7.5.1804-Core >> Aug 16 18:48:14 weather weewx[1854]: engine: Locale is 'en_GB.UTF-8' >> Aug 16 18:48:14 weather weewx[1854]: engine: pid file is >> /var/run/weewx.pid >> Aug 16 18:48:14 weather weewx[1858]: engine: Using configuration file >> /home/weewx/weewx.conf >> Aug 16 18:48:14 weather weewx[1858]: engine: Loading station type WMR300 >> (weewx.drivers.wmr300) >> Aug 16 18:48:14 weather weewx: Starting weewx: [ OK ] >> Aug 16 18:48:14 weather weewx[1858]: wmr300: driver version is 0.18 >> Aug 16 18:48:14 weather weewx[1858]: wmr300: usb info: pyusb_version=1.0.2 >> Aug 16 18:48:14 weather weewx[1858]: wmr300: sensor map is >> {'outHumidity': 'humidity_1', 'extraDewpoint6': 'dewpoint_7', 'windchill': >> 'windchill', 'extraDewpoint4': 'dewpoint_5', 'rainRate': 'rain_rate', >> 'heatindex': 'heatindex_1', 'inTemp': 'temperature_0', 'windGustDir': >> 'wind_gust_dir', 'extraDewpoint2': 'dewpoint_3', 'extraDewpoint3': >> 'dewpoint_4', 'extraDewpoint1': 'dewpoint_2', 'barometer': 'barometer', >> 'extraDewpoint7': 'dewpoint_8', 'dewpoint': 'dewpoint_1', 'extraDewpoint5': >> 'dewpoint_6', 'extraHumid6': 'humidity_7', 'pressure': 'pressure', >> 'extraHumid4': 'humidity_5', 'extraHumid5': 'humidity_6', 'extraHumid2': >> 'humidity_3', 'extraHumid3': 'humidity_4', 'extraHumid1': 'humidity_2', >> 'extraTemp6': 'temperature_7', 'extraTemp7': 'temperature_8', 'extraTemp4': >> 'temperature_5', 'extraTemp5': 'temperature_6', 'extraTemp2': >> 'temperature_3', 'extraTemp3': 'temperature_4', 'extraTemp1': >> 'temperature_2', 'extraHeatindex3': 'heatindex_4', 'extraHeatindex2': >> 'heatindex_3', 'extraHeatindex1': 'heatindex_2', 'extraHeatindex7': >> 'heatindex_8', 'extraHeatindex6': 'heatindex_7', 'extraHeatindex5': >> 'heatindex_6', 'extraHumid7': 'humidity_8', 'extraHeatindex4': >> 'heatindex_5', 'windDir': 'wind_dir', 'outTemp': 'temperature_1', >> 'windSpeed': 'wind_avg', 'inHumidity': 'humidity_0', 'windGust': >> 'wind_gust'} >> Aug 16 18:48:14 weather systemd: Started SYSV: start and stop the weewx >> weather system. >> Aug 16 18:48:14 weather weewx[1858]: import of driver failed: No backend >> available (<class 'usb.core.NoBackendError'>) >> Aug 16 18:48:14 weather weewx[1858]: engine: Unable to load driver: No >> backend available >> Aug 16 18:48:14 weather weewx[1858]: **** Exiting... >> >> So near, and yet so far..... >> >> Thanks. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "weewx-user" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to weewx-user+...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.