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

RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd #355

Closed
RafaD5 opened this issue Mar 26, 2021 · 4 comments
Assignees
Labels
dependencies Pull requests that update a dependency file
Milestone

Comments

@RafaD5
Copy link
Contributor

RafaD5 commented Mar 26, 2021

Hello,

I installed the latest version of MLJAR (0.10.2). When I import the package the following error arrises

RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd

I created a new enviroment for the installation with conda. The steps I followed for the installation were:

conda create -n mljar39 python=3.9
conda activate mljar39
pip install mljar-supervised

Then I run from supervised.automl import AutoML and got the RuntimeError

Then, as suggested in this issue, I updated numpy (explanation here) but got the following error
image

And now, when I import MLJAR the error does not longer arise and I can use MLJAR, but I don't know if this solution is reliable.

@pplonski
Copy link
Contributor

@RafaD5 I believe that there is a small mismatch between numpy versions for some packages. I've added Optuna to MLJAR and it doesn't support the newest numpy version.

The package will work even with the warning. I observed the warning on Ubuntu 16.04 but for Ubuntu 20.04 it works without warning. Hard to point exact fix. However, the numpy update should help.

I would recommend waiting for an update on the Optuna package.

@xuzhang5788
Copy link

I used the same method to create a conda env. I update mljar-supervided with pip install -U mljar-supervised. When I ran from supervised.automl import AutoML, I still got
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
My Ubuntu is 20.04

@pplonski pplonski self-assigned this Apr 8, 2021
@pplonski pplonski added the dependencies Pull requests that update a dependency file label Apr 8, 2021
@pplonski pplonski added this to the 0.10.4 milestone Apr 8, 2021
@pplonski
Copy link
Contributor

pplonski commented Apr 8, 2021

I've updated Optuna (2.7.0) and Numpy (>=1.20.0) packages in requirements.txt. The warning should disappear.

Changes will go to 0.10.4. To use current changes please install package from GitHub:

pip install -q -U git+https://github.com/mljar/mljar-supervised.git@master

@pplonski pplonski closed this as completed Apr 8, 2021
@CyFeng16
Copy link

If you are getting above error in python3.8 environment, python3.7 works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

4 participants