poetry: Update crashes

  • [x ] I am on the latest Poetry version.
  • [ x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [ x] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • Archlinux
  • Poetry 0.12.16

Issue

   1: derived: botocore (>=1.12.175,<1.13.0)
PyPI: 2 packages found for s3transfer >=0.2.0,<0.3.0
PyPI: 7 packages found for jmespath >=0.7.1,<1.0.0
PyPI: No release information found for botocore-1.4.45, skipping
PyPI: 1 packages found for botocore >=1.12.175,<1.13.0
PyPI: Getting info for botocore (1.12.175) from PyPI
PyPI: No dependencies found, downloading archives
PyPI: Downloading wheel: botocore-1.12.175-py2.py3-none-any.whl
   1: fact: botocore (1.12.175) depends on python-dateutil (>=2.1,<3.0.0)
   1: fact: botocore (1.12.175) depends on jmespath (>=0.7.1,<1.0.0)
   1: fact: botocore (1.12.175) depends on docutils (>=0.10)
   1: fact: botocore (1.12.175) depends on urllib3 (>=1.20,<1.26)
   1: selecting botocore (1.12.175)
   1: derived: docutils (>=0.10)
PyPI: 5 packages found for docutils >=0.10
PyPI: Getting info for s3transfer (0.2.1) from PyPI
PyPI: No dependencies found, downloading archives
PyPI: Downloading wheel: s3transfer-0.2.1-py2.py3-none-any.whl
   1: fact: s3transfer (0.2.1) depends on botocore (>=1.12.36,<2.0.0)
   1: selecting s3transfer (0.2.1)
PyPI: Getting info for docutils (0.14) from PyPI
PyPI: No dependencies found, downloading archives
PyPI: Downloading wheel: docutils-0.14-py2-none-any.whl
PyPI: Downloading wheel: docutils-0.14-py3-none-any.whl
   1: selecting docutils (0.14)
PyPI: Getting info for jmespath (0.9.4) from PyPI
PyPI: No dependencies found, downloading archives
PyPI: Downloading wheel: jmespath-0.9.4-py2.py3-none-any.whl
   1: selecting jmespath (0.9.4)
   1: Version solving took 121.038 seconds.
   1: Tried 1 solutions.

Writing lock file


Package operations: 1 install, 4 updates, 0 removals

  - Installing wheel (0.33.4)
  - Updating torch (1.1.0 -> 1.1.0.post2)
                                                                                                                                                                                                
[EnvCommandError]                                                                                                                                                                
Command ['/home/magnus/.cache/pypoetry/virtualenvs/document-classification-py3.7/bin/python', '-m', 'pip', 'install', '--no-deps', '-U', 'torch==1.1.0.post2'] errored with the following output:   
Collecting torch==1.1.0.post2                                                                                                                                                                 
  Could not find a version that satisfies the requirement torch==1.1.0.post2 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 0.4.1, 0.4.1.post2, 1.0.0, 1.0.1, 1.0.1.post2, 1.1.0)           
No matching distribution found for torch==1.1.0.post2                                                                                                                                         
You are using pip version 18.1, however version 19.1.1 is available.                                                                                                                          
You should consider upgrading via the 'pip install --upgrade pip' command.                                                                                                                    
                                                                                                                                                                                                
Exception trace:
 /usr/lib/poetry/poetry/_vendor/py3.7/cleo/application.py in run() at line 94
   status_code = self.do_run(input_, output_)
 /usr/lib/poetry/poetry/console/application.py in do_run() at line 88
   return super(Application, self).do_run(i, o)
 /usr/lib/poetry/poetry/_vendor/py3.7/cleo/application.py in do_run() at line 197
   status_code = command.run(input_, output_)
 /usr/lib/poetry/poetry/console/commands/command.py in run() at line 77
   return super(BaseCommand, self).run(i, o)
 /usr/lib/poetry/poetry/_vendor/py3.7/cleo/commands/base_command.py in run() at line 146
   status_code = self.execute(input_, output_)
 /usr/lib/poetry/poetry/_vendor/py3.7/cleo/commands/command.py in execute() at line 107
   return self.handle()
 /usr/lib/poetry/poetry/console/commands/update.py in handle() at line 41
   return installer.run()
 /usr/lib/poetry/poetry/installation/installer.py in run() at line 73
   self._do_install(local_repo)
 /usr/lib/poetry/poetry/installation/installer.py in _do_install() at line 290
   self._execute(op)
 /usr/lib/poetry/poetry/installation/installer.py in _execute() at line 306
   getattr(self, "_execute_{}".format(method))(operation)
 /usr/lib/poetry/poetry/installation/installer.py in _execute_update() at line 361
   self._installer.update(source, target)
 /usr/lib/poetry/poetry/installation/pip_installer.py in update() at line 94
   self.install(target, update=True)
 /usr/lib/poetry/poetry/installation/pip_installer.py in install() at line 91
   self.run(*args)
 /usr/lib/poetry/poetry/installation/pip_installer.py in run() at line 112
   return self._env.run("python", "-m", "pip", *args, **kwargs)
 /usr/lib/poetry/poetry/utils/env.py in run() at line 536
   return super(VirtualEnv, self).run(bin, *args, **kwargs)
 /usr/lib/poetry/poetry/utils/env.py in run() at line 385
   raise EnvCommandError(e)

update [--no-dev] [--dry-run] [--lock] [--] [<packages>]...

(document-classification-py3.7) [magnus@arch document-classification]$ 


My toml thingy

....
[tool.poetry.dependencies]
python = "^3.7"
jupyterlab = "^0.35.4"
click = "^7.0"
tqdm = "^4.32.1"
lumi = { git = "git@gitlab.com:luminovo/lumi.git", branch = "master" }
torch = "^1.1"
torchvision = "^0.2.2"
requests = "^2.22"
joblib = "^0.13.2"
pyocr = "^0.7.0"
pytorch-pretrained-bert = "^0.6.2"
scipy = "^1.3"
...

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 18 (2 by maintainers)

Most upvoted comments

I’m also getting No matching distribution found for docutils. Maybe the problem is with .post versions?

[EnvCommandError]
Command ['/Users/wagneraugusto/.pyenv/versions/3.6.8/envs/poetry_lab/bin/python', '-m', 'pip', 'install', '--no-deps', 'docutils==0.15.1'] errored with the followi
ng return code 1, and output:
Collecting docutils==0.15.1
  Could not find a version that satisfies the requirement docutils==0.15.1 (from versions: 0.3, 0.3.5, 0.3.7, 0.3.9, 0.4, 0.5, 0.6, 0.7, 0.8, 0.8.1, 0.9, 0.9.1, 0.
10, 0.11, 0.12, 0.13.1, 0.14rc1, 0.14rc2, 0.14, 0.15, 0.15.1.post1)
No matching distribution found for docutils==0.15.1
You are using pip version 18.1, however version 19.2.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Fixing the version to 1.1 instead of ^1.1 works for me.

On 26. Jun 2019, at 00:54, Adithya Balaji notifications@github.com wrote:

A temporary workaround would be much appreciated.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.