GithubHelp home page GithubHelp logo

Comments (16)

kthyng avatar kthyng commented on August 17, 2024 1

Ok I think everything is ok now (just checked again), so I am going to close this.

from cmocean.

Mascagni-ML avatar Mascagni-ML commented on August 17, 2024

I found the problem.
In line 30 of the file setup.py it is called: "requirements.txt"; but in cmocean-0.2.1.tar.gz the file is named: "requires.txt"

from cmocean.

tacaswell avatar tacaswell commented on August 17, 2024

@Mascagni-ML Thanks for the bug report! Would you be interested in opening a pull request to fix this?

https://guides.github.com/introduction/flow/ and http://matplotlib.org/devel/gitwash/git_development.html

are good resources to get started (the later applies to matplotlib, but I am assuming that @kthyng is using similar processes/workflows)

from cmocean.

ocehugo avatar ocehugo commented on August 17, 2024

@Mascagni-ML @tacaswell #46

from cmocean.

dkauf42 avatar dkauf42 commented on August 17, 2024

Thanks for working out this fix! It seems like this issue prevents any use of the cmocean package until it is resolved.. is that correct? I would like to use cmocean in the pycharm IDE, but it won't install because of this issue (pycharm installs cmocean by executing the command "pip install --user cmocean"). Am I right in assuming that nothing can be done with cmocean until this fix is incorporated into the online (I'm not sure what to call it) version?

from cmocean.

kthyng avatar kthyng commented on August 17, 2024

I'm sorry I haven't been able to spend devote any time to cmocean for a month or two — I'm really hoping to in the next couple of weeks. But in the meantime, I'm not familiar with pycharm, but you could try just cloning cmocean and then install locally with 'pip install .' while in the cmocean directory.

from cmocean.

ocehugo avatar ocehugo commented on August 17, 2024

@dkauf42 in the meantime you could just add this to pycharm pip command:

pip install git+mybranch

where mybranch is my cmocean branch address in github.

from cmocean.

dkauf42 avatar dkauf42 commented on August 17, 2024

Thank you both @kthyng and @ocehugo! I managed to get it working by cloning cmocean into the pycharm packages directory and then installing locally using the pip version that matches my pycharm interpreter, so:

pip3.4 install .

from cmocean.

alpha-beta-soup avatar alpha-beta-soup commented on August 17, 2024

Just to clarify @ocehugo, that's

pip install https://github.com/ocehugo/cmocean/archive/master.zip

Or if you want it inside a pip requirements.txt, the following should work:

git+git://github.com/ocehugo/cmocean.git#egg=cmocean

Thanks for the neat colours.

from cmocean.

kthyng avatar kthyng commented on August 17, 2024

After incorporating some PRs I just tried to update the package on PyPI but had this issue when testing it: Server response (400): Invalid version, cannot use PEP 440 local versions on PyPI.

Anyone know about this? I updated the version to 0.2.2 but I think it also now gets information from versioneer.

from cmocean.

kthyng avatar kthyng commented on August 17, 2024

Also getting confused about the travis ci builds that are failing — maybe someone can help me out a bit here. Maybe @tacaswell or @ocefpaf or others?

from cmocean.

ocefpaf avatar ocefpaf commented on August 17, 2024

Anyone know about this? I updated the version to 0.2.2 but I think it also now gets information from versioneer.

I usually avoid versioneer for small projects. It adds a lot of boilerplate code.

Also getting confused about the travis ci builds that are failing

https://travis-ci.org/matplotlib/cmocean/builds/116256635 says

Could not find .travis.yml, using standard configuration.

and somehow that commit does not have that file. See https://github.com/matplotlib/cmocean/tree/7236f5eb58a0a715e8a25bb188252a57035489a3

Travis was introduced in #41 . Maybe you need to rebase against master.

from cmocean.

ocehugo avatar ocehugo commented on August 17, 2024

Maybe you need to update some files ? I saw that before @ocefpaf push a commit with a manifest but versioneer handles the manifest file (as far as I can remember WRONG - distutils does that). So maybe it's just a matter of updating the manifest.in or alike, but i'm not a pypi guru.

from cmocean.

ocehugo avatar ocehugo commented on August 17, 2024

@kthyng also take a look on previous commits. I just found that the repo is about ~150mb. Looks like in the previous commits there were some png and pdf files, which make cloning a bit slow.

from cmocean.

kthyng avatar kthyng commented on August 17, 2024

Update: Travis is currently compiling ok.

Next: I will try PyPI again.

Further next: I will try to reduce the size of the repo. I've realized this for awhile but hadn't acted on it. I can go through and remove the history of some larger files from the past, but I need to figure out how best to do it.

from cmocean.

kthyng avatar kthyng commented on August 17, 2024

I feel like I am surely jinxing myself, but I think it is working!

Try "pip install cmocean" and let me know if it works!

from cmocean.

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.