AOtools / aotools

A useful set of tools for Adaptive Optics in Python
GNU Lesser General Public License v3.0
109 stars 43 forks source link

pip aotools package dependency issue (numba) #59

Closed joncox123 closed 4 years ago

joncox123 commented 4 years ago

I did a 'pip install aotools', but after testing with 'import aotools', I received the error shown below. The solution was to do a 'pip install numba'. However, shouldn't this dependency be corrected with the pip package?

Python 3.7.5 (default, Nov 7 2019, 10:50:52) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import aotools Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.7/dist-packages/aotools/init.py", line 1, in from . import astronomy, functions, image_processing, wfs, turbulence, opticalpropagation File "/usr/local/lib/python3.7/dist-packages/aotools/turbulence/init.py", line 2, in from .infinitephasescreen import * File "/usr/local/lib/python3.7/dist-packages/aotools/turbulence/infinitephasescreen.py", line 418, in @numba.jit(nopython=True, parallel=True) AttributeError: 'NoneType' object has no attribute 'jit'

matthewtownson commented 4 years ago

Yes, this is a missing dependency for aotools now. Thanks for pointing this out, we will update the dependencies in the next week or so to prevent others from running into the same issue.

matthewtownson commented 4 years ago

Fixed in v1.0.4.