isochrones icon indicating copy to clipboard operation
isochrones copied to clipboard

nosetests ran 0 tests

Open roygomel opened this issue 4 years ago • 9 comments

Dear Timothy,

I am trying to install isochrones in windows 10. After implementing:

conda create -n isochrones numpy numba nose pytables pandas conda activate isochrones pip install isochrones

I ran the following test:

nosetests isochrones

and got the following message:

Ran 0 tests in 0.000s OK

Is it fine? Thanks a lot, Roy

roygomel avatar Jun 22 '20 13:06 roygomel

I haven't tested on windows; you're a guinea pig! One thing may be a different nosetests behavior (i.e., it is not finding the package). You can try to clone the repository, change into it, and run pytest, and see if that works? Chances are there may be other windows issues; would be cool if you found them!

On Mon, Jun 22, 2020 at 6:01 AM RoyGomel [email protected] wrote:

Dear Timothy,

I am trying to install isochrones in windows 10. After implementing:

conda create -n isochrones numpy numba nose pytables pandas conda activate isochrones pip install isochrones

I ran the following test:

nosetests isochrones

and got the following message:

Ran 0 tests in 0.000s OK

Is it fine? Thanks a lot, Roy

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/timothydmorton/isochrones/issues/130, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOOXW3E7KES57JBP2AVQYLRX5I2LANCNFSM4OESEYPA .

-- about.me/tim.morton

timothydmorton avatar Jun 22 '20 16:06 timothydmorton

Dear Timothy,

I installed Ubuntu18 (in a virtual-machine environment that is hosted by windows 10) and tried installing isochrones. Few seconds after running "nosetests", it suddenly stopped (i.e. killed), as you can see in the terminal output given below.

Could you please help me overcome this issue? Thanks a lot, Roy

(isochrones) roygomel@ubuntu:~$ nosetests isochrones /home/roygomel/anaconda3/envs/isochrones/lib/python3.8/site-packages/isochrones/tests/test_fits.py:6: FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead. from pandas.util.testing import assert_frame_equal ...Killed

roygomel avatar Jun 25 '20 14:06 roygomel

I'd like to bump this as I'm getting the same problem. Also when trying the quickstart, it also breaks down eventually with a Killed...

jvines avatar Jan 11 '21 21:01 jvines

Can either of you try pytest -v instead of nosetests, to get a better idea of where this failure is happening? @cecul is also starting to help me look into some of these outstanding issues, so he will explore, too.

timothydmorton avatar Jan 11 '21 23:01 timothydmorton

with pytest isochrones I get a similar problem. I raised a separate issue recently. I think there's a problem when downloading the files as I'm running mist_initialize with the python debugger and eventually I get this:

Screen Shot 2021-01-11 at 21 58 56

Finally it gets stuck here before terminating

Screen Shot 2021-01-11 at 21 59 36

I'll try pytest -v next and update you.

My next move will be to copy the .isochrones folder from a working installation and see how it goes

jvines avatar Jan 12 '21 01:01 jvines

Quick update: Copying the isochrones folder from a working installation fixed the problem.

jvines avatar Jan 12 '21 04:01 jvines

See if running the mist_initialize.py script (installed with the package) works for you to set up the files right for you from scratch.

timothydmorton avatar Jan 12 '21 18:01 timothydmorton

It didn't work

jvines avatar Jan 13 '21 11:01 jvines

in WSL specifically mention the tests folder like this: nosetests ./tests/*.py

diman82 avatar Mar 29 '22 09:03 diman82