Cheetah
pillow
pyserial
pyusb
pyephem
No errors of any kind were reported in the install of those additional packages.
My python version is:
python --version
Python 2.7.10
No errors displayed by
"./setup.py build"
I changed the install location in setup.cfg
#home = /home/weewx
home = /usr/local/weewx
No errors from the "./setup.py install" command.
The installer asked me for a name, altitude, lat/lon, etc. No errors were observed.
I'm running weewx by:
cd /use/local/weewx
./bin/weewxd ./weewx.conf
This gets me:
./bin/weewxd ./weewx.conf
Traceback (most recent call last):
File "./bin/weewxd", line 64, in <module>
weewx.engine.main(options, args)
File "/usr/local/weewx/bin/weewx/engine.py", line 848, in main
engine.run()
File "/usr/local/weewx/bin/weewx/engine.py", line 182, in run
for packet in self.console.genLoopPackets():
File "/usr/local/weewx/bin/weewx/drivers/acurite.py", line 477, in genLoopPackets
with Station() as station:
File "/usr/local/weewx/bin/weewx/drivers/acurite.py", line 598, in __enter__
self.open()
File "/usr/local/weewx/bin/weewx/drivers/acurite.py", line 605, in open
dev = self._find_dev(self.vendor_id, self.product_id, self.device_id)
File "/usr/local/weewx/bin/weewx/drivers/acurite.py", line 937, in _find_dev
for bus in usb.busses():
File "/Library/Python/2.7/site-packages/usb/legacy.py", line 340, in busses
_interop._sorted(core.find(find_all=True), key=lambda d: d.bus),
File "/Library/Python/2.7/site-packages/usb/core.py", line 1199, in find
raise ValueError('No backend available')
ValueError: No backend available
bash-3.2#
--
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.
For more options, visit https://groups.google.com/d/optout.
find / -iname libusb* -print
/Library/Python/2.7/site-packages/usb/backend/libusb0.py
/Library/Python/2.7/site-packages/usb/backend/libusb0.pyc
/Library/Python/2.7/site-packages/usb/backend/libusb1.py
/Library/Python/2.7/site-packages/usb/backend/libusb1.pyc
/opt/local/include/libusb-1.0
/opt/local/include/libusb-1.0/libusb.h
/opt/local/lib/libusb-1.0.0.dylib
/opt/local/lib/libusb-1.0.a
/opt/local/lib/libusb-1.0.dylib
/opt/local/lib/pkgconfig/libusb-1.0.pc
Setting debug = 1 in the .conf file didn't return any additional error messages beyond what I originally posted.
How do I determine if weewxd is trying to use the libusb version that's installed and failing, or not finding it at all?
This machine has libusb installed already via MacPorts. It's needed in order to run any of the SDR applications like Gqrx or CubicSDR. Both of which work just fine.According to "port list installed", I have libusb version 1.0.20 installed.
./bin/weewxd ./weewx.conf
Traceback (most recent call last):
File "./bin/weewxd", line 64, in <module>
weewx.engine.main(options, args)
File "/usr/local/weewx/bin/weewx/engine.py", line 848, in main
engine.run()
File "/usr/local/weewx/bin/weewx/engine.py", line 182, in run
for packet in self.console.genLoopPackets():
File "/usr/local/weewx/bin/weewx/drivers/acurite.py", line 477, in genLoopPackets
with Station() as station:
File "/usr/local/weewx/bin/weewx/drivers/acurite.py", line 598, in __enter__
self.open()
File "/usr/local/weewx/bin/weewx/drivers/acurite.py", line 623, in open
self.handle.detachKernelDriver(interface)
File "/Library/Python/2.7/site-packages/usb/legacy.py", line 294, in detachKernelDriver
self.dev.detach_kernel_driver(interface)
File "/Library/Python/2.7/site-packages/usb/core.py", line 1005, in detach_kernel_driver
interface)
File "/Library/Python/2.7/site-packages/usb/backend/libusb1.py", line 838, in detach_kernel_driver
_check(self.lib.libusb_detach_kernel_driver(dev_handle.handle, intf))
File "/Library/Python/2.7/site-packages/usb/backend/libusb1.py", line 550, in _check
raise NotImplementedError(_strerror(ret))
NotImplementedError: Operation not supported or unimplemented on this platform
bash-3.2#
It seems that libusb 0.1 is referred to by MacPorts as "libusb-legacy". So doing a "port install libusb-legacy" gets me libusb-legacy-0.1.4.dylib.
I'm not sure I follow what you mean by "verify which python installation is updated".... Is there likely to be more than one version installed?
Jan 14 22:20:33 admins-MacBook-Pro.local weewx[3360]: acurite: Unable to claim USB interface 0: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:20:33 admins-MacBook-Pro.local weewx[3360]: acurite: Failed attempt 1 of 10 to get LOOP data: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:21:03 admins-MacBook-Pro.local weewx[3360]: acurite: Unable to claim USB interface 0: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:21:03 admins-MacBook-Pro.local weewx[3360]: acurite: Failed attempt 2 of 10 to get LOOP data: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:21:33 admins-MacBook-Pro.local weewx[3360]: acurite: Unable to claim USB interface 0: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:21:33 admins-MacBook-Pro.local weewx[3360]: acurite: Failed attempt 3 of 10 to get LOOP data: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:22:03 admins-MacBook-Pro.local weewx[3360]: acurite: Unable to claim USB interface 0: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:22:03 admins-MacBook-Pro.local weewx[3360]: acurite: Failed attempt 4 of 10 to get LOOP data: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:22:33 admins-MacBook-Pro.local weewx[3360]: acurite: Unable to claim USB interface 0: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:22:33 admins-MacBook-Pro.local weewx[3360]: acurite: Failed attempt 5 of 10 to get LOOP data: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:23:03 admins-MacBook-Pro.local weewx[3360]: acurite: Unable to claim USB interface 0: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:23:03 admins-MacBook-Pro.local weewx[3360]: acurite: Failed attempt 6 of 10 to get LOOP data: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:23:33 admins-MacBook-Pro.local weewx[3360]: acurite: Unable to claim USB interface 0: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:23:33 admins-MacBook-Pro.local weewx[3360]: acurite: Failed attempt 7 of 10 to get LOOP data: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:24:03 admins-MacBook-Pro.local weewx[3360]: acurite: Unable to claim USB interface 0: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:24:03 admins-MacBook-Pro.local weewx[3360]: acurite: Failed attempt 8 of 10 to get LOOP data: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:24:33 admins-MacBook-Pro.local weewx[3360]: acurite: Unable to claim USB interface 0: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:24:33 admins-MacBook-Pro.local weewx[3360]: acurite: Failed attempt 9 of 10 to get LOOP data: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:25:03 admins-MacBook-Pro.local weewx[3360]: acurite: Unable to claim USB interface 0: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:25:03 admins-MacBook-Pro.local weewx[3360]: acurite: Failed attempt 10 of 10 to get LOOP data: [Errno 13] Access denied (insufficient permissions)
Jan 14 22:25:33 admins-MacBook-Pro.local weewx[3360]: acurite: Max retries (10) exceeded for LOOP data
Jan 14 22:25:33 admins-MacBook-Pro.local weewx[3360]: engine: Caught WeeWxIOError: Max retries (10) exceeded for LOOP data
Jan 14 22:25:33 admins-MacBook-Pro.local weewx[3360]: **** Waiting 60 seconds then retrying...
Ah-HA! Good call!Both on the suggested change, and on the kernel HID issue.
id
uid=0(root) gid=0(wheel) groups=0(wheel),1(daemon),2(kmem),3(sys),4(tty),5(operator),8(procview),9(procmod),12(everyone),20(staff),29(certusers),61(localaccounts),80(admin),701(com.apple.sharepoint.group.1),703(com.apple.sharepoint.group.3),702(com.apple.sharepoint.group.2),33(_appstore),98(_lpadmin),100(_lpoperator),204(_developer),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh)
bash-3.2# ./weewxd ../weewx.conf
Writing a kernel extension is way above my skill level. I'm not a programmer. :(
Sounds like I'm out of luck with getting the acurite to communicate with Weather Underground through my Mac.
I don't really want to have another full computer running, just for this purpose.
I wonder how the Mike Revitt at https://www.cougar.eu.com/useful-guides/weewx-guides/weewx-installation-on-osx-2.html is getting around the problem?
He seems to have it working.
Mike, are you by chance monitoring this mailing list?
-Monte
Writing a kernel extension is way above my skill level. I'm not a programmer. :(
Sounds like I'm out of luck with getting the acurite to communicate with Weather Underground through my Mac.
I don't really want to have another full computer running, just for this purpose.
I wonder how the Mike Revitt at https://www.cougar.eu.com/useful-guides/weewx-guides/weewx-installation-on-osx-2.html is getting around the problem?He seems to have it working.
Chaney Instrument:
Product ID: 0x0003
Vendor ID: 0x24c0
Version: 0.20
Speed: Up to 1.5 Mb/sec
Location ID: 0xfd120000 / 4
Current Available (mA): 500
Current Required (mA): 100
I'm pretty sure this is the acurite console, since this entry goes away if I unplug the USB cable; and the bottom of the back page of the owners manual that came with the hardware references "Copyright Chaney Instrument Company"
Running "ioreg -p IOUSB |grep -i chaney" gets me:
ioreg -p IOUSB |grep -i chaney
+-o Chaney Instrument@fd120000 <class IOUSBDevice, id 0x10000126b, registered, matched, active, busy 0 (682 ms), retain 10>
I've gotta be doing something wrong. No matter how I try to download the "Info.plist" file you attached; I get an empty folder.Somehow that doesn't seem right... Is it?What am I missing?
admin$ sudo kextutil -tn /System/Library/Extensions/CodelessKext.kext
Diagnostics for /System/Library/Extensions/CodelessKext.kext:
Code Signing Failure: not code signed
/System/Library/Extensions/CodelessKext.kext appears to be loadable (including linkage for on-disk libraries).