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

Problem installing dependencies #3

Open
waterflow80 opened this issue Mar 4, 2025 · 1 comment
Open

Problem installing dependencies #3

waterflow80 opened this issue Mar 4, 2025 · 1 comment

Comments

@waterflow80
Copy link

Description

I'm having a problem installing project's dependencies using poetry.

System Info

OS Version:

NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"

Installed python versions:

python              python3             python3.11-config   python3.8           python3-futurize    python3-wsdump
python2             python3.1           python3.12          python3.8-config    python3-pasteurize  
python2.7           python3.11          python3.12-config   python3-config      python3-pbr

Default python version:

$ python --version
Python 3.12.7

Poetry version:

$ poetry --version
Poetry (version 2.1.1)

Reproducing the problem

When I run:

$ poetry config virtualenvs.in-project true
$ poetry install

I get:

The current project's supported Python range (>=3.12) is not compatible with some of the required packages Python requirement:
  - loguru requires Python <4.0,>=3.5, so it will not be installable for Python >=4.0

Because loguru (0.7.3) requires Python <4.0,>=3.5
 and no versions of loguru match >0.7.3, loguru is forbidden.
So, because ragondin depends on loguru (>=0.7.3), version solving failed.

  * Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties

    For loguru, a possible solution would be to set the `python` property to ">=3.12,<4.0"
@waterflow80
Copy link
Author

I managed to install the dependencies using a different way:

  • Created a src/ folder
  • Moved the packages (components, config, ...) under src/
  • Activated the environment: . ./.venv/bin/activate
  • Installed dependencies using pip:
$ pip install -e .

I am not sure if it's the right way to do it...

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

1 participant