Code Monkey home page Code Monkey logo

Comments (4)

sdispater avatar sdispater commented on August 16, 2024

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.

monkeez avatar monkeez commented on August 16, 2024

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.

monkeez avatar monkeez commented on August 16, 2024

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.

github-actions avatar github-actions commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.