question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SolverProblemError when trying to add tensorflow with poetry 0.10.2

See original GitHub issue

I bumped into a problem today. Not sure what’s causing it, but I can reproduce it in a blank project:

munshkr@munshkr-x260:~$ poetry new bla
Created package bla in bla
munshkr@munshkr-x260:~$ cd bla/
munshkr@munshkr-x260:~/bla$ poetry add tensorflow
Creating virtualenv bla-py3.6 in /home/munshkr/.cache/pypoetry/virtualenvs
Using version ^1.8 for tensorflow

Updating dependencies
Resolving dependencies... (0.0s)
                                                                                               
[SolverProblemError]                                                            
Because no versions of tensorflow match >1.8,<2.0                                            
 and tensorflow (1.8.0) depends on tensorboard (>=1.8.0,<1.9.0), tensorflow (>=1.8,<2.0) re  
quires tensorboard (>=1.8.0,<1.9.0).                                                         
Because tensorboard (1.8.0) requires Python >= 2.7, != 3.0.*, != 3.1.*                       
 and no versions of tensorboard match >1.8.0,<1.9.0, tensorboard is forbidden.               
Thus, tensorflow is forbidden.                                                               
So, because bla depends on tensorflow (^1.8), version solving failed.    

Running the same command with -vvv shows the following:

PyPI: 37 packages found for tensorflow *
Using version ^1.8 for tensorflow

Updating dependencies
Resolving dependencies...
   1: fact: foo is 0.1.0
   1: derived: foo
   1: fact: foo depends on tensorflow (^1.8)
   1: fact: foo depends on pytest (^3.0)
   1: selecting foo (0.1.0)
   1: derived: pytest (^3.0)
   1: derived: tensorflow (^1.8)
PyPI: 27 packages found for pytest >=3.0,<4.0
PyPI: 1 packages found for tensorflow >=1.8,<2.0
   1: fact: tensorflow (1.8.0) depends on wheel (>=0.26)
   1: fact: tensorflow (1.8.0) depends on grpcio (>=1.8.6)
   1: fact: tensorflow (1.8.0) depends on termcolor (>=1.1.0)
   1: fact: tensorflow (1.8.0) depends on tensorboard (>=1.8.0,<1.9.0)
   1: fact: tensorflow (1.8.0) depends on protobuf (>=3.4.0)
   1: fact: tensorflow (1.8.0) depends on six (>=1.10.0)
   1: fact: tensorflow (1.8.0) depends on numpy (>=1.13.3)
   1: fact: tensorflow (1.8.0) depends on gast (>=0.2.0)
   1: fact: tensorflow (1.8.0) depends on astor (>=0.6.0)
   1: fact: tensorflow (1.8.0) depends on absl-py (>=0.1.6)
   1: selecting tensorflow (1.8.0)
   1: derived: absl-py (>=0.1.6)
   1: derived: astor (>=0.6.0)
   1: derived: gast (>=0.2.0)
   1: derived: numpy (>=1.13.3)
   1: derived: six (>=1.10.0)
   1: derived: protobuf (>=3.4.0)
   1: derived: tensorboard (>=1.8.0,<1.9.0)
   1: derived: termcolor (>=1.1.0)
   1: derived: grpcio (>=1.8.6)
   1: derived: wheel (>=0.26)
PyPI: No release information found for absl-py-0.0, skipping
PyPI: 11 packages found for absl-py >=0.1.6
PyPI: 3 packages found for astor >=0.6.0
PyPI: 1 packages found for gast >=0.2.0
PyPI: No release information found for numpy-0.9.6, skipping
PyPI: No release information found for numpy-0.9.8, skipping
PyPI: No release information found for numpy-1.0.3, skipping
PyPI: No release information found for numpy-1.0.4, skipping
PyPI: No release information found for numpy-1.0b1, skipping
PyPI: No release information found for numpy-1.0b4, skipping
PyPI: No release information found for numpy-1.0b5, skipping
PyPI: No release information found for numpy-1.0rc1, skipping
PyPI: No release information found for numpy-1.0rc2, skipping
PyPI: No release information found for numpy-1.0rc3, skipping
PyPI: No release information found for numpy-1.1.1, skipping
PyPI: No release information found for numpy-1.2.0, skipping
PyPI: No release information found for numpy-1.2.1, skipping
PyPI: No release information found for numpy-1.4.0, skipping
PyPI: 6 packages found for numpy >=1.13.3
PyPI: 2 packages found for six >=1.10.0
PyPI: 5 packages found for protobuf >=3.4.0
PyPI: 1 packages found for tensorboard >=1.8.0,<1.9.0
PyPI: 1 packages found for termcolor >=1.1.0
PyPI: No release information found for grpcio-0.12.0b8, skipping
PyPI: No release information found for grpcio-0.3.0, skipping
PyPI: No release information found for grpcio-0.4.0, skipping
PyPI: 19 packages found for grpcio >=1.8.6
PyPI: 8 packages found for wheel >=0.26
   1: selecting gast (0.2.0)
   1: fact: tensorboard (1.8.0) requires Python >= 2.7, != 3.0.*, != 3.1.*
   1: derived: not tensorboard (1.8.0)
