Git Product home page Git Product logo

Comments (6)

duncandc avatar duncandc commented on June 29, 2024

@aphearin @eteq I get the same problem when I try to import from my halotools directory. This is not a problem with the ckdtree. Any cython package will not import unless you are importing from a "built" halotools. I find this very annoying, but I am not sure what the best way to fix this is.

Just to check. @aphearin, if you run "python setup.py build" and "cd" into the build directory, can you import mock_observables?

from halotools.

aphearin avatar aphearin commented on June 29, 2024

Nope. The code does not build on my machine. When I try to build it I get:

Parent module 'halotools.mock_observables.pair_counters.cpairs' not found while handling absolute import

Do you not get this, @duncandc ?

from halotools.

aphearin avatar aphearin commented on June 29, 2024

It's worth noting here that this exact same error shows up in the RTD build failure, so @eteq - this may be the same error causing the docs problems:
https://readthedocs.org/builds/halotools/2739488/

from halotools.

eteq avatar eteq commented on June 29, 2024

@aphearin - this was strange to me... when I try to build commit ef91365 (which I think is the last one before you wiped the mock_observables ), it builds fine for me locally...

from halotools.

eteq avatar eteq commented on June 29, 2024

@duncandc re: the building thing: I'm not sure what you're saying you can't do that's annoying: if it's C code it has to be compiled, otherwise it won't work. So what's the alternative to it being built? Or do you mean you want to be able to import directly from the source code directory? If the latter, there's two options: I usually just cd into "build/lib.xxx" and then test it from in there - basically the same as doing it in source aside from the need to "python setup.py build" to get it in there (which you need anyway if working on c code). Or, if you really want it in the source directory, you can do this: python setup.py build_ext --inplace build which will copy over the "built" C extensions to the relevant places in the main source tree. That's a bit more fragile because sometimes it gets confused about what's actually been built, but it usually works fine according to other people I know who use it.

from halotools.

aphearin avatar aphearin commented on June 29, 2024

Mock_observables has been wiped clean. Let's start fresh, @duncandc .

from halotools.

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.