TheSpaghettiDetective / obico-server

Obico is a community-built, open-source smart 3D printing platform used by makers, enthusiasts, and tinkerers around the world.
https://obico.io
GNU Affero General Public License v3.0
1.47k stars 297 forks source link

[BUG] Error installing on K1 Max V2 #957

Open ArnoS146 opened 4 months ago

ArnoS146 commented 4 months ago

Describe the bug Installing on the K1 Max this issue has been for the last week

###### Installing required system packages...

Package python3 (3.11.7-1) installed in root is up to date.
Package python3-pip (23.3.1-1) installed in root is up to date.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
###### Creating python virtual environment for moonraker-obico...

RuntimeError: failed to build image pip, setuptools because:
Traceback (most recent call last):
  File "/opt/lib/python3.11/site-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 57, in _install
    installer.install(creator.interpreter.version_info)
  File "/opt/lib/python3.11/site-packages/virtualenv/seed/embed/via_app_data/pip_install/base.py", line 33, in install
    self._uninstall_previous_version()
  File "/opt/lib/python3.11/site-packages/virtualenv/seed/embed/via_app_data/pip_install/base.py", line 144, in _uninstall_previous_version
    dist_name = self._dist_info.stem.split("-")[0]
                ^^^^^^^^^^^^^^^
  File "/opt/lib/python3.11/site-packages/virtualenv/seed/embed/via_app_data/pip_install/base.py", line 110, in _dist_info
    raise RuntimeError(msg)  # pragma: no cover
    ^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: no .dist-info at /root/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/pip-24.0-py3-none-any, has pip

Traceback (most recent call last):
  File "/opt/lib/python3.11/site-packages/virtualenv/seed/embed/via_app_data/via_app_data.py", line 57, in _install
    installer.install(creator.interpreter.version_info)
  File "/opt/lib/python3.11/site-packages/virtualenv/seed/embed/via_app_data/pip_install/base.py", line 33, in install
    self._uninstall_previous_version()
  File "/opt/lib/python3.11/site-packages/virtualenv/seed/embed/via_app_data/pip_install/base.py", line 144, in _uninstall_previous_version
    dist_name = self._dist_info.stem.split("-")[0]
                ^^^^^^^^^^^^^^^
  File "/opt/lib/python3.11/site-packages/virtualenv/seed/embed/via_app_data/pip_install/base.py", line 110, in _dist_info
    raise RuntimeError(msg)  # pragma: no cover
    ^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: no .dist-info at /root/.local/share/virtualenv/wheel/3.11/image/1/CopyPipInstall/setuptools-69.5.1-py3-none-any, has distutils-precedence.pth, _distutils_hack, setuptools, pkg_resources

Trying to install on the K1 Max V2 - Latest OS with Klipper working perfectly Fresh pull on the Git repo