Comments (6)
@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.
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.
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.
@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.
@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.
Mock_observables has been wiped clean. Let's start fresh, @duncandc .
from halotools.
Related Issues (20)
- TST: Use GitHub Actions
- MNT: Rename default branch from master to main
- CI is not running? HOT 2
- Very small bias in RR estimate for auto-correlation functions
- masking function issue with subhalo models HOT 3
- Fix bug in Zu&Mandelbaum2016 central occupation function
- installation failure -- cython? HOT 12
- Code for wp and tpcf that does weighting and jackknifing? HOT 1
- Zero halo_axisA values in halo catalog HOT 3
- Unexplainable NFW sampling discrepancy HOT 11
- All upid values are -1 when using SubhaloPhaseSpace HOT 1
- installation error with "use_2to3 is invalid" HOT 9
- Subhalo values not being populated in mock when using SubhaloPhaseSpace HOT 2
- pyproject.toml is not properly configured to build HOT 5
- Delete astropy-helpers
- Question on NFWPhaesSpace. HOT 2
- Could not build wheels for halotools, which is required to install pyproject.toml-based projects HOT 2
- Bug in mean_delta_sigma function for non-periodic-box
- Can halotools be installed as root? HOT 1
- Leauthaud11 HOD HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from halotools.