question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue
$ 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…

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
daeunnicommented, 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)

1reaction
OrangeSodahubcommented, 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

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…

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: numpy.core.multiarray failed to import
I found the bad numpy version by using the following command in my Mac terminal: python -c "import numpy;print(numpy.__version__);print(numpy.__file__)";.
Read more >
[Solved] ImportError: numpy.core.multiarray Failed to Import
ImportError : numpy.core.multiarray failed to import error. Follow these steps to solve the error. Open CLI and run the following command:
Read more >
ImportError numpy core multiarray failed to import - Edureka
I am trying to import the cv2 module in Jupyter Notebook. But It is showing me the below error. import cv2 ImportError: numpy.core.multiarray...
Read more >
ImportError: numpy.core.multiarray failed to import [cv2 ...
This error occurs because of an improper/incompatible version of NUMPY. As we all know that most of the machine learning and deep learning...
Read more >
ImportError installing via PIP - Support - Numba Discussion
Blockquote $ python3.8 -m venv venv $ source venv/bin/activate $ pip install numba Collecting numba ... ImportError: numpy.core.multiarray failed to import.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found