Error while updating home assistant core lxc using update script #482

Closed
opened 2026-02-04 19:11:24 +03:00 by OVERLORD · 7 comments
Owner

Originally created by @xijio on GitHub (Feb 12, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

homeassistant-core.sh

📂 What was the exact command used to execute the script?

update

📝 Provide a clear and concise description of the issue.

I'm trying to update the home assistant core lxc. The first time I tried upgrade, it told me my ubuntu version was too old (I was on 24.04 lts and it wanted 24.10). So I updated ubuntu to 24.10 using do-release-upgrade, rebooted and tried update again. I tried updating again and it complained I didn't have enough ram (had given 1024, upgraded it to 2048), now after passing both of those checks, I'm getting an error.

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Ubuntu 24.10

🔄 Steps to reproduce the issue.

When i run "Update" in the LXC console I get:

   / / / /___  ____ ___  ___     /   |  __________(_)____/ /_____ _____  / /_      / ____/___  ________ 
  / /_/ / __ \/ __ `__ \/ _ \   / /| | / ___/ ___/ / ___/ __/ __ `/ __ \/ __/_____/ /   / __ \/ ___/ _ \
 / __  / /_/ / / / / / /  __/  / ___ |(__  |__  ) (__  ) /_/ /_/ / / / / /_/_____/ /___/ /_/ / /  /  __/
/_/ /_/\____/_/ /_/ /_/\___/  /_/  |_/____/____/_/____/\__/\__,_/_/ /_/\__/      \____/\____/_/   \___/ 
                                                                                                        
Updating to Stable Version
  :heavy_check_mark:  Stopped Home Assistant
 ⠹ Updating Home Assistant 
[ERROR] in line 67: exit code 0: while executing command pip install ${BR}--upgrade homeassistant &> /dev/null```

I worked with @tremor021  on discord and he had me:

```source /srv/homeassistant/bin/activate
pip install --upgrade homeassistant```

This gave me:
```(homeassistant) root@homeassistant-core:/# pip install --upgrade homeassistant
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
    
    See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.```

Next tremor021 had me run the following commands:
```rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
pip install --upgrade homeassistant```

which started to install many things but eventually hit this error:
```Collecting fnvhash<0.2.0,>=0.1.0 (from fnv-hash-fast==1.0.2->homeassistant)
  Downloading fnvhash-0.1.0.tar.gz (1.9 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-yw78r6ru/fnvhash_ec5b57c34625493d8856cb308801fd38/setup.py", line 1, in <module>
          from setuptools import setup
      ImportError: cannot import name 'setup' from 'setuptools' (unknown location)
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.```

He asked me to open this issue to track.

I'm going to attempt to spin up a new HA LXC and migrate my configs, but I will keep this one around to help further diagnose if that's helpful!



### ❌ Paste the full error output (if available).

    __  __                        ___              _      __              __        ______              
   / / / /___  ____ ___  ___     /   |  __________(_)____/ /_____ _____  / /_      / ____/___  ________ 
  / /_/ / __ \/ __ `__ \/ _ \   / /| | / ___/ ___/ / ___/ __/ __ `/ __ \/ __/_____/ /   / __ \/ ___/ _ \
 / __  / /_/ / / / / / /  __/  / ___ |(__  |__  ) (__  ) /_/ /_/ / / / / /_/_____/ /___/ /_/ / /  /  __/
/_/ /_/\____/_/ /_/ /_/\___/  /_/  |_/____/____/_/____/\__/\__,_/_/ /_/\__/      \____/\____/_/   \___/ 
                                                                                                        
Updating to Stable Version
  ✔️  Stopped Home Assistant
 ⠹ Updating Home Assistant 
[ERROR] in line 67: exit code 0: while executing command pip install ${BR}--upgrade homeassistant &> /dev/null

root@homeassistant-core:~# source /srv/homeassistant/bin/activate
(homeassistant) root@homeassistant-core:~# pwd
/root
(homeassistant) root@homeassistant-core:~# whoami
root
(homeassistant) root@homeassistant-core:~# ls
homeassistant-core.sh  response.txt
(homeassistant) root@homeassistant-core:~# cd ..
(homeassistant) root@homeassistant-core:/# pip install --upgrade homeassistant
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
    
    See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
(homeassistant) root@homeassistant-core:/# rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
(homeassistant) root@homeassistant-core:/# pip install --upgrade homeassistant
Collecting homeassistant
  Downloading homeassistant-2025.1.4-py3-none-any.whl.metadata (4.8 kB)
Collecting aiodns==3.2.0 (from homeassistant)
  Downloading aiodns-3.2.0-py3-none-any.whl.metadata (4.0 kB)
Collecting aiohasupervisor==0.2.2b5 (from homeassistant)
  Downloading aiohasupervisor-0.2.2b5-py3-none-any.whl.metadata (5.1 kB)
Collecting aiohttp==3.11.11 (from homeassistant)
  Downloading aiohttp-3.11.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (7.7 kB)
Collecting aiohttp-cors==0.7.0 (from homeassistant)
  Downloading aiohttp_cors-0.7.0-py3-none-any.whl.metadata (20 kB)
Collecting aiohttp-fast-zlib==0.2.0 (from homeassistant)
  Downloading aiohttp_fast_zlib-0.2.0-py3-none-any.whl.metadata (5.6 kB)
Collecting aiozoneinfo==0.2.1 (from homeassistant)
  Downloading aiozoneinfo-0.2.1-py3-none-any.whl.metadata (5.5 kB)
Collecting astral==2.2 (from homeassistant)
  Downloading astral-2.2-py2.py3-none-any.whl.metadata (1.5 kB)
Collecting async-interrupt==1.2.0 (from homeassistant)
  Downloading async_interrupt-1.2.0-py3-none-any.whl.metadata (4.9 kB)
Collecting attrs==24.2.0 (from homeassistant)
  Downloading attrs-24.2.0-py3-none-any.whl.metadata (11 kB)
Collecting atomicwrites-homeassistant==1.4.1 (from homeassistant)
  Downloading atomicwrites_homeassistant-1.4.1-py2.py3-none-any.whl.metadata (6.0 kB)
Collecting awesomeversion==24.6.0 (from homeassistant)
  Downloading awesomeversion-24.6.0-py3-none-any.whl.metadata (9.0 kB)
Collecting bcrypt==4.2.0 (from homeassistant)
  Downloading bcrypt-4.2.0-cp39-abi3-manylinux_2_28_x86_64.whl.metadata (9.6 kB)
Collecting certifi>=2021.5.30 (from homeassistant)
  Downloading certifi-2025.1.31-py3-none-any.whl.metadata (2.5 kB)
Collecting ciso8601==2.3.2 (from homeassistant)
  Downloading ciso8601-2.3.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (23 kB)
Collecting cronsim==2.6 (from homeassistant)
  Downloading cronsim-2.6-py3-none-any.whl.metadata (6.9 kB)
Collecting fnv-hash-fast==1.0.2 (from homeassistant)
  Downloading fnv_hash_fast-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.metadata (4.7 kB)
Collecting hass-nabucasa==0.87.0 (from homeassistant)
  Downloading hass_nabucasa-0.87.0-py3-none-any.whl.metadata (1.8 kB)
Collecting httpx==0.27.2 (from homeassistant)
  Downloading httpx-0.27.2-py3-none-any.whl.metadata (7.1 kB)
Collecting home-assistant-bluetooth==1.13.0 (from homeassistant)
  Downloading home_assistant_bluetooth-1.13.0-py3-none-any.whl.metadata (5.4 kB)
Collecting ifaddr==0.2.0 (from homeassistant)
  Downloading ifaddr-0.2.0-py3-none-any.whl.metadata (4.9 kB)
Collecting Jinja2==3.1.5 (from homeassistant)
  Downloading jinja2-3.1.5-py3-none-any.whl.metadata (2.6 kB)
Collecting lru-dict==1.3.0 (from homeassistant)
  Downloading lru_dict-1.3.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.5 kB)
Collecting PyJWT==2.10.1 (from homeassistant)
  Downloading PyJWT-2.10.1-py3-none-any.whl.metadata (4.0 kB)
Collecting cryptography==44.0.0 (from homeassistant)
  Downloading cryptography-44.0.0-cp39-abi3-manylinux_2_28_x86_64.whl.metadata (5.7 kB)
Collecting Pillow==11.0.0 (from homeassistant)
  Downloading pillow-11.0.0-cp312-cp312-manylinux_2_28_x86_64.whl.metadata (9.1 kB)
Collecting propcache==0.2.1 (from homeassistant)
  Downloading propcache-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.2 kB)
Collecting pyOpenSSL==24.3.0 (from homeassistant)
  Downloading pyOpenSSL-24.3.0-py3-none-any.whl.metadata (15 kB)
Collecting orjson==3.10.12 (from homeassistant)
  Downloading orjson-3.10.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (41 kB)
Collecting packaging>=23.1 (from homeassistant)
  Downloading packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
Collecting psutil-home-assistant==0.0.1 (from homeassistant)
  Downloading psutil_home_assistant-0.0.1-py3-none-any.whl.metadata (882 bytes)
Collecting python-slugify==8.0.4 (from homeassistant)
  Downloading python_slugify-8.0.4-py2.py3-none-any.whl.metadata (8.5 kB)
Requirement already satisfied: PyYAML==6.0.2 in /usr/lib/python3/dist-packages (from homeassistant) (6.0.2)
Collecting requests==2.32.3 (from homeassistant)
  Downloading requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting securetar==2024.11.0 (from homeassistant)
  Downloading securetar-2024.11.0-py3-none-any.whl.metadata (2.0 kB)
Collecting SQLAlchemy==2.0.36 (from homeassistant)
  Downloading SQLAlchemy-2.0.36-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.7 kB)
Requirement already satisfied: typing-extensions<5.0,>=4.12.2 in /usr/lib/python3/dist-packages (from homeassistant) (4.12.2)
Collecting ulid-transform==1.0.2 (from homeassistant)
  Downloading ulid_transform-1.0.2-cp312-cp312-manylinux_2_36_x86_64.whl.metadata (5.4 kB)
Collecting urllib3<2,>=1.26.5 (from homeassistant)
  Downloading urllib3-1.26.20-py2.py3-none-any.whl.metadata (50 kB)
Requirement already satisfied: uv==0.5.8 in /usr/local/lib/python3.12/dist-packages (from homeassistant) (0.5.8)
Collecting voluptuous==0.15.2 (from homeassistant)
  Downloading voluptuous-0.15.2-py3-none-any.whl.metadata (20 kB)
Collecting voluptuous-serialize==2.6.0 (from homeassistant)
  Downloading voluptuous_serialize-2.6.0-py3-none-any.whl.metadata (316 bytes)
Collecting voluptuous-openapi==0.0.5 (from homeassistant)
  Downloading voluptuous_openapi-0.0.5-py3-none-any.whl.metadata (325 bytes)
Collecting yarl==1.18.3 (from homeassistant)
  Downloading yarl-1.18.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (69 kB)
Collecting webrtc-models==0.3.0 (from homeassistant)
  Downloading webrtc_models-0.3.0-py3-none-any.whl.metadata (2.9 kB)
Collecting pycares>=4.0.0 (from aiodns==3.2.0->homeassistant)
  Downloading pycares-4.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.1 kB)
Collecting mashumaro<4.0,>=3.11 (from aiohasupervisor==0.2.2b5->homeassistant)
  Downloading mashumaro-3.15-py3-none-any.whl.metadata (117 kB)
Collecting aiohappyeyeballs>=2.3.0 (from aiohttp==3.11.11->homeassistant)
  Downloading aiohappyeyeballs-2.4.6-py3-none-any.whl.metadata (5.9 kB)
Collecting aiosignal>=1.1.2 (from aiohttp==3.11.11->homeassistant)
  Downloading aiosignal-1.3.2-py2.py3-none-any.whl.metadata (3.8 kB)
Collecting frozenlist>=1.1.1 (from aiohttp==3.11.11->homeassistant)
  Downloading frozenlist-1.5.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (13 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp==3.11.11->homeassistant)
  Downloading multidict-6.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.0 kB)
Collecting tzdata>=2024.1 (from aiozoneinfo==0.2.1->homeassistant)
  Downloading tzdata-2025.1-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting pytz (from astral==2.2->homeassistant)
  Downloading pytz-2025.1-py2.py3-none-any.whl.metadata (22 kB)
Collecting cffi>=1.12 (from cryptography==44.0.0->homeassistant)
  Downloading cffi-1.17.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB)
Collecting fnvhash<0.2.0,>=0.1.0 (from fnv-hash-fast==1.0.2->homeassistant)
  Downloading fnvhash-0.1.0.tar.gz (1.9 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-yw78r6ru/fnvhash_ec5b57c34625493d8856cb308801fd38/setup.py", line 1, in <module>
          from setuptools import setup
      ImportError: cannot import name 'setup' from 'setuptools' (unknown location)
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

### 🖼️ Additional context (optional).

_No response_
Originally created by @xijio on GitHub (Feb 12, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? homeassistant-core.sh ### 📂 What was the exact command used to execute the script? update ### 📝 Provide a clear and concise description of the issue. I'm trying to update the home assistant core lxc. The first time I tried upgrade, it told me my ubuntu version was too old (I was on 24.04 lts and it wanted 24.10). So I updated ubuntu to 24.10 using do-release-upgrade, rebooted and tried update again. I tried updating again and it complained I didn't have enough ram (had given 1024, upgraded it to 2048), now after passing both of those checks, I'm getting an error. ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Ubuntu 24.10 ### 🔄 Steps to reproduce the issue. When i run "Update" in the LXC console I get: ``` __ __ ___ _ __ __ ______ / / / /___ ____ ___ ___ / | __________(_)____/ /_____ _____ / /_ / ____/___ ________ / /_/ / __ \/ __ `__ \/ _ \ / /| | / ___/ ___/ / ___/ __/ __ `/ __ \/ __/_____/ / / __ \/ ___/ _ \ / __ / /_/ / / / / / / __/ / ___ |(__ |__ ) (__ ) /_/ /_/ / / / / /_/_____/ /___/ /_/ / / / __/ /_/ /_/\____/_/ /_/ /_/\___/ /_/ |_/____/____/_/____/\__/\__,_/_/ /_/\__/ \____/\____/_/ \___/ Updating to Stable Version :heavy_check_mark: Stopped Home Assistant ⠹ Updating Home Assistant [ERROR] in line 67: exit code 0: while executing command pip install ${BR}--upgrade homeassistant &> /dev/null``` I worked with @tremor021 on discord and he had me: ```source /srv/homeassistant/bin/activate pip install --upgrade homeassistant``` This gave me: ```(homeassistant) root@homeassistant-core:/# pip install --upgrade homeassistant error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.12/README.venv for more information. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification.``` Next tremor021 had me run the following commands: ```rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED pip install --upgrade homeassistant``` which started to install many things but eventually hit this error: ```Collecting fnvhash<0.2.0,>=0.1.0 (from fnv-hash-fast==1.0.2->homeassistant) Downloading fnvhash-0.1.0.tar.gz (1.9 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [6 lines of output] Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-yw78r6ru/fnvhash_ec5b57c34625493d8856cb308801fd38/setup.py", line 1, in <module> from setuptools import setup ImportError: cannot import name 'setup' from 'setuptools' (unknown location) [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.``` He asked me to open this issue to track. I'm going to attempt to spin up a new HA LXC and migrate my configs, but I will keep this one around to help further diagnose if that's helpful! ### ❌ Paste the full error output (if available). __ __ ___ _ __ __ ______ / / / /___ ____ ___ ___ / | __________(_)____/ /_____ _____ / /_ / ____/___ ________ / /_/ / __ \/ __ `__ \/ _ \ / /| | / ___/ ___/ / ___/ __/ __ `/ __ \/ __/_____/ / / __ \/ ___/ _ \ / __ / /_/ / / / / / / __/ / ___ |(__ |__ ) (__ ) /_/ /_/ / / / / /_/_____/ /___/ /_/ / / / __/ /_/ /_/\____/_/ /_/ /_/\___/ /_/ |_/____/____/_/____/\__/\__,_/_/ /_/\__/ \____/\____/_/ \___/ Updating to Stable Version ✔️ Stopped Home Assistant ⠹ Updating Home Assistant [ERROR] in line 67: exit code 0: while executing command pip install ${BR}--upgrade homeassistant &> /dev/null root@homeassistant-core:~# source /srv/homeassistant/bin/activate (homeassistant) root@homeassistant-core:~# pwd /root (homeassistant) root@homeassistant-core:~# whoami root (homeassistant) root@homeassistant-core:~# ls homeassistant-core.sh response.txt (homeassistant) root@homeassistant-core:~# cd .. (homeassistant) root@homeassistant-core:/# pip install --upgrade homeassistant error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.12/README.venv for more information. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. (homeassistant) root@homeassistant-core:/# rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED (homeassistant) root@homeassistant-core:/# pip install --upgrade homeassistant Collecting homeassistant Downloading homeassistant-2025.1.4-py3-none-any.whl.metadata (4.8 kB) Collecting aiodns==3.2.0 (from homeassistant) Downloading aiodns-3.2.0-py3-none-any.whl.metadata (4.0 kB) Collecting aiohasupervisor==0.2.2b5 (from homeassistant) Downloading aiohasupervisor-0.2.2b5-py3-none-any.whl.metadata (5.1 kB) Collecting aiohttp==3.11.11 (from homeassistant) Downloading aiohttp-3.11.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (7.7 kB) Collecting aiohttp-cors==0.7.0 (from homeassistant) Downloading aiohttp_cors-0.7.0-py3-none-any.whl.metadata (20 kB) Collecting aiohttp-fast-zlib==0.2.0 (from homeassistant) Downloading aiohttp_fast_zlib-0.2.0-py3-none-any.whl.metadata (5.6 kB) Collecting aiozoneinfo==0.2.1 (from homeassistant) Downloading aiozoneinfo-0.2.1-py3-none-any.whl.metadata (5.5 kB) Collecting astral==2.2 (from homeassistant) Downloading astral-2.2-py2.py3-none-any.whl.metadata (1.5 kB) Collecting async-interrupt==1.2.0 (from homeassistant) Downloading async_interrupt-1.2.0-py3-none-any.whl.metadata (4.9 kB) Collecting attrs==24.2.0 (from homeassistant) Downloading attrs-24.2.0-py3-none-any.whl.metadata (11 kB) Collecting atomicwrites-homeassistant==1.4.1 (from homeassistant) Downloading atomicwrites_homeassistant-1.4.1-py2.py3-none-any.whl.metadata (6.0 kB) Collecting awesomeversion==24.6.0 (from homeassistant) Downloading awesomeversion-24.6.0-py3-none-any.whl.metadata (9.0 kB) Collecting bcrypt==4.2.0 (from homeassistant) Downloading bcrypt-4.2.0-cp39-abi3-manylinux_2_28_x86_64.whl.metadata (9.6 kB) Collecting certifi>=2021.5.30 (from homeassistant) Downloading certifi-2025.1.31-py3-none-any.whl.metadata (2.5 kB) Collecting ciso8601==2.3.2 (from homeassistant) Downloading ciso8601-2.3.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (23 kB) Collecting cronsim==2.6 (from homeassistant) Downloading cronsim-2.6-py3-none-any.whl.metadata (6.9 kB) Collecting fnv-hash-fast==1.0.2 (from homeassistant) Downloading fnv_hash_fast-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.metadata (4.7 kB) Collecting hass-nabucasa==0.87.0 (from homeassistant) Downloading hass_nabucasa-0.87.0-py3-none-any.whl.metadata (1.8 kB) Collecting httpx==0.27.2 (from homeassistant) Downloading httpx-0.27.2-py3-none-any.whl.metadata (7.1 kB) Collecting home-assistant-bluetooth==1.13.0 (from homeassistant) Downloading home_assistant_bluetooth-1.13.0-py3-none-any.whl.metadata (5.4 kB) Collecting ifaddr==0.2.0 (from homeassistant) Downloading ifaddr-0.2.0-py3-none-any.whl.metadata (4.9 kB) Collecting Jinja2==3.1.5 (from homeassistant) Downloading jinja2-3.1.5-py3-none-any.whl.metadata (2.6 kB) Collecting lru-dict==1.3.0 (from homeassistant) Downloading lru_dict-1.3.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.5 kB) Collecting PyJWT==2.10.1 (from homeassistant) Downloading PyJWT-2.10.1-py3-none-any.whl.metadata (4.0 kB) Collecting cryptography==44.0.0 (from homeassistant) Downloading cryptography-44.0.0-cp39-abi3-manylinux_2_28_x86_64.whl.metadata (5.7 kB) Collecting Pillow==11.0.0 (from homeassistant) Downloading pillow-11.0.0-cp312-cp312-manylinux_2_28_x86_64.whl.metadata (9.1 kB) Collecting propcache==0.2.1 (from homeassistant) Downloading propcache-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.2 kB) Collecting pyOpenSSL==24.3.0 (from homeassistant) Downloading pyOpenSSL-24.3.0-py3-none-any.whl.metadata (15 kB) Collecting orjson==3.10.12 (from homeassistant) Downloading orjson-3.10.12-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (41 kB) Collecting packaging>=23.1 (from homeassistant) Downloading packaging-24.2-py3-none-any.whl.metadata (3.2 kB) Collecting psutil-home-assistant==0.0.1 (from homeassistant) Downloading psutil_home_assistant-0.0.1-py3-none-any.whl.metadata (882 bytes) Collecting python-slugify==8.0.4 (from homeassistant) Downloading python_slugify-8.0.4-py2.py3-none-any.whl.metadata (8.5 kB) Requirement already satisfied: PyYAML==6.0.2 in /usr/lib/python3/dist-packages (from homeassistant) (6.0.2) Collecting requests==2.32.3 (from homeassistant) Downloading requests-2.32.3-py3-none-any.whl.metadata (4.6 kB) Collecting securetar==2024.11.0 (from homeassistant) Downloading securetar-2024.11.0-py3-none-any.whl.metadata (2.0 kB) Collecting SQLAlchemy==2.0.36 (from homeassistant) Downloading SQLAlchemy-2.0.36-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.7 kB) Requirement already satisfied: typing-extensions<5.0,>=4.12.2 in /usr/lib/python3/dist-packages (from homeassistant) (4.12.2) Collecting ulid-transform==1.0.2 (from homeassistant) Downloading ulid_transform-1.0.2-cp312-cp312-manylinux_2_36_x86_64.whl.metadata (5.4 kB) Collecting urllib3<2,>=1.26.5 (from homeassistant) Downloading urllib3-1.26.20-py2.py3-none-any.whl.metadata (50 kB) Requirement already satisfied: uv==0.5.8 in /usr/local/lib/python3.12/dist-packages (from homeassistant) (0.5.8) Collecting voluptuous==0.15.2 (from homeassistant) Downloading voluptuous-0.15.2-py3-none-any.whl.metadata (20 kB) Collecting voluptuous-serialize==2.6.0 (from homeassistant) Downloading voluptuous_serialize-2.6.0-py3-none-any.whl.metadata (316 bytes) Collecting voluptuous-openapi==0.0.5 (from homeassistant) Downloading voluptuous_openapi-0.0.5-py3-none-any.whl.metadata (325 bytes) Collecting yarl==1.18.3 (from homeassistant) Downloading yarl-1.18.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (69 kB) Collecting webrtc-models==0.3.0 (from homeassistant) Downloading webrtc_models-0.3.0-py3-none-any.whl.metadata (2.9 kB) Collecting pycares>=4.0.0 (from aiodns==3.2.0->homeassistant) Downloading pycares-4.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.1 kB) Collecting mashumaro<4.0,>=3.11 (from aiohasupervisor==0.2.2b5->homeassistant) Downloading mashumaro-3.15-py3-none-any.whl.metadata (117 kB) Collecting aiohappyeyeballs>=2.3.0 (from aiohttp==3.11.11->homeassistant) Downloading aiohappyeyeballs-2.4.6-py3-none-any.whl.metadata (5.9 kB) Collecting aiosignal>=1.1.2 (from aiohttp==3.11.11->homeassistant) Downloading aiosignal-1.3.2-py2.py3-none-any.whl.metadata (3.8 kB) Collecting frozenlist>=1.1.1 (from aiohttp==3.11.11->homeassistant) Downloading frozenlist-1.5.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (13 kB) Collecting multidict<7.0,>=4.5 (from aiohttp==3.11.11->homeassistant) Downloading multidict-6.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.0 kB) Collecting tzdata>=2024.1 (from aiozoneinfo==0.2.1->homeassistant) Downloading tzdata-2025.1-py2.py3-none-any.whl.metadata (1.4 kB) Collecting pytz (from astral==2.2->homeassistant) Downloading pytz-2025.1-py2.py3-none-any.whl.metadata (22 kB) Collecting cffi>=1.12 (from cryptography==44.0.0->homeassistant) Downloading cffi-1.17.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.5 kB) Collecting fnvhash<0.2.0,>=0.1.0 (from fnv-hash-fast==1.0.2->homeassistant) Downloading fnvhash-0.1.0.tar.gz (1.9 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [6 lines of output] Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-yw78r6ru/fnvhash_ec5b57c34625493d8856cb308801fd38/setup.py", line 1, in <module> from setuptools import setup ImportError: cannot import name 'setup' from 'setuptools' (unknown location) [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bugbreaking change labels 2026-02-04 19:11:24 +03:00
Author
Owner

@MickLesk commented on GitHub (Feb 12, 2025):

have you following the guide? Seems your LXC is broken and python is defect

@MickLesk commented on GitHub (Feb 12, 2025): have you following the guide? Seems your LXC is broken and python is defect
Author
Owner

@xijio commented on GitHub (Feb 12, 2025):

Good morning, @MickLesk!

Which guide are you referring to? Given I don't know, I am probably not following it! Here's what I did:

  1. Within the last year I deployed this LXC (I was previously using the HAOS VM and migrated my config to the HA LXC).
  2. About a week ago I ran the LXC updated script that updates all LXCs. It hung on this one so I ran it again, but skipped Home Assistant so I could debug later (since everything was working fine).
  3. Yesterday I tried manually updating and got an error that the OS was behind (I was on ubuntu 24.04 LTS and needed 24.10). I ran modified the ubuntu config to get off lts and onto normal and than ran do-release-upgrade successfully to update to 24.10 and rebooted the LXC.
  4. I tried updating again and got a warning that the RAM was too low (was 1024) so I raised it to 2048mb of ram.
  5. I tried the update script again (again :)) and that's when I got the error and hopped on discord where @tremor021 had me run the script manually which gave the error about externally managed pythin files to which @tremor021 has me clean them up (I'll admit I don't know what this means and I was just copying and pasting from a kind stranger on the internet :))
  6. I tried the update script again and it started installing packages and then crashed out with the error above:
× python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-yw78r6ru/fnvhash_ec5b57c34625493d8856cb308801fd38/setup.py", line 1, in <module>
          from setuptools import setup
      ImportError: cannot import name 'setup' from 'setuptools' (unknown location)
      [end of output]

HA is working fine right now, but I've backed up my config and when I have some free time I'm planning to migrate the config to a fresh LXC using the script to get a 'clean' environment. That said, I can keep this LXC around to help diagnose this issue since it doesn't seem like I went too far off the beaten path and other folks might run into this.

@xijio commented on GitHub (Feb 12, 2025): Good morning, @MickLesk! Which guide are you referring to? Given I don't know, I am probably not following it! Here's what I did: 1) Within the last year I deployed this LXC (I was previously using the HAOS VM and migrated my config to the HA LXC). 2) About a week ago I ran the LXC updated script that updates all LXCs. It hung on this one so I ran it again, but skipped Home Assistant so I could debug later (since everything was working fine). 3) Yesterday I tried manually updating and got an error that the OS was behind (I was on ubuntu 24.04 LTS and needed 24.10). I ran modified the ubuntu config to get off lts and onto normal and than ran do-release-upgrade successfully to update to 24.10 and rebooted the LXC. 4) I tried updating again and got a warning that the RAM was too low (was 1024) so I raised it to 2048mb of ram. 5) I tried the update script again (again :)) and that's when I got the error and hopped on discord where @tremor021 had me run the script manually which gave the error about externally managed pythin files to which @tremor021 has me clean them up (I'll admit I don't know what this means and I was just copying and pasting from a kind stranger on the internet :)) 6) I tried the update script again and it started installing packages and then crashed out with the error above: ``` × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [6 lines of output] Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-yw78r6ru/fnvhash_ec5b57c34625493d8856cb308801fd38/setup.py", line 1, in <module> from setuptools import setup ImportError: cannot import name 'setup' from 'setuptools' (unknown location) [end of output] ``` HA is working fine right now, but I've backed up my config and when I have some free time I'm planning to migrate the config to a fresh LXC using the script to get a 'clean' environment. That said, I can keep this LXC around to help diagnose this issue since it doesn't seem like I went too far off the beaten path and other folks might run into this.
Author
Owner

