Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3.8 numpy==1.21.5 numba==0.55.1: ImportError: numpy.core.multiarray failed to import #867

Closed
OrangeSodahub opened this issue Mar 14, 2022 · 11 comments
Labels

Comments

@OrangeSodahub
Copy link
Contributor

$ python demo.py --cfg_file cfgs/kitti_models/pv_rcnn.yaml     --ckpt pv_rcnn_8369.pth     --data_path data/kitti/training/velodyne/000000.bin
RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
Traceback (most recent call last):
  File "demo.py", line 18, in <module>
    from pcdet.datasets import DatasetTemplate
  File "/home/zonlin/IPP/OpenPCDet/pcdet/datasets/__init__.py", line 7, in <module>
    from .dataset import DatasetTemplate
  File "/home/zonlin/IPP/OpenPCDet/pcdet/datasets/dataset.py", line 14, in <module>
    from augmentor.data_augmentor import DataAugmentor
  File "/home/zonlin/IPP/OpenPCDet/pcdet/datasets/augmentor/data_augmentor.py", line 11, in <module>
    import augmentor_utils, database_sampler
  File "/home/zonlin/IPP/OpenPCDet/pcdet/datasets/augmentor/database_sampler.py", line 6, in <module>
    import SharedArray
ImportError: numpy.core.multiarray failed to import

When I installed numpy==1.21.5 then it tells me numpy.core.multiarray failed to import
When I upgraded numpy to 1.22 then it tells me numba requires numpy<1.22
How can I solve this? Please.......

@LouisSF
Copy link

LouisSF commented Mar 15, 2022

Hey, I'm not sure this will solve the issue but I am using numba 0.54.1 and numpy 1.19.2 and I have no such problem on my end, so maybe try these versions. Hope it will work !

@OrangeSodahub
Copy link
Contributor Author

Hey, I'm not sure this will solve the issue but I am using numba 0.54.1 and numpy 1.19.2 and I have no such problem on my end, so maybe try these versions. Hope it will work !

I have solved this problem. That's degrade the 'SharedArray' package

@daeunni
Copy link

daeunni commented Mar 22, 2022

Hey, I'm not sure this will solve the issue but I am using numba 0.54.1 and numpy 1.19.2 and I have no such problem on my end, so maybe try these versions. Hope it will work !

I have solved this problem. That's degrade the 'SharedArray' package

hey, what's your 'SharedArray' package version? i have same preoblem with you

@OrangeSodahub
Copy link
Contributor Author

Hey, I'm not sure this will solve the issue but I am using numba 0.54.1 and numpy 1.19.2 and I have no such problem on my end, so maybe try these versions. Hope it will work !

I have solved this problem. That's degrade the 'SharedArray' package

hey, what's your 'SharedArray' package version? i have same preoblem with you

Hello, You should degrade the 'SharedArray' package one version by one version, try all the versions. There aren't too many choices. Soon it will works. Like from the latest version, to older one, to more older one..

@daeunni
Copy link

daeunni commented Mar 22, 2022

oh, i solved it. thanks XD
my downgraded version is sharedarray==3.1.0 (i want someone to see this and get help)

@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Apr 22, 2022
@saurtone
Copy link

saurtone commented May 2, 2022

Hey, I'm not sure this will solve the issue but I am using numba 0.54.1 and numpy 1.19.2 and I have no such problem on my end, so maybe try these versions. Hope it will work !

how about your CUDA version?

@OrangeSodahub
Copy link
Contributor Author

Hey, I'm not sure this will solve the issue but I am using numba 0.54.1 and numpy 1.19.2 and I have no such problem on my end, so maybe try these versions. Hope it will work !

how about your CUDA version?

This problem has been solved.

@saurtone
Copy link

saurtone commented May 2, 2022 via email

@github-actions github-actions bot removed the stale label May 3, 2022
@github-actions
Copy link

github-actions bot commented Jun 3, 2022

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jun 3, 2022
@github-actions
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants