-
Notifications
You must be signed in to change notification settings - Fork 53
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
Building wheel for batman-package & starry #99
Comments
Unfortunately this doesn't seem to be an First, a few comments:
To deal with compilation issues like this, I generally recommend trying to setup a fresh conda environment following the steps given in the docs. If that doesn't work, you should try looking into the errors being produced when compiling |
Thank you for the suggestion! My apologies for misunderstanding, I am very new to coding. Actually my main issue now seems to be with theano when I run
Exception: ('The following error happened while compiling the node', Elemwise{Mul}[(0, 1)](InplaceDimShuffle{x,0}.0, Reshape{2}.0), '\n', "Compilation failed (return status=1): /Users/darinadaly/.theano/compiledir_macOS-10.15.4-x86_64-i386-64bit-i386-3.8.2-64/tmp0hztfhbh/mod.cpp:463:27: error: non-constant-expression cannot be narrowed from type 'npy_intp' (aka 'long') to 'int' in initializer list [-Wc++11-narrowing]. int init_totals[2] = {V5_n0, V3_n1};. ^~~~~. /Users/darinadaly/.theano/compiledir_macOS-10.15.4-x86_64-i386-64bit-i386-3.8.2-64/tmp0hztfhbh/mod.cpp:463:27: note: insert an explicit cast to silence this issue. int init_totals[2] = {V5_n0, V3_n1};. ^~~~~. static_cast( ). /Users/darinadaly/.theano/compiledir_macOS-10.15.4-x86_64-i386-64bit-i386-3.8.2-64/tmp0hztfhbh/mod.cpp:463:34: error: non-constant-expression cannot be narrowed from type 'npy_intp' (aka 'long') to 'int' in initializer list [-Wc++11-narrowing]. int init_totals[2] = {V5_n0, V3_n1};. ^~~~~. /Users/darinadaly/.theano/compiledir_macOS-10.15.4-x86_64-i386-64bit-i386-3.8.2-64/tmp0hztfhbh/mod.cpp:463:34: note: insert an explicit cast to silence this issue. int init_totals[2] = {V5_n0, V3_n1};. ^~~~~. static_cast( ). /Users/darinadaly/.theano/compiledir_macOS-10.15.4-x86_64-i386-64bit-i386-3.8.2-64/tmp0hztfhbh/mod.cpp:475:12: error: non-constant-expression cannot be narrowed from type 'ssize_t' (aka 'long') to 'int' in initializer list [-Wc++11-narrowing]. 0, V3_stride1, . ^~~~~~~~~~. /Users/darinadaly/.theano/compiledir_macOS-10.15.4-x86_64-i386-64bit-i386-3.8.2-64/tmp0hztfhbh/mod.cpp:475:12: note: insert an explicit cast to silence this issue. 0, V3_stride1, . ^~~~~~~~~~. static_cast( ). /Users/darinadaly/.theano/compiledir_macOS-10.15.4-x86_64-i386-64bit-i386-3.8.2-64/tmp0hztfhbh/mod.cpp:476:1: error: non-constant-expression cannot be narrowed from type 'ssize_t' (aka 'long') to 'int' in initializer list [-Wc++11-narrowing]. V5_stride0, V5_stride1. ^~~~~~~~~~. /Users/darinadaly/.theano/compiledir_macOS-10.15.4-x86_64-i386-64bit-i386-3.8.2-64/tmp0hztfhbh/mod.cpp:476:1: note: insert an explicit cast to silence this issue. V5_stride0, V5_stride1. ^~~~~~~~~~. static_cast( ). /Users/darinadaly/.theano/compiledir_macOS-10.15.4-x86_64-i386-64bit-i386-3.8.2-64/tmp0hztfhbh/mod.cpp:476:13: error: non-constant-expression cannot be narrowed from type 'ssize_t' (aka 'long') to 'int' in initializer list [-Wc++11-narrowing]. V5_stride0, V5_stride1. ^~~~~~~~~~. /Users/darinadaly/.theano/compiledir_macOS-10.15.4-x86_64-i386-64bit-i386-3.8.2-64/tmp0hztfhbh/mod.cpp:476:13: note: insert an explicit cast to silence this issue. V5_stride0, V5_stride1. ^~~~~~~~~~. static_cast( ). 5 errors generated.. ", '[Elemwise{Mul}[(0, 1)](<TensorType(float64, row)>, <TensorType(float64, matrix)>)]') |
No worries! It looks like you need to upgrade PyMC3 or add the following before you import exoplanet: import theano.config
theano.config.gcc.cxxflags = "-Wno-c++11-narrowing" Ref: pymc-devs/pymc#3695 |
This worked! Thank you so much! |
MacOS Catalina (10.15.4)
Python 3.8.2
pip 20.1.1
(Not sure if this is actually a bug, but I accidentally labeled it and don't know how to remove it now)
I ran (in bash)
and came across the error:
I looked at issue #72 and tried
pip install rebound
but was stopped at
ERROR: Command errored out with exit status 1: /Users/darinadaly/miniconda3/envs/project2/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/k6/2hd432893sd6_hjfyzr6v6440000gn/T/pip-install-nz7vzsez/rebound/setup.py'"'"'; __file__='"'"'/private/var/folders/k6/2hd432893sd6_hjfyzr6v6440000gn/T/pip-install-nz7vzsez/rebound/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/k6/2hd432893sd6_hjfyzr6v6440000gn/T/pip-record-94_ct0i2/install-record.txt --single-version-externally-managed --compile --install-headers /Users/darinadaly/miniconda3/envs/project2/include/python3.8/rebound Check the logs for full command output.
I also tried running
pip install --no-deps exoplanet
but it didn't fix anything.If I just run
python -m pytest -vx tests
, thentests/light_curves_test.py::test_light_curve_grad
(and other tests) fails and I get the error:ERROR: Command errored out with exit status 1: /Users/darinadaly/miniconda3/envs/project2/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/k6/2hd432893sd6_hjfyzr6v6440000gn/T/pip-install-nz7vzsez/rebound/setup.py'"'"'; __file__='"'"'/private/var/folders/k6/2hd432893sd6_hjfyzr6v6440000gn/T/pip-install-nz7vzsez/rebound/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/k6/2hd432893sd6_hjfyzr6v6440000gn/T/pip-record-94_ct0i2/install-record.txt --single-version-externally-managed --compile --install-headers /Users/darinadaly/miniconda3/envs/project2/include/python3.8/rebound Check the logs for full command output.
The text was updated successfully, but these errors were encountered: