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

poetry install fails #68

Open
alexxroche opened this issue Sep 14, 2024 · 0 comments
Open

poetry install fails #68

alexxroche opened this issue Sep 14, 2024 · 0 comments

Comments

@alexxroche
Copy link

When I run poetry install I received an error.

I cloned this repo;

git clone https://github.com/rero/flask-wiki.git
cd flask-wiki
python -m venv .venv &&  . .venv/bin/activate 
echo "poetry==1.8.3" >> requirements.txt 
pip install -r requirements.txt
poetry install

and that threw:

Installing dependencies from lock file
 
Package operations: 2 installs, 0 updates, 0 removals
 
  - Installing pytest-pycodestyle (2.3.1)
  - Installing pytest-pydocstyle (2.3.2)
 
  TypeError
 
  Can't instantiate abstract class IsolatedEnv with abstract methods executable, scripts_dir
 
  at .venv/lib64/python3.9/site-packages/poetry/installation/chef.py:131 in _prepare
      127│     ) -> Path:
      128│         from subprocess import CalledProcessError
      129│ 
      130│         with ephemeral_environment(self._env.python) as venv:
    → 131│             env = IsolatedEnv(venv, self._pool)
      132│             builder = ProjectBuilder.from_isolated_env(
      133│                 env, directory, runner=quiet_subprocess_runner
      134│             )
      135│             env.install(builder.build_system_requires)

Cannot install pytest-pydocstyle.


  TypeError

  Can't instantiate abstract class IsolatedEnv with abstract methods executable, scripts_dir

  at .venv/lib64/python3.9/site-packages/poetry/installation/chef.py:131 in _prepare
      127│     ) -> Path:
      128│         from subprocess import CalledProcessError
      129│ 
      130│         with ephemeral_environment(self._env.python) as venv:
    → 131│             env = IsolatedEnv(venv, self._pool)
      132│             builder = ProjectBuilder.from_isolated_env(
      133│                 env, directory, runner=quiet_subprocess_runner
      134│             )
      135│             env.install(builder.build_system_requires)

Cannot install pytest-pycodestyle.
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