BayesFlare / bayesflare

A python module to detect stellar flares using Bayesian model comparison
GNU General Public License v2.0
7 stars 4 forks source link

import problem #7

Closed arizzuto closed 7 years ago

arizzuto commented 8 years ago

Hello,

when I try to import the package I get the following error, I'm running it on a Mac:

import bayesflare Traceback (most recent call last): File "", line 1, in File "/Users/aaron/anaconda/lib/python2.7/site-packages/bayesflare/init.py", line 36, in from .models import Model, Flare, Transit, Expdecay, Impulse, Gaussian, Step, ModelCurve File "/Users/aaron/anaconda/lib/python2.7/site-packages/bayesflare/models/init.py", line 5, in from .model import Model, Flare, Transit, Expdecay, Impulse, Gaussian, Step, ModelCurve File "/Users/aaron/anaconda/lib/python2.7/site-packages/bayesflare/models/model.py", line 4, in from ..stats.general import logminus File "/Users/aaron/anaconda/lib/python2.7/site-packages/bayesflare/stats/init.py", line 11, in from .general import * ImportError: No module named general

transientlunatic commented 8 years ago

Hi, Can I check if you installed from master, or from one of the releases?

arizzuto commented 8 years ago

Hello, I tried it with the latest release, and got the same result with a pip install.

On Jul 7, 2016, at 7:38 AM, Daniel Williams notifications@github.com wrote:

Hi, Can I check if you installed from master, or from one of the releases?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

transientlunatic commented 8 years ago

Okay, so I think this problem has been fixed on master, and just hasn't made its way into a release.

Can you try installing from master and see if that works? I think this is a problem with Cython on Mac.

arizzuto commented 8 years ago

I tried with a clone of master and got the same result. Note that to get "python setup.py install" to work I had to add the following line to the setup.py script inside the setup() call:

include_dirs=[numpy.get_include()]

mattpitkin commented 7 years ago

I think (after all this time) I've solved the issue with #8. @arizzuto - I'm not sure if you're at all interested in this anymore seeing as we've taken so long to solve it, but if you want to give the fix a try please let us know if it works for you.

mattpitkin commented 7 years ago

This issue should hopefully be fixed with #8, which has now been merged into master.