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

Problems in installing banana with poetry #27

Open
niclaurenti opened this issue Jul 26, 2022 · 4 comments
Open

Problems in installing banana with poetry #27

niclaurenti opened this issue Jul 26, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@niclaurenti
Copy link
Contributor

I had problems during the installation of banana with poetry:
when I run the poetry install command it crashes on the installation of pendulum.
For the moment I solved it running

poetry run pip install setuptools==62.4.0
poetry install -E mark
@felixhekhorn
Copy link
Contributor

Can you please give the exact error? and there is no "mark" in banana - so I'm guessing you were trying to install in eko?

@felixhekhorn felixhekhorn added the bug Something isn't working label Jul 26, 2022
@felixhekhorn
Copy link
Contributor

@alecandido: the last true commit to main was db3b106 which should have run poetry update - still if I clone and run poetry install I get Warning: The lock file is not up to date with the latest changes in pyproject.toml. You may be getting outdated dependencies. Run update to update them.

However, the command succeeds ...

@alecandido
Copy link
Member

alecandido commented Jul 27, 2022

Wait a moment @felixhekhorn

This a solved problem, @niclaurenti told me and I provided a work around. It is already documented in Pendulum, and it's coming (through Poetry) directly from pip. But I told @niclaurenti to add also the reference to the issue and the workaround.

@alecandido
Copy link
Member

However, let's go in order.

The problem

The problem arise (at least for fresh environment, Python 3.10) when you try to install eko[mark], that depends on banana and thus on Pendulum.
To reproduce:

  1. clone EKO from scratch, or just remove existing Poetry environment
  2. run poetry install -E mark

The explanation

It is a known problem, due to the presence of a system installation of an old version of setuptools, that is not updated by Poetry (not managed by it in the first place), but used to build packages the moment a user-side build is needed (because no suitable wheel is available).

Reference issue in Pendulum: sdispater/pendulum#619 referring pypa/pip#6264 (comment)

The workaround

As found in sdispater/pendulum#619 (comment) it is sufficient to run:

poetry run pip install setuptools==62.4.0

before the incriminated poetry install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants