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

installation issue, building process, linux #34

Open
cmcgrud1 opened this issue Jun 1, 2021 · 2 comments
Open

installation issue, building process, linux #34

cmcgrud1 opened this issue Jun 1, 2021 · 2 comments

Comments

@cmcgrud1
Copy link

cmcgrud1 commented Jun 1, 2021

Good day,
In an attempt to install ceres on a linux OS I keep running into the following issue:
` 2.- Building processes...

 ----------------------------------------------------------
 > Fortran code found in directory utils/CCF. Building...
 >...done!
 > C code found in directory utils/Continuum. Building...
 >...done!
 > C code found in directory utils/Continuum. Building...
 >...done!
 > C code found in directory utils/Continuum. Building...
 >...done!
 > C code found in directory utils/OptExtract. Building...
 ----------------------------------------------------------
 > ERROR: CERES couldn't be installed.
 > Problem building code in utils/OptExtract. The error was:

 	Marsh.c:2:10: fatal error: numpy/arrayobject.h: No such file or directory
 	 #include <numpy/arrayobject.h>
 	          ^~~~~~~~~~~~~~~~~~~~~
 	compilation terminated.
 	error: command 'gcc' failed with exit status 1

 > If you can't solve the problem, please communicate
 > with the CERES team for help.`

I've check the include/numpy/ directory and it does contain arrayobject.h so I'm a little confused why it's having trouble find it. I've even tried hard coding the setup.py file to point directly to the appropriate include/numpy/ directory with no avail. Please help.

@nespinoza
Copy link
Contributor

Hi Chima,

Can you go to ceres/utils/OptExtract and do python setup.py install and see what you get?

Thanks

N.

@cmcgrud1
Copy link
Author

cmcgrud1 commented Jun 1, 2021

Thanks for the reply, Nestor.
So it give me basically the same error. It crashes on the Marsh portion and says it can't find 'numpy/arrayobject.h'
`running install

running build

running build_ext

building 'Marsh' extension
gcc -pthread -B /home/mcgruderc/.conda/envs/access_py2/compiler_compat -Wl,--sysroot=/ -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/mcgruderc/.conda/envs/access_py2/lib/python2.7/site-packages/numpy/core/include/numpy -I/share/apps/tools/gcc/7.3.0/include -I/home/mcgruderc/.conda/envs/access_py2/include/python2.7 -c Marsh.c -o build/temp.linux-x86_64-2.7/Marsh.o
Marsh.c:2:31: fatal error: numpy/arrayobject.h: No such file or directory
#include <numpy/arrayobject.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants