Comments (4)
Thanks for reporting this!
At the moment, poetry has not been tested on Windows. This is in the works, however :-)
Could you execute the command again by passing the -v
option (verbose) to get the full stacktrace? It would help a lot in debugging.
from poetry.
Here it is with verbose mode on. I figured it might have something to do with Windows, it's usually the case with these things 😄
E:\tools\code\example>poetry add pendulum -v
Using version ^1.4 for pendulum
Updating dependencies
Resolving dependencies..........
Package operations: 9 installs, 0 updates, 0 removals
Writing lock file
- Installing py (1.5.2)
[FileNotFoundError]
[WinError 2] The system cannot find the file specified
Exception trace:
c:\users\mitchell\.local\venvs\poetry\lib\site-packages\cleo\application.py in
run() at line 95
status_code = self.do_run(input_, output_)
c:\users\mitchell\.local\venvs\poetry\lib\site-packages\poetry\console\applicat
ion.py in do_run() at line 60
return super().do_run(i, o)
c:\users\mitchell\.local\venvs\poetry\lib\site-packages\cleo\application.py in
do_run() at line 188
status_code = command.run(input_, output_)
c:\users\mitchell\.local\venvs\poetry\lib\site-packages\poetry\console\commands
\command.py in run() at line 24
return super(BaseCommand, self).run(i, o)
c:\users\mitchell\.local\venvs\poetry\lib\site-packages\cleo\commands\base_comm
and.py in run() at line 146
status_code = self.execute(input_, output_)
c:\users\mitchell\.local\venvs\poetry\lib\site-packages\cleo\commands\command.p
y in execute() at line 108
return self.handle()
c:\users\mitchell\.local\venvs\poetry\lib\site-packages\poetry\console\commands
\add.py in handle() at line 79
status = installer.run()
c:\users\mitchell\.local\venvs\poetry\lib\site-packages\poetry\installation\ins
taller.py in run() at line 53
self._do_install(local_repo)
c:\users\mitchell\.local\venvs\poetry\lib\site-packages\poetry\installation\ins
taller.py in _do_install() at line 207
self._execute(op)
c:\users\mitchell\.local\venvs\poetry\lib\site-packages\poetry\installation\ins
taller.py in _execute() at line 215
getattr(self, f'_execute_{method}')(operation)
c:\users\mitchell\.local\venvs\poetry\lib\site-packages\poetry\installation\ins
taller.py in _execute_install() at line 227
self._installer.install(operation.package)
c:\users\mitchell\.local\venvs\poetry\lib\site-packages\poetry\installation\pip
_installer.py in install() at line 17
self.run(*args)
c:\users\mitchell\.local\venvs\poetry\lib\site-packages\poetry\installation\pip
_installer.py in run() at line 30
return self._venv.run('pip', *args)
c:\users\mitchell\.local\venvs\poetry\lib\site-packages\poetry\utils\venv.py in
run() at line 81
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
C:\Users\mitchell\AppData\Local\Programs\Python\Python36-32\Lib\subprocess.py i
n check_output() at line 336
**kwargs).stdout
C:\Users\mitchell\AppData\Local\Programs\Python\Python36-32\Lib\subprocess.py i
n run() at line 403
with Popen(*popenargs, **kwargs) as process:
C:\Users\mitchell\AppData\Local\Programs\Python\Python36-32\Lib\subprocess.py i
n __init__() at line 709
restore_signals, start_new_session)
C:\Users\mitchell\AppData\Local\Programs\Python\Python36-32\Lib\subprocess.py i
n _execute_child() at line 997
startupinfo)
add [-D|--dev] [--optional] [--dry-run] [--] <name> (<name>)...
from poetry.
Between when I posted the original issue and now this seems to have been fixed as I'm no longer getting this error.
from poetry.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from poetry.
Related Issues (20)
- Make `[tool.poetry.scripts]` available from a pip installation HOT 4
- Requesting JSON Schema for `virtualenvs` in `poetry-core` HOT 8
- Cannot install torch on MacOS: poetry selects 2.3.0 which is not available on Apple Silicon HOT 2
- Multi-architecture wheels from the same source HOT 7
- 2.0.0 Release HOT 1
- Poetry failing to add Scipy to project HOT 3
- Pip does not work in poetry installation HOT 6
- Poetry doesn't use custom pyenv environment HOT 2
- Ability to specify a "target" for non-package mode
- Poetry version solving fails HOT 9
- Poetry Dependency Specification: platform manylinux2014_x86_64 not supported HOT 5
- `poetry install` fails with `IsADirectoryError [Errno 21] Is a directory: '/path/to/my-package' ` HOT 3
- All poetry commands fail with [Errno 2] No such file or directory: 'python' HOT 4
- Add flag to `poetry add` to allow the installation of the latest compatible version HOT 3
- `poetry shell` doesn't work with `mise` and `fish` shell, venv python is behind mise in path HOT 3
- changing local dependency to editable does not reinstall as editable dependency HOT 2
- the latest Poetry, Cannot recognize the new version of Python HOT 2
- extra depdency not included in lock file if platform being set HOT 3
- PermissionError during poetry lock when source is git, with virtualenvs.create=false HOT 4
- Add support for keyring as a subprocess subprocess (rather than keyring as an import) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poetry.