-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected
Description
-
I am on the latest Poetry version.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption). -
Poetry version: 1.0.3
-
pyproject.toml file: https://github.com/cjw296/carly/blob/master/pyproject.toml
Issue
virtualenv 20 was released earlier this month, and looks like CircleCI's images were just rebuilt to use it. So, now, on Python 2, poetry install fails as follows:
circleci@32ce45b8e19b:~/project$ poetry install -v
Creating virtualenv carly-3aSsmiER-py2.7 in /home/circleci/.cache/pypoetry/virtualenvs
[ImportError]
cannot import name create_environment
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/clikit/console_application.py", line 131, in run
status_code = command.handle(parsed_args, io)
File "/usr/local/lib/python2.7/site-packages/clikit/api/command/command.py", line 120, in handle
status_code = self._do_handle(args, io)
File "/usr/local/lib/python2.7/site-packages/clikit/api/command/command.py", line 163, in _do_handle
self._dispatcher.dispatch(PRE_HANDLE, event)
File "/usr/local/lib/python2.7/site-packages/clikit/api/event/event_dispatcher.py", line 22, in dispatch
self._do_dispatch(listeners, event_name, event)
File "/usr/local/lib/python2.7/site-packages/clikit/api/event/event_dispatcher.py", line 89, in _do_dispatch
listener(event, event_name, self)
File "/usr/local/lib/python2.7/site-packages/poetry/console/config/application_config.py", line 89, in set_env
env = env_manager.create_venv(io)
File "/usr/local/lib/python2.7/site-packages/poetry/utils/env.py", line 610, in create_venv
self.build_venv(str(venv), executable=executable)
File "/usr/local/lib/python2.7/site-packages/poetry/utils/env.py", line 674, in build_venv
from virtualenv import create_environment
The most pragmatic solution, at this point, is to have poetry pin the virtualenv it uses to <20, or just vendor it, since realistically, it's only going to be used on Python 2, right?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected