tactlabs / error-archive

All issues related to tact and tact labs work
0 stars 0 forks source link

Module has no attribute #301

Open Ananthu2oo3 opened 1 year ago

Ananthu2oo3 commented 1 year ago

Traceback (most recent call last): File "/home/deepak/tact/tactlabs_tasks/split_array.py", line 1, in import numpy as np File "/home/deepak/miniconda3/envs/py39/lib/python3.9/site-packages/numpy/init.py", line 140, in from . import core File "/home/deepak/miniconda3/envs/py39/lib/python3.9/site-packages/numpy/core/init.py", line 71, in from . import numerictypes as nt File "/home/deepak/miniconda3/envs/py39/lib/python3.9/site-packages/numpy/core/numerictypes.py", line 594, in _register_types() File "/home/deepak/miniconda3/envs/py39/lib/python3.9/site-packages/numpy/core/numerictypes.py", line 589, in _register_types numbers.Integral.register(integer) AttributeError: module 'numbers' has no attribute 'Integral'

Ananthu2oo3 commented 1 year ago

There was a file named numbers.py in the folder which conflict with numpy numbers module and renaming the file fixed it.