Issue: Mac Install - No Backend Available

242 views
Skip to first unread message

Rick Knecht

unread,
Nov 20, 2022, 1:28:12 PM11/20/22
to weewx-user
  • Fresh install of Weewx running on a Mac mini (M1, 2020) running Big Sur (11.6.4), for an acurite weather station 06037
  • Homebrew 3.6.7 (Homebrew/homebrew-core (git revision 3768ae96c6f; last commit 2022-10-31))
  • Followed the directions from http://weewx.com/docs/macos.htm for installation.
  • When running ./bin/weewxd weewx.conf, i get the following: 

datalore@Server-IV weewx % sudo python3 ./bin/weewxd weewx.conf

Password:

Traceback (most recent call last):

  File "/Users/Shared/weewx/./bin/weewxd", line 249, in <module>

    main()

  File "/Users/Shared/weewx/./bin/weewxd", line 154, in main

    engine.run()

  File "/Users/Shared/weewx/bin/weewx/engine.py", line 208, in run

    for packet in self.console.genLoopPackets():

  File "/Users/Shared/weewx/bin/weewx/drivers/acurite.py", line 466, in genLoopPackets

    with Station() as station:

  File "/Users/Shared/weewx/bin/weewx/drivers/acurite.py", line 587, in __enter__

    self.open()

  File "/Users/Shared/weewx/bin/weewx/drivers/acurite.py", line 594, in open

    dev = self._find_dev(self.vendor_id, self.product_id, self.device_id)

  File "/Users/Shared/weewx/bin/weewx/drivers/acurite.py", line 927, in _find_dev

    for bus in usb.busses():

  File "/opt/homebrew/lib/python3.10/site-packages/usb/legacy.py", line 355, in busses

    sorted(core.find(find_all=True), key=lambda d: d.bus),

  File "/opt/homebrew/lib/python3.10/site-packages/usb/core.py", line 1309, in find

    raise NoBackendError('No backend available')

usb.core.NoBackendError: No backend available

datalore@Server-IV weewx %

  • Tail of the log:

weewx[34753] INFO __main__: Starting up weewx version 4.9.1

weewx[34753] DEBUG weewx.engine: Station does not support reading the time

weewx[34753] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'

weewx[34753] INFO weewx.manager: Starting backfill of daily summaries

weewx[34753] INFO weewx.manager: Empty database

weewx[34753] INFO weewx.engine: Starting main packet loop.

weewx[34753] INFO weewx.engine: Main loop exiting. Shutting engine down.

weewx[34753] DEBUG weewx.restx: Shut down StationRegistry thread.

weewx[34753] CRITICAL __main__: Caught unrecoverable exception:

weewx[34753] CRITICAL __main__:     ****  No backend available

weewx[34753] CRITICAL __main__:     ****  Traceback (most recent call last):

weewx[34753] CRITICAL __main__:     ****    File "/Users/Shared/weewx/./bin/weewxd", line 154, in main

weewx[34753] CRITICAL __main__:     ****      engine.run()

weewx[34753] CRITICAL __main__:     ****    File "/Users/Shared/weewx/bin/weewx/engine.py", line 208, in run

weewx[34753] CRITICAL __main__:     ****      for packet in self.console.genLoopPackets():

weewx[34753] CRITICAL __main__:     ****    File "/Users/Shared/weewx/bin/weewx/drivers/acurite.py", line 466, in genLoopPackets

weewx[34753] CRITICAL __main__:     ****      with Station() as station:

weewx[34753] CRITICAL __main__:     ****    File "/Users/Shared/weewx/bin/weewx/drivers/acurite.py", line 587, in __enter__

weewx[34753] CRITICAL __main__:     ****      self.open()

weewx[34753] CRITICAL __main__:     ****    File "/Users/Shared/weewx/bin/weewx/drivers/acurite.py", line 594, in open

weewx[34753] CRITICAL __main__:     ****      dev = self._find_dev(self.vendor_id, self.product_id, self.device_id)

weewx[34753] CRITICAL __main__:     ****    File "/Users/Shared/weewx/bin/weewx/drivers/acurite.py", line 927, in _find_dev

weewx[34753] CRITICAL __main__:     ****      for bus in usb.busses():

weewx[34753] CRITICAL __main__:     ****    File "/opt/homebrew/lib/python3.10/site-packages/usb/legacy.py", line 355, in busses

weewx[34753] CRITICAL __main__:     ****      sorted(core.find(find_all=True), key=lambda d: d.bus),

weewx[34753] CRITICAL __main__:     ****    File "/opt/homebrew/lib/python3.10/site-packages/usb/core.py", line 1309, in find

weewx[34753] CRITICAL __main__:     ****      raise NoBackendError('No backend available')

weewx[34753] CRITICAL __main__:     ****  usb.core.NoBackendError: No backend available

weewx[34753] CRITICAL __main__:     ****  Exiting.


Any suggestions on next steps? Thank you!

vince

unread,
Nov 20, 2022, 2:10:53 PM11/20/22
to weewx-user
Google for "mac usb.core.NoBackendError: No backend available" and check out the top hits there....

Tom Keffer

unread,
Nov 20, 2022, 2:12:38 PM11/20/22
to weewx...@googlegroups.com
It looks like you're just missing the underlying C library. Install using brew:

brew install libusb

-tk

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/352f0f0d-42bd-4fc0-8373-b54b557593acn%40googlegroups.com.

Rick Knecht

unread,
Nov 21, 2022, 12:36:56 PM11/21/22
to weewx-user
you rock! TY!!!
Reply all
Reply to author
Forward
0 new messages