PyPI: 0 packages found for tensorboard >1.8.0,<1.9.0
   1: fact: no versions of tensorboard match >1.8.0,<1.9.0
   1: conflict: no versions of tensorboard match >1.8.0,<1.9.0
   1: derived: not tensorboard (>1.8.0,<1.9.0)
   1: conflict: tensorboard (1.8.0) requires Python >= 2.7, != 3.0.*, != 3.1.*
   1: ! tensorboard (1.8.0) is partially satisfied by not tensorboard (>1.8.0,<1.9.0)
   1: ! which is caused by "no versions of tensorboard match >1.8.0,<1.9.0"
   1: ! thus: tensorboard is forbidden
   1: fact: tensorboard is forbidden
   1: derived: not tensorboard (>=1.8.0,<1.9.0)
   1: derived: not tensorflow (1.8.0)
PyPI: 0 packages found for tensorflow >1.8,<2.0
   1: fact: no versions of tensorflow match >1.8,<2.0
   1: conflict: no versions of tensorflow match >1.8,<2.0
   1: ! tensorflow (>1.8,<2.0) is partially satisfied by not tensorflow (1.8.0)
   1: ! which is caused by "tensorflow (1.8.0) depends on tensorboard (>=1.8.0,<1.9.0)"
   1: ! thus: tensorflow (>=1.8,<2.0) requires tensorboard (>=1.8.0,<1.9.0)
   1: ! not tensorboard (>=1.8.0,<1.9.0) is satisfied by not tensorboard (>=1.8.0,<1.9.0)
   1: ! which is caused by "tensorboard is forbidden"
   1: ! thus: tensorflow is forbidden
   1: ! tensorflow (>=1.8,<2.0) is satisfied by tensorflow (^1.8)
   1: ! which is caused by "foo depends on tensorflow (^1.8)"
   1: ! thus: version solving failed
   1: Version solving took 0.097 seconds.
   1: Tried 1 solutions.

...

I tried deleting the .cache/pypoetry directory but the error keeps ocurring. Poetry version is 0.10.2 (installed via pip)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sdispatercommented, Jun 4, 2018

This should be fixed in the latest release (0.10.3)

0reactions
Yevgnencommented, Dec 19, 2019

Encounter the same problem using poetry 1.0.0 when install tensorboard.

douban: 0 packages found for tensorboard >=2.1.0,<3.0.0
thu: 0 packages found for tensorboard >=2.1.0,<3.0.0
ustc: 0 packages found for tensorboard >=2.1.0,<3.0.0
   1: fact: no versions of tensorboard match >=2.1.0,<3.0.0
   1: conflict: no versions of tensorboard match >=2.1.0,<3.0.0
   1: ! tensorboard (^2.1.0) is satisfied by tensorboard (^2.1.0)
   1: ! which is caused by "env depends on tensorboard (^2.1.0)"
   1: ! thus: version solving failed
   1: Version solving took 3.362 seconds.
   1: Tried 1 solutions.

I found that poetry may find or not find some packages during multiple runs when the same toml while I can install the package from any of the indexes. If I run poetry update again, it may fail. And some runs after, it may work again and find the package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SolverProblemError when trying to add tensorflow with poetry ...
Thus, tensorflow is forbidden. So, because bla depends on tensorflow (^1.8), version solving failed. Running the same command with -vvv shows ...
Read more >
python - SolverProblemError on install Tensorfow with poetry
when i add tensoflow with poetry (poetry add tensorflow) i get this error : Using version ^2.7.0 for tensorflow Updating dependencies ...
Read more >
TensorFlow Agents
Reinforcement Learning with TensorFlow. Agents makes designing, implementing and testing new RL algorithms easier, by providing well tested ...
Read more >
Tensorflow in Repl it - Python - The freeCodeCamp Forum
I can't use the tensorflow with repl it, the error bellow: → python3 -m poetry add tensorflow. Using version ^2.8.0 for tensorflow.
Read more >
How to correctly install Keras and Tensorflow - ActiveState
Click to install Keras and Tensorflow together using pip. ... If you want to use your GPU to the training, you'll need to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found