Giter VIP home page Giter VIP logo

Comments (10)

richardotis avatar richardotis commented on May 26, 2024

@mattjj I can reproduce the same error we talked about earlier (#25) on ReadTheDocs, and locally. If I pre-install numpy and scipy into a clean environment (for time's sake) and then run python setup.py install on pycalphad, I get the same error complaining about something in autograd's setup.py.

from pycalphad.

mattjj avatar mattjj commented on May 26, 2024

Just to clarify, the problem is that the name __builtins__ is defined but it's a dict instead of a module, right?

It sounds like __builtins__ is an implementation detail and relying on it is not good form. I tried to remedy this problem in the autograd setup.py file but failed and gave up. I'll let you know if I get it working but I'm not sure when I'll get a chance. Let me know if you make any progress on your end.

Do you know why it's failing in some environments but not on our Travis builds (which check 2.7 and 3.5)?

from pycalphad.

mattjj avatar mattjj commented on May 26, 2024

Oh hey check this out and, even better, the doc page it links to.

from pycalphad.

mattjj avatar mattjj commented on May 26, 2024

I think this could be a good solution! I'm going to try it.

from pycalphad.

mattjj avatar mattjj commented on May 26, 2024

Is it feasible for you to try the builtins-when-setup-is-not-main branch of autograd? I applied the fix linked above and I think it might solve your build problems.

from pycalphad.

richardotis avatar richardotis commented on May 26, 2024

I'll give it a shot.

from pycalphad.

richardotis avatar richardotis commented on May 26, 2024

I just installed that branch into a clean environment with all of pycalphad's other dependencies and python setup.py install worked. If I try to do the same thing against the autograd on PyPI, it fails. However, if I install autograd's master branch, it also works. I'm thinking it's more a function of being preinstalled (and thus hooking into something setuptools is doing). I'm not sure there's a way to figure out if your fix works without involving PyPI somehow.

I'm going to play with the requirements.txt file on RTD and see if I can't bypass this issue by preinstalling autograd.

from pycalphad.

mattjj avatar mattjj commented on May 26, 2024

I'm pretty confident that new setup.py will fix the error you were running into, and it didn't break anything in autograd, so I just merged it into the master branch.

from pycalphad.

richardotis avatar richardotis commented on May 26, 2024

I updated the docs/requirements.txt file to include autograd in 98d09d7 and (after fixing a bug in 8f535c7) now RTD appears to build correctly. Thanks again for the help @mattjj

from pycalphad.

mattjj avatar mattjj commented on May 26, 2024

Happy to help! Cool project!

from pycalphad.

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.