jankrepl / deepdow

Portfolio optimization with deep learning.
https://deepdow.readthedocs.io
Apache License 2.0
874 stars 136 forks source link

Error importing deepdow #123

Closed Mike22Repos closed 5 months ago

Mike22Repos commented 2 years ago

Hi Jan:

Happy holidays, and thanks for developing Deepdow and making it available.

I ran into a problem importing Deepdow with the following error: "RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd" and "ImportError: numpy.core.multiarray failed to import"

I was wondering if you have any idea for a fix. Possible with the numpy version I am using? It is numpy 1.19.5, an older version I have used to work with Tensorflow 2.7.

Many thanks in advance for your help.

Best, Mike

jankrepl commented 2 years ago

Sorry for a very late response. Yeh, it seems to be because of your numpy. The last CI build on master had numpy=1.21.0 (https://app.travis-ci.com/github/jankrepl/deepdow/jobs/523230724#L455) and everything passed. Locally, 1.21.0 works fine for me.

jankrepl commented 5 months ago

Closing due to inactivity