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

import CCF error #19

Open
sbrems opened this issue Oct 23, 2018 · 2 comments
Open

import CCF error #19

sbrems opened this issue Oct 23, 2018 · 2 comments

Comments

@sbrems
Copy link

sbrems commented Oct 23, 2018

Dear Rafael et al.,

thank you for that very nice ceres pipeline.
I was using it for quite some time, however now I tried to install it on a new cluster and do not get it to run. Whenever I try to run it, I get the error that CCF is not defined. To be precise, here is the error:

$ python2 ferospipe.py /mnt/fhgfs/RVSPY/archival_datasearch_oct18/sciencefiles/HD111103/
Traceback (most recent call last):
File "ferospipe.py", line 20, in
import ferosutils
File "/data/beegfs/astro-storage/RVSPY/ceres/feros/ferosutils.py", line 16, in
import GLOBALutils
File "../utils/GLOBALutils/GLOBALutils.py", line 23, in
import CCF
ImportError: No module named CCF

Thank you,
Stefan

@rabrahm
Copy link
Owner

rabrahm commented Oct 23, 2018 via email

@nespinoza
Copy link
Contributor

nespinoza commented Oct 24, 2018

Hi Rafael,

We solved this with Stefan --- turns out the Fortran codes (Proceso_f2py) use f2py via subprocess, which in turn use the f2py installed by default which might be different than the python version used to run the install (e.g., an user with Python 3 by default, might use the pipeline with python2.7 by installing it in the computer, run the install.py code via 'python2.7 install.py' and then the subprocess call in the install.py file will run Proceso_f2py, which uses f2py BUT from Python 3 by default). What I did was to simply replace the f2py call in Proceso_f2py by f2py2.7 (which other f2py versions you have in your computer can be checked via whois f2py). Reminder to myself (or to you) to check which python version the user has by default to keep track of this? Add a warning? Perhaps at the very least put this in a FAQ in the README file.

Néstor

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

3 participants