matplotlib/cmocean

issue with pip install (python2)

rbeucher opened this issue · 6 comments

Hi,

Pip install fails for python2 install because of missing Readme file:

long_description=open('README.md').read(),
sudo pip2 install cmocean
Collecting cmocean
  Downloading https://files.pythonhosted.org/packages/0a/da/302ed3bb245833042961138521e4fa3cb9670aef40d90f32a9a1da83e7a5/cmocean-1.2.tar.gz (260kB)
    100% |████████████████████████████████| 266kB 2.5MB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-kSlGW9/cmocean/setup.py", line 35, in <module>
        long_description=open('README.md').read(),
    IOError: [Errno 2] No such file or directory: 'README.md'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-kSlGW9/cmocean/

Ah, the issue is

include README.rst

which is the wrong file!

@kthyng we probably need to fix that and then do a micro release to fix it.

Building a python2 wheel (I was confused and thought it made universal wheels by default) and uploading that is a short-term work around. There is a python3 wheel up which is why this worked when I tested it at scipy

@rbeucher Updating to python3 would also work around this problem.

@tacaswell

Yes I think the pb comes from the python2 wheel. Python3 is fine. My pb is that cmocean is used as a dependency in our code and we have not fully transitioned to python2. I can pull the source from the github repo as a temporary workaround.

There is not a py2 wheel, you are getting the tarball instead (which is where the file is missing).

Hi, I am having the same issue. Has a fix been implemented for this, or can you suggest a way to circumvent it?

Hi @kkozarev

You can pull the sources from github and do a pip install on it.

I have changed from .rst to .md so hopefully this isn't an issue anymore. I will close this but feel free to comment if there is still a problem.