ratt-ru / CubiCal

A fast radio interferometric calibration suite.
GNU General Public License v2.0
18 stars 13 forks source link

module 'numba' has no attribute 'set_num_threads' #426

Closed viralp closed 3 years ago

viralp commented 3 years ago

Hi I am getting the following numba error. ddcal_0.log

INFO 12:37:18 - main [0.9 6.1 10.2Gb] Exiting with exception: AttributeError(module 'numba' has no attribute 'set_num_threads') Traceback (most recent call last): File "/home/parekh/CubiCal/cubical/main.py", line 544, in main max_workers=chunks_per_tile) File "/home/parekh/CubiCal/cubical/workers.py", line 131, in setup_parallelism numba.set_num_threads(int(nthread)) AttributeError: module 'numba' has no attribute 'set_num_threads'

o-smirnov commented 3 years ago

Yep, looks familiar: https://github.com/ratt-ru/CubiCal/issues/425

I think it's a py2-only issue. Can you make a virtualenv with python3 and try again?

JSKenyon commented 3 years ago

This error arises because Numba no longer supports Python 2, so changes to the thread mechanisms won't propagate back cleanly. Hence me being on-board with dropping Python 2 support in CubiCal.

o-smirnov commented 3 years ago

Let's assume this works with py3, and declare it a duplicate of #425...