-
-
Notifications
You must be signed in to change notification settings - Fork 33.4k
Service won't start following upgrade to 2022.007 on Mac #74632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Core 2022.7.0 requires Python 3.10 |
upgrade to Python 3.10 and try
|
The pypi package still lists 3.9 as supported, and my understanding from the release notes was that 2022.7.0 now supported 3.10 but didn't require it. (see https://pypi.org/project/homeassistant/ for example). I've hit the same problem on my Mac, which is admittedly a very old version -- I'm on 10.13 still (!). In my case, this is the issue with 3.7.5: ijl/orjson#276 |
I see this is fixed by #74581 |
The problem
Following upgrade to 2022.007 the following error was in the logs at start up:
ImportError: dlopen(/Users/tv/hass/homassistant/lib/python3.9/site-packages/orjson/orjson.cpython-39-darwin.so, 2): no suitable image found. Did find:
/Users/tv/hass/homassistant/lib/python3.9/site-packages/orjson/orjson.cpython-39-darwin.so: cannot load 'orjson.cpython-39-darwin.so' (load command 0x80000034 is unknown)
I attempted pip3 install --upgrade orjson
This allowed the service to start in Safe Mode - but then following a restart the same error message was found.
The problem was solved by reverting to version 2022.006
What version of Home Assistant Core has the issue?
Home Assistant Core 2022.7.0
What was the last working version of Home Assistant Core?
Home Assistant Core 2022.6.0
What type of installation are you running?
Home Assistant Core
Integration causing the issue
orjson package
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Traceback (most recent call last): File "/Users/tv/hass/homassistant/bin/./hass", line 8, in <module> sys.exit(main()) File "/Users/tv/hass/homassistant/lib/python3.9/site-packages/homeassistant/__main__.py", line 159, in main args = get_arguments() File "/Users/tv/hass/homassistant/lib/python3.9/site-packages/homeassistant/__main__.py", line 69, in get_arguments from . import config as config_util File "/Users/tv/hass/homassistant/lib/python3.9/site-packages/homeassistant/config.py", line 19, in <module> from . import auth File "/Users/tv/hass/homassistant/lib/python3.9/site-packages/homeassistant/auth/__init__.py", line 12, in <module> from homeassistant import data_entry_flow File "/Users/tv/hass/homassistant/lib/python3.9/site-packages/homeassistant/data_entry_flow.py", line 14, in <module> from .core import HomeAssistant, callback File "/Users/tv/hass/homassistant/lib/python3.9/site-packages/homeassistant/core.py", line 44, in <module> from . import block_async_io, loader, util File "/Users/tv/hass/homassistant/lib/python3.9/site-packages/homeassistant/loader.py", line 32, in <module> from .helpers.json import JSON_DECODE_EXCEPTIONS, json_loads File "/Users/tv/hass/homassistant/lib/python3.9/site-packages/homeassistant/helpers/json.py", line 7, in <module> import orjson File "/Users/tv/hass/homassistant/lib/python3.9/site-packages/orjson/__init__.py", line 1, in <module> from .orjson import * ImportError: dlopen(/Users/tv/hass/homassistant/lib/python3.9/site-packages/orjson/orjson.cpython-39-darwin.so, 2): no suitable image found. Did find: /Users/tv/hass/homassistant/lib/python3.9/site-packages/orjson/orjson.cpython-39-darwin.so: cannot load 'orjson.cpython-39-darwin.so' (load command 0x80000034 is unknown)
Additional information
No response
The text was updated successfully, but these errors were encountered: