Skip to content
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

Could not install on Ubuntu 24.04.2 LTS #28

Open
rossumvd opened this issue Mar 14, 2025 · 2 comments
Open

Could not install on Ubuntu 24.04.2 LTS #28

rossumvd opened this issue Mar 14, 2025 · 2 comments

Comments

@rossumvd
Copy link

Hi, the latest version could not be installed on my Ubuntu 24.

OS

cat /etc/issue
Ubuntu 24.04.2 LTS \n \l

Python

python --version
Python 3.12.3

pip --version
pip 24.0 from /usr/lib/python3/dist-packages/pip (python 3.12)

dpkg -l python3-full
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version         Architecture Description
+++-==============-===============-============-======================================================
ii  python3-full   3.12.3-0ubuntu2 amd64        Default Python Interpreter with complete class library

Installation

pip install $(curl -s https://api.github.com/repos/rossumai/deployment-manager/releases/latest | jq -r '.assets[].browser_download_url' | grep '.whl')
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.
@rehoumir
Copy link
Member

Hi, can you please try this installation process instead?

cd $(mktemp -d)
git clone git@github.com:rossumai/deployment-manager.git
cd deployment-manager

python3 -m venv .
source bin/activate
python3 -m pip install pipx

python3 -m pipx install . --force

@vaclavdobsicek
Copy link
Contributor

This installation process works

  installed package deployment-manager 2.3.2, installed using Python 3.12.4
  These apps are now globally available
    - prd2

, but it results in the non-working PRD2. I suppose, there is unsatisfied dependency to aiofiles, which is a part of the rossum-sdk (so maybe when you have rossum-sdk installed, it works, but not in case the rossum-sdk is not installed?).

 prd2 --version
Traceback (most recent call last):
  File "/home/ubuntu/.local/bin/prd2", line 5, in <module>
    from deployment_manager.main import main
  File "/home/ubuntu/.local/pipx/venvs/deployment-manager/lib/python3.12/site-packages/deployment_manager/main.py", line 4, in <module>
    from deployment_manager.commands.deploy.deploy import deploy
  File "/home/ubuntu/.local/pipx/venvs/deployment-manager/lib/python3.12/site-packages/deployment_manager/commands/deploy/deploy.py", line 4, in <module>
    from deployment_manager.commands.deploy.subcommands.revert.revert import (
  File "/home/ubuntu/.local/pipx/venvs/deployment-manager/lib/python3.12/site-packages/deployment_manager/commands/deploy/subcommands/revert/revert.py", line 7, in <module>
    from rossum_api import ElisAPIClient
  File "/home/ubuntu/.local/pipx/venvs/deployment-manager/lib/python3.12/site-packages/rossum_api/__init__.py", line 4, in <module>
    from rossum_api.elis_api_client import ElisAPIClient, ExportFileFormats
  File "/home/ubuntu/.local/pipx/venvs/deployment-manager/lib/python3.12/site-packages/rossum_api/elis_api_client.py", line 8, in <module>
    import aiofiles
ModuleNotFoundError: No module named 'aiofiles'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants