module compiled against API version 0xc but this version of numpy is 0xb #106
Comments
Sorry about this but are you able to try with a python 2.7.x stack? While
we are trying to remediate this, we tested more with python 2.
…On Mon, Dec 18, 2017 at 2:11 PM Spugnam ***@***.***> wrote:
Hi, I wasn't able to install catalyst.
Here's my environment info:
- Operating System: macOS
- Python Version: Python 3.6.3
- Python Bitness: 64
- How did you install Catalyst:
I tried:
pip install enigma-catalyst matplotlib
then:
pip install -r requirements.txt
and both gave me a similar error (below).
- Python packages:
aiodns==1.1.1
aiohttp==2.3.6
alembic==0.7.7
async-timeout==2.0.0
bcolz==0.12.1
boto3==1.4.8
botocore==1.8.15
Bottleneck==1.0.0
cchardet==2.1.1
ccxt==1.10.283
certifi==2017.11.5
chardet==3.0.4
click==4.0
contextlib2==0.4.0
cycler==0.10.0
cyordereddict==0.2.2
Cython==0.25.2
decorator==4.0.0
docutils==0.14
empyrical==0.2.1
enigma-catalyst==0.4.0
idna==2.6
intervaltree==2.1.0
jmespath==0.9.3
Logbook==0.12.5
lru-dict==1.1.4
Mako==1.0.1
MarkupSafe==0.23
matplotlib==2.1.1
multidict==3.3.2
multipledispatch==0.4.8
networkx==1.9.1
numexpr==2.6.1
numpy==1.13.1
pandas==0.19.2
pandas-datareader==0.2.1
patsy==0.4.0
pycares==2.3.0
pyparsing==2.2.0
python-dateutil==2.4.2
python-editor==1.0.3
pytz==2016.4
requests==2.9.1
requests-file==1.4.1
requests-ftp==0.3.1
s3transfer==0.1.12
scipy==0.17.1
six==1.10.0
sortedcontainers==1.4.4
SQLAlchemy==1.0.8
statsmodels==0.6.1
tables==3.3.0
toolz==0.8.2
urllib3==1.22
yarl==0.16.0
I tried to execute catalyst --version to check installation was
successful and got:
RuntimeError: module compiled against API version 0xc but this version of
numpy is 0xb Traceback (most recent call last): File
"/Users/Quentin/Documents/Projects/Catalyst/catalyst-venv/bin/catalyst",
line 7, in <module> from catalyst.__main__ import main File
"/Users/Quentin/Documents/Projects/Catalyst/catalyst-venv/lib/python3.6/site-packages/catalyst/__init__.py",
line 25, in <module> from .utils.run_algo import run_algorithm File
"/Users/Quentin/Documents/Projects/Catalyst/catalyst-venv/lib/python3.6/site-packages/catalyst/utils/run_algo.py",
line 13, in <module> from catalyst.data.bundles import load File
"/Users/Quentin/Documents/Projects/Catalyst/catalyst-venv/lib/python3.6/site-packages/catalyst/data/bundles/__init__.py",
line 2, in <module> from . import quandl # noqa File
"/Users/Quentin/Documents/Projects/Catalyst/catalyst-venv/lib/python3.6/site-packages/catalyst/data/bundles/quandl.py",
line 21, in <module> from catalyst.data.bundles.core import register_bundle
File
"/Users/Quentin/Documents/Projects/Catalyst/catalyst-venv/lib/python3.6/site-packages/catalyst/data/bundles/core.py",
line 14, in <module> from ..us_equity_pricing import ( File
"/Users/Quentin/Documents/Projects/Catalyst/catalyst-venv/lib/python3.6/site-packages/catalyst/data/us_equity_pricing.py",
line 23, in <module> from bcolz import ( File
"/Users/Quentin/Documents/Projects/Catalyst/catalyst-venv/lib/python3.6/site-packages/bcolz/__init__.py",
line 55, in <module> from bcolz.carray_ext import ( ImportError:
numpy.core.multiarray failed to import
I tried with numpy 1.13.3 (latest) and 1.13.1 (from requirements.txt) but
nothing worked...
thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#106>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABZ-QoJ0WVV3DB0PXi7Ie-O3Qc2Kp1Toks5tBuMfgaJpZM4RGJXB>
.
|
We tested with python 2.7 and we are getting the exact same issue. |
This is not a common issue. Can you print your stack trace from python 2.7?
The one that I see attached to the issue references python 3.6. Are you
using virtualenv?
…On Tue, Dec 19, 2017 at 3:07 PM Jean-Marc Arsan ***@***.***> wrote:
We tested with python 2.7 and we are getting the same issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#106 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABZ-QmKyubJSo6tBaqO_asvuKGCPT-5Iks5tCBd1gaJpZM4RGJXB>
.
|
I had this issue with both bcolz and bottleneck importing from numpy. I believe for me it was an issue with both packages being installed with an incorrect version of numpy I had cached on my machine. I was able to resolve both by uninstalling them and running pip install with the These are the commands I ran:
|
Thanks for the update. We'll incorporate this to the documentation.
…On Fri, Dec 22, 2017 at 4:57 PM Brandon Closson ***@***.***> wrote:
I had this issue with both bcolz and bottleneck importing from numpy. I
believe for me it was an issue of the packages being compiled against an
incorrect version of numpy I had cached on my machine. I was able to
resolve both by uninstalling them and running pip install with the
--no-cache-dir option:
pip uninstall bcolz
pip install bcolz --no-cache-dir
pip uninstall bottleneck
pip install bottleneck --no-cache-dir
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#106 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABZ-QuReoHYpvHESvUWS1pUA_OutFG4_ks5tDCW5gaJpZM4RGJXB>
.
|
I'm having a similar issue although not exactly the same, figured I'd post it here:
|
This issue does not look familiar. Maybe try upgrading numpy ‘pip install
-U numpy’ and see if it makes a difference. Please let me know the outcome
if you don’t mind.
…On Fri, Dec 22, 2017 at 8:02 PM Jake Deichmann ***@***.***> wrote:
I'm having a similar issue although not exactly the same, figured I'd post
it here:
Traceback (most recent call last): File "/usr/local/bin/catalyst", line 7,
in <module> from catalyst.__main__ import main File
"/usr/local/lib/python2.7/site-packages/catalyst/__init__.py", line 25, in
<module> from .utils.run_algo import run_algorithm File
"/usr/local/lib/python2.7/site-packages/catalyst/utils/run_algo.py", line
15, in <module> from catalyst.exchange.factory import get_exchange File
"/usr/local/lib/python2.7/site-packages/catalyst/exchange/factory.py", line
3, in <module> from catalyst.exchange.ccxt.ccxt_exchange import CCXT File
"/usr/local/lib/python2.7/site-packages/catalyst/exchange/ccxt/ccxt_exchange.py",
line 11, in <module> from catalyst.algorithm import MarketOrder File
"/usr/local/lib/python2.7/site-packages/catalyst/algorithm.py", line 89, in
<module> from catalyst.pipeline import Pipeline File
"/usr/local/lib/python2.7/site-packages/catalyst/pipeline/__init__.py",
line 4, in <module> from .classifiers import Classifier, CustomClassifier
File
"/usr/local/lib/python2.7/site-packages/catalyst/pipeline/classifiers/__init__.py",
line 1, in <module> from .classifier import ( File
"/usr/local/lib/python2.7/site-packages/catalyst/pipeline/classifiers/classifier.py",
line 11, in <module> from catalyst.lib.labelarray import LabelArray File
"/usr/local/lib/python2.7/site-packages/catalyst/lib/labelarray.py", line
30, in <module> from ._factorize import ( File
"catalyst/lib/_factorize.pyx", line 10, in init catalyst.lib._factorize
(catalyst/lib/_factorize.c:11047) File "__init__.pxd", line 989, in
numpy.import_array (catalyst/lib/_factorize.c:10338) ImportError:
numpy.core.multiarray failed to import
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#106 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABZ-QiwPvqq2ly-sauD9kwHH0AVuTgfpks5tDHttgaJpZM4RGJXB>
.
|
Thanks for the quick response, but no change. I tried that earlier when I initially encountered the error. I'll keep playing with it to see if I can find a fix, but may just give up and set it up on Ubuntu. |
Try sending me the output of this command if you can:
I'll diff it with mine. Which OS are you using now? |
Running macOS 10.13.1, and here you are: alembic==0.9.6 |
@itsjaked as I referenced in my previous post with other packages, if you run |
@brandonclosson Awesome, thanks, issue has been resolved. I did try that previously, but most likely had another dependency issue at that time. |
@fredfortier @brandonclosson I've tried |
Same issue here, I can confirm that |
I'm going to close this as it looks like it's more about python and less Catalyst. Feel free to reopen if I misunderstand the root cause or it continues to occur. |
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb I catched this error yesterday. In my case: I have installed Tensorflow 1.5 and Pytorch 0.3 and they, in some case, install numpy both to the anaconda root. Hence I had numpy 0.14 and 0.13.3 both. I deleted it and reinstall numpy (0.14). Everything works out. |
I have met the same problem with you: RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb And I solved it by upgrading my numpy to 1.14.1 |
just go to this StackOverflow page this might help you. |
Hi, I wasn't able to install catalyst.
Here's my environment info:
I tried:
pip install enigma-catalyst matplotlib
then:
pip install -r requirements.txt
and both gave me a similar error (below).
aiodns==1.1.1
aiohttp==2.3.6
alembic==0.7.7
async-timeout==2.0.0
bcolz==0.12.1
boto3==1.4.8
botocore==1.8.15
Bottleneck==1.0.0
cchardet==2.1.1
ccxt==1.10.283
certifi==2017.11.5
chardet==3.0.4
click==4.0
contextlib2==0.4.0
cycler==0.10.0
cyordereddict==0.2.2
Cython==0.25.2
decorator==4.0.0
docutils==0.14
empyrical==0.2.1
enigma-catalyst==0.4.0
idna==2.6
intervaltree==2.1.0
jmespath==0.9.3
Logbook==0.12.5
lru-dict==1.1.4
Mako==1.0.1
MarkupSafe==0.23
matplotlib==2.1.1
multidict==3.3.2
multipledispatch==0.4.8
networkx==1.9.1
numexpr==2.6.1
numpy==1.13.1
pandas==0.19.2
pandas-datareader==0.2.1
patsy==0.4.0
pycares==2.3.0
pyparsing==2.2.0
python-dateutil==2.4.2
python-editor==1.0.3
pytz==2016.4
requests==2.9.1
requests-file==1.4.1
requests-ftp==0.3.1
s3transfer==0.1.12
scipy==0.17.1
six==1.10.0
sortedcontainers==1.4.4
SQLAlchemy==1.0.8
statsmodels==0.6.1
tables==3.3.0
toolz==0.8.2
urllib3==1.22
yarl==0.16.0
I tried to execute
catalyst --version
to check installation was successful and got:RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb Traceback (most recent call last): File "/Users/Quentin/Documents/Projects/Catalyst/catalyst-venv/bin/catalyst", line 7, in <module> from catalyst.__main__ import main File "/Users/Quentin/Documents/Projects/Catalyst/catalyst-venv/lib/python3.6/site-packages/catalyst/__init__.py", line 25, in <module> from .utils.run_algo import run_algorithm File "/Users/Quentin/Documents/Projects/Catalyst/catalyst-venv/lib/python3.6/site-packages/catalyst/utils/run_algo.py", line 13, in <module> from catalyst.data.bundles import load File "/Users/Quentin/Documents/Projects/Catalyst/catalyst-venv/lib/python3.6/site-packages/catalyst/data/bundles/__init__.py", line 2, in <module> from . import quandl # noqa File "/Users/Quentin/Documents/Projects/Catalyst/catalyst-venv/lib/python3.6/site-packages/catalyst/data/bundles/quandl.py", line 21, in <module> from catalyst.data.bundles.core import register_bundle File "/Users/Quentin/Documents/Projects/Catalyst/catalyst-venv/lib/python3.6/site-packages/catalyst/data/bundles/core.py", line 14, in <module> from ..us_equity_pricing import ( File "/Users/Quentin/Documents/Projects/Catalyst/catalyst-venv/lib/python3.6/site-packages/catalyst/data/us_equity_pricing.py", line 23, in <module> from bcolz import ( File "/Users/Quentin/Documents/Projects/Catalyst/catalyst-venv/lib/python3.6/site-packages/bcolz/__init__.py", line 55, in <module> from bcolz.carray_ext import ( ImportError: numpy.core.multiarray failed to import
I tried with numpy 1.13.3 (latest) and 1.13.1 (from requirements.txt) but nothing worked...
thanks
The text was updated successfully, but these errors were encountered: