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.

RuntimeError with numpy==1.13 and pandas==0.21.1

See original GitHub issue

Wasn’t super sure as to whether to post this here or on the downstream pandas repository since I’m not sure where the issue originates, but I think it might be here. Basically, I updated all my packages and found that pandas was spitting out errors (but continues). After a bunch of installing / uninstalling and binary searching through my requirements files, I found that removing bottleneck removes the issue. Perhaps this is a compatibility problem - has numpy changed a critical API?

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb

Steps:

  1. python3 -mvenv env
  2. . env/bin/activate
  3. pip install "numpy==1.13 pandas==0.21.1
  4. Import pandas and see that it works
  5. pip install bottleneck
  6. Import pandas and see above errors.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
kwgoodmancommented, Jan 11, 2018

Installation is impenetrable magic to me. Hopefully the PR fairy will come along with a magical solution.

0reactions
qwhelancommented, Nov 13, 2019

Closing as I believe this is fixed by the 1.3.0 release. Please feel to reopen if that is not the case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error installing NumPy via Pip on macOS Big Sur with python ...
Reproducing code example: Install Pandas with PIP after a clean install ... in <module> raise RuntimeError(msg) RuntimeError: Polyfit sanity ...
Read more >
How do you fix "runtimeError: package fails to pass a sanity ...
This error occurs when using python3.9 and numpy1.19.4 So uninstalling numpy1.19.4 and installing 1.19.3 will work. Edit.
Read more >
correct syntax of reshape function in numpy array Code Example
RuntimeError : Model class payments_app.models.Product doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
Read more >
NumPy 1.13.0 Release Notes
This caused a complication in the downstream 'pandas' library that encountered an issue with 'numpy' compatibility.
Read more >
Nuitka - Bountysource
DIS\curses\__init__.py", line 13, in <module> ModuleNotFoundError: No ... When compiling pandas with --python-flag=-OO , the created program fails with the ...
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