@MickLesk commented on GitHub (Feb 12, 2025):

https://github.com/community-scripts/ProxmoxVE/discussions/1549

@MickLesk commented on GitHub (Feb 12, 2025): https://github.com/community-scripts/ProxmoxVE/discussions/1549
Author
Owner

@xijio commented on GitHub (Feb 12, 2025):

I'll give that a go and report back. I highly recommend referencing that guide in the upgrade script when it gives the OS error. Don't know how I was supposed to find that (maybe I'm just a lost soul, but I feel like others will hit this too). Are there other scripts that have interrupts for breaking changes like this? Seems like it would be a common pattern. I'll report back if the few steps I missed from the guide fix it.

@xijio commented on GitHub (Feb 12, 2025): I'll give that a go and report back. I highly recommend referencing that guide in the upgrade script when it gives the OS error. Don't know how I was supposed to find that (maybe I'm just a lost soul, but I feel like others will hit this too). Are there other scripts that have interrupts for breaking changes like this? Seems like it would be a common pattern. I'll report back if the few steps I missed from the guide fix it.
Author
Owner

@xijio commented on GitHub (Feb 12, 2025):

I ran the steps from the guide and it worked the only difference was I also had to reboot the LXC before HA would respond. that said, I still think getting this 'breaking change' info someplace where people can see it while trying to do updates would be extremely helpful!

@xijio commented on GitHub (Feb 12, 2025): I ran the steps from the guide and it worked the only difference was I also had to reboot the LXC before HA would respond. that said, I still think getting this 'breaking change' info someplace where people can see it while trying to do updates would be extremely helpful!
Author
Owner

@MickLesk commented on GitHub (Feb 12, 2025):

You have created an issue. As a precondition, it says "Read and searched changelog/discussion" with one word you would have found the migration. It is also linked in the changelog as a breaking change. What else should we do, dance?

And additionally the guide is linked in the OS ;) but if you change any releases yourself without informing yourself beforehand, it just looks bad.

function update_script() {
 header_info

 # OS Check
 if ! lsb_release -d | grep -q "Ubuntu 24.10"; then
 msg_error "Wrong OS detected. This script only supports Ubuntu 24.10.
 " msg_error "Read Guide: https:
 //github.com/community-scripts/ProxmoxVE/discussions/1549" exit 1
@MickLesk commented on GitHub (Feb 12, 2025): You have created an issue. As a precondition, it says "Read and searched changelog/discussion" with one word you would have found the migration. It is also linked in the changelog as a breaking change. What else should we do, dance? And additionally the guide is linked in the OS ;) but if you change any releases yourself without informing yourself beforehand, it just looks bad. ```bash function update_script() { header_info # OS Check if ! lsb_release -d | grep -q "Ubuntu 24.10"; then msg_error "Wrong OS detected. This script only supports Ubuntu 24.10. " msg_error "Read Guide: https: //github.com/community-scripts/ProxmoxVE/discussions/1549" exit 1 ```
Author
Owner

@xijio commented on GitHub (Feb 12, 2025):

Dance! :). Clearly my bad here, I missed the script linking the document, that's what I was asking for and it already exists so I clearly missed it. Maybe a good time to use the tag so unobservant folks like myself don't miss it! /s Normally I do search when I create an issue, but in this case I was instructed by a friendly discord user and was in a hurry so I cut some corners. Again, my bad. Thanks again for your help, I'm squared away.

@xijio commented on GitHub (Feb 12, 2025): Dance! :). Clearly my bad here, I missed the script linking the document, that's what I was asking for and it already exists so I clearly missed it. Maybe a good time to use the <blink> tag so unobservant folks like myself don't miss it! /s Normally I do search when I create an issue, but in this case I was instructed by a friendly discord user and was in a hurry so I cut some corners. Again, my bad. Thanks again for your help, I'm squared away.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#482