Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

UnsatisfiableError (numpy & matplotlib) #300

Closed
tcassanelli opened this issue Mar 9, 2018 · 3 comments
Closed

UnsatisfiableError (numpy & matplotlib) #300

tcassanelli opened this issue Mar 9, 2018 · 3 comments

Comments

@tcassanelli
Copy link

There is a new issue will trying to compile the docs on travis. The error is the following,

UnsatisfiableError: The following specifications were found to be in conflict:
  - numpy 1.14*
  - numpy stable*
Use "conda info <package>" to see the dependencies for each package.

Installing matplotlib with conda was unsuccessful, using pip instead.
Invalid requirement: 'stable*'

Traceback (most recent call last):
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/pip/_vendor/packaging/requirements.py", line 92, in __init__
    req = REQUIREMENT.parseString(requirement_string)
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 1617, in parseString
    raise exc
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 1607, in parseString
    loc, tokens = self._parse( instring, 0 )
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 3376, in parseImpl
    loc, exprtokens = e._parse( instring, loc, doActions )
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 1383, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/pip/_vendor/pyparsing.py", line 3164, in parseImpl
    raise ParseException(instring, loc, self.errmsg, self)
pip._vendor.pyparsing.ParseException: Expected stringEnd (at char 6), (line:1, col:7)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/pip/req/req_install.py", line 82, in __init__
    req = Requirement(req)
  File "/home/travis/miniconda/envs/test/lib/python3.6/site-packages/pip/_vendor/packaging/requirements.py", line 96, in __init__
    requirement_string[e.loc:e.loc + 8]))
pip._vendor.packaging.requirements.InvalidRequirement: Invalid requirement, parse error at "'*'"

Looked around and it seems like it is a conda problem. I tested several configurations between matplotlib and numpy versions with no success 🙁.
Perhaps is related to this issue in the astropy/ci-helpers.
You can see my output log files here under the "trying to solve the docs" commit.

@bsipocz
Copy link
Member

bsipocz commented Apr 5, 2018

Please try to remove numpy from your CONDA_DEPENDENCIES list, it's a known limitation with the current setup. astropy/ci-helpers#284

@tcassanelli
Copy link
Author

tcassanelli commented Apr 6, 2018

Thank you @bsipocz, that worked! 😃
There was another bug as well that I figured. After solving the CONDA_DEPENDENCIES my program failed in Linux travis machines (docs and macOS passing). I had to change the PIP_DEPENDENCIES as well adding the new sphinx-astropy package and coveralls, i.e.

PIP_DEPENDENCIES='coveralls sphinx-astropy'

@bsipocz
Copy link
Member

bsipocz commented Apr 7, 2018

I'm glad to hear that it solved the issue.

@bsipocz bsipocz closed this as completed Apr 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants