-
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
Milestone
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).
- OS version and name: macOS Catalina (10.15.1)
- Poetry version: 1.0.0b3
- Link of a Gist with the contents of your pyproject.toml file: N/A
Issue
It appears that if poetry has never made a virtualenv for you—which means that <cache-dir>/virtualenvs does not exist, then asking poetry to make a virtualenv in the project root will fail.
$ poetry env use python3 -vvv 11:12:03
Creating virtualenv autoencoding in /Users/will.frey/Desktop/autoencoding/.venv
[IOError]
[Errno 2] No such file or directory: '/Users/will.frey/Library/Caches/pypoetry/virtualenvs/envs.toml'
Traceback (most recent call last):
Traceback (most recent call last):
File "/usr/local/bin/poetry", line 14, in <module>
main()
File "/Users/will.frey/.poetry/lib/poetry/console/__init__.py", line 5, in main
return Application().run()
File "/Users/will.frey/.poetry/lib/poetry/_vendor/py2.7/clikit/console_application.py", line 139, in run
trace.render(io, simple=isinstance(e, CliKitException))
File "/Users/will.frey/.poetry/lib/poetry/_vendor/py2.7/clikit/ui/components/exception_trace.py", line 57, in render
self._render_traceback(io, tb)
File "/Users/will.frey/.poetry/lib/poetry/_vendor/py2.7/clikit/ui/components/exception_trace.py", line 67, in _render_traceback
io.write_line("".join(traceback.format_list(frames)))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/traceback.py", line 39, in format_list
item = ' File "%s", line %d, in %s\n' % (filename,lineno,name)
TypeError: %d format: a number is required, not strI can get past this by either having first made a not-in-project-root virtualenv with poetry or by creating the <cache-dir>/virtualenvs directory manually myself.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected