Git Product home page Git Product logo

Comments (13)

aphearin avatar aphearin commented on June 29, 2024

Weird. Could you try adding 'cython' to the install_requires field of setup.py?

from halotools.

duncandc avatar duncandc commented on June 29, 2024

no dice. same error.

from halotools.

eteq avatar eteq commented on June 29, 2024

@duncandc - that is strange. Is it possible you've got conflicting python installations? Like it thinks cython isn't installed because it installed it in a place it can't see?

Can you push the commit in question up to some branch somewhere so that I can separately see if I get the same error?

from halotools.

duncandc avatar duncandc commented on June 29, 2024

@eteq and @aphearin

see merge latest request.

from halotools.

aphearin avatar aphearin commented on June 29, 2024

Awesome. I'll test it asap.

from halotools.

aphearin avatar aphearin commented on June 29, 2024

Ok, so I checked out the mock_obs_devel branch that @duncandc has up on his fork. The following works:

python setup.py build
from halotools import mock_observables

However, this seems to be because the init.py files are empty. I tested this with the following changes:

To halotools/mock_observables/init.py, I added:
from .pair_counters import *

And to halotools/mock_observables/pair_counters/init.py, I added:
from .sinha_pairs import *

With only these changes to the code, when I try to import the code I get:
ImportError: No module named sinha_pairs_wrapper

This is a little perplexing, because the code apparently does compile and build. Any ideas @eteq ?

from halotools.

duncandc avatar duncandc commented on June 29, 2024

I have noticed this odd import behavior. The following works:

from halotools import mock_observables.pair_counters.sinha_pairs as pairs

Then you can count pairs with
pairs.npairs()

from halotools.

aphearin avatar aphearin commented on June 29, 2024

Huh. That's puzzling. Let's see if @eteq has experience with something like this before we merge.

from halotools.

aphearin avatar aphearin commented on June 29, 2024

Also, I have not handled multiple simultaneous PRs before. Since @duncandc submitted this PR, I have updated the master branch at least once, I think twice, with significant changes to the documentation. @eteq - is it safe to just use the github tools to merge directly, or should I locally clone from the branch on @duncandc 's fork, merge locally, and submit a new PR? What do y'all do in Astropy?

from halotools.

duncandc avatar duncandc commented on June 29, 2024

I can do it on my machine.

from halotools.

aphearin avatar aphearin commented on June 29, 2024

I don't mind doing it at all. I just want to know whether it's necessary to go through that rigamarole.

from halotools.

eteq avatar eteq commented on June 29, 2024

@duncandc - just so we're on the same page, you meant #63, right? (If you just type #63 into a github comment it creates the link automatically so there's no ambiguity). That's what it seems like above, but I wanted to make sure.

To answer @aphearin's question: if github is showing the "merge" button it's nearly always safe to merge (which is indeed the case for #63), because that means there are no files in conflict. If there is a conflict, the merge button is greyed out. In Astropy, the way we nearly always deal with that is that we have the submitter get the latest master and then do "git rebase master". That basically re-writes history so that the new branch seems to be starting from the current master (rather than a past master). The submitter will then have to deal with the conflicts as part of the rebase, but that's usually better because they usually know the code best.

The alternative is to have one of the maintainers manually merge the branch into a local copy of master, make sure it all works right, and then push that up to the github master. Github (usually) recognizes this (at least if you mention the PR by number in the merge commit, and possibly even if you don't...), and automatically records the PR as "merged". I usually only use this approach when there's some minor change that's missing but for whatever reason the original author isn't going to rebase in a timely manner, or if there's something hideously complicated and the original author doesn't know how to do the rebase.

from halotools.

eteq avatar eteq commented on June 29, 2024

Also, @duncandc and @aphearin - am I understanding right that the Cython building problem has gone away now? If so,you might consider closing this issue and moving the conversation to #63, just to make that clearer. Or if you think this is ready to go of course you can just merge it and close this anyway.

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.