See if https://github.com/weewx/weewx/issues/971 helps any....

On Saturday, December 14, 2024 at 4:50:18 PM UTC-8 Tom Keffer wrote:

> I'm guessing that the path used by the dynamic loader is different when 
> run from a command line, vs run as a daemon.
>
> Did you try the suggestions in the post?
>
> On Sat, Dec 14, 2024 at 4:46 PM andi klein <[email protected]> wrote:
>
>> Thanks, I don't think thi i the problem. I can connect to the acurite 
>> with weewxd but not through loading the deamon. I can also see the acurite 
>> with
>> system_profiler SPUSBDataType
>>
>>
>>
>> On 12/14/24 15:52, Tom Keffer wrote:
>>
>> See if this 
>> <https://stackoverflow.com/questions/70729330/python-on-m1-mbp-trying-to-connect-to-usb-devices-nobackenderror-no-backend-a>
>>  
>> answers your question.
>>
>> On Sat, Dec 14, 2024 at 2:23 PM andi klein <[email protected]> wrote:
>>
>>> I installed weewx 5.1 for a friend on an iMac M1. While running just 
>>> weewxd everything works great, I get connected andc all the info is correct 
>>> in the terminal: (One thing I noted is that I need to run under bash and 
>>> not his default zsh). Thanks for any help, I spent two days scratching my 
>>> head and googling. 
>>>
>>> LOOP:   2024-12-14 14:16:53 PST (1734214613) 'altimeter': 
>>> '29.553886849491384', 'appTemp': 'None', 'barometer': 'None', 'channel': 
>>> '3', 'cloudbase': 'None', 'dateTime': '1734214613', 'dewpoint': 'None', 
>>> 'ET': 'None', 'heatindex': 'None', 'humidex': 'None', 'inDewpoint': 'None', 
>>> 'inTemp': '65.84000257760286', 'maxSolarRad': '105.00260614815654', 
>>> 'outTempBatteryStatus': '0', 'pressure': '29.236533249218752', 'rain': 
>>> 'None', 'rain_total': '129.94639999999998', 'rainRate': '0.0', 'rssi': '3', 
>>> 'rxCheckPercent': '100.0', 'sensor_battery': '0', 'sensor_id': '3433', 
>>> 'usUnits': '1', 'windchill': 'None', 'windDir': '45.0', 'windrun': 'None', 
>>> 'windSpeed': '2.678862142244647'
>>>
>>> If I try to run it as a daemon with launchctl it bombs on me with 
>>> backend not found:
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO __main__: Using Python: 3.9.6 
>>> (default, Nov 11 2024, 03:15:38) 
>>>
>>> [Clang 16.0.0 (clang-1600.0.26.6)]
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO __main__: Located at:   
>>> /Users/xxx/weewx-venv/bin/python3
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO __main__: Platform:     
>>> macOS-14.6.1-arm64-arm-64bit
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO __main__: Locale:       
>>> 'C/UTF-8/C/C/C/C'
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO __main__: Entry path:   
>>> /Users/xxx/weewx-venv/lib/python3.9/site-packages/weewxd.py
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO __main__: WEEWX_ROOT:   
>>> /Users/xxx/weewx-data
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO __main__: Config file:  
>>> /Users/xxx/weewx-data/weewx.conf
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO __main__: User module:  
>>> /Users/xxx/weewx-data/bin/user
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO __main__: Debug:        0
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO __main__: User:         root
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO __main__: Group:        wheel
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO __main__: Groups:       wheel 
>>> daemon kmem sys tty operator procview procmod everyone staff certusers 
>>> localaccou
>>>
>>> nts admin com.apple.sharepoint.group.1 _appstore _lpadmin _lpoperator 
>>> _developer _analyticsusers com.apple.access_ftp 
>>> com.apple.access_screensharing c
>>>
>>> om.apple.access_ssh com.apple.access_remote_ae
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.engine: Loading station 
>>> type AcuRite (weewx.drivers.acurite)
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.drivers.acurite: driver 
>>> version is 0.4
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.drivers.acurite: R2 will be 
>>> decoded using sensor constants
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.engine: StdConvert target 
>>> unit is 0x1
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.wxservices: StdWXCalculate 
>>> will use data binding wx_binding
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.engine: Archive will use 
>>> data binding wx_binding
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.engine: Record generation 
>>> will be attempted in 'hardware'
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.engine: Using archive 
>>> interval of 300 seconds (specified in weewx configuration)
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.restx: StationRegistry: 
>>> Registration not requested.
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.restx: Wunderground: 
>>> Posting not enabled.
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.restx: PWSweather: Posting 
>>> not enabled.
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.restx: CWOP: Posting not 
>>> enabled.
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.restx: WOW: Posting not 
>>> enabled.
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.restx: AWEKAS: Posting not 
>>> enabled.
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.engine: 'pyephem' not 
>>> detected, extended almanac data is not available
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO __main__: Starting up weewx 
>>> version 5.1.0
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.engine: Using binding 
>>> 'wx_binding' to database 'weewx.sdb'
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.manager: Starting backfill 
>>> of daily summaries
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.manager: Empty database
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.engine: Starting main 
>>> packet loop.
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: INFO weewx.engine: Main loop exiting. 
>>> Shutting engine down.
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: CRITICAL __main__: Caught 
>>> unrecoverable exception:
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: CRITICAL __main__:     ****  No 
>>> backend available
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: CRITICAL __main__:     ****  Traceback 
>>> (most recent call last):
>>>
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: CRITICAL __main__:     ****    File 
>>> "/Users/xxx/weewx-venv/lib/python3.9/site-packages/weewxd.py", line
>>>
>>>  127, in main
>>>
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: CRITICAL __main__:     ****      
>>> engine.run()
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: CRITICAL __main__:     ****      raise 
>>> NoBackendError('No backend available')
>>>
>>>
>>> 2024-12-14 13:17:00 weewxd[2083]: CRITICAL __main__:     ****  
>>> usb.core.NoBackendError: No backend available
>>>
>>>
>>> :
>>> -- 
>>> 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 [email protected].
>>> To view this discussion visit 
>>> https://groups.google.com/d/msgid/weewx-user/44ea9378-6d80-4cb1-b1ce-1a7135757900n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/weewx-user/44ea9378-6d80-4cb1-b1ce-1a7135757900n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> -- 
>> 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 [email protected].
>> To view this discussion visit 
>> https://groups.google.com/d/msgid/weewx-user/CAPq0zED052pKJx0Tf_UMx8cuLan02fmfu0hEQcviH7B_ket%3Dmg%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/CAPq0zED052pKJx0Tf_UMx8cuLan02fmfu0hEQcviH7B_ket%3Dmg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>>
>> -- 
>>
>> -- 
>> 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 [email protected].
>>
> To view this discussion visit 
>> https://groups.google.com/d/msgid/weewx-user/fc331ac0-60ec-4b13-8dfa-73745ccd315a%40gmail.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/fc331ac0-60ec-4b13-8dfa-73745ccd315a%40gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/d3757c03-e5d8-4735-8e16-afc792eda226n%40googlegroups.com.

Reply via email to