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

Enrico_sed creates error for cluster submission. #143

Open
jhilikmajumdar opened this issue Jun 6, 2019 · 5 comments
Open

Enrico_sed creates error for cluster submission. #143

jhilikmajumdar opened this issue Jun 6, 2019 · 5 comments

Comments

@jhilikmajumdar
Copy link

jhilikmajumdar commented Jun 6, 2019

Hi,

I am using enrico_sed over a configuration file. If I run the analysis on my home computer everything works fine.

The moment I try to submit the job in cluster using enrico_sed I get the following error in the log file:

`~~~~~~~~ SETUP ENVIRONMENT ~~~~~~~~
HEADASNOQUERY: 1
PYTHONPATH: /lustre/fs22/group/hess/software/ScienceTools-v11r5p3-fssc-20180124-x86_64-unknown-linux-gnu-libc2.17/x86_64-unknown-linux-gnu-libc2.17/lib/python:
PATH: /usr/gridengine/scripts:/usr/gridengine/bin/lx-amd64:/batch/42768217.1.std.q:/usr/local/bin:/bin:

/usr/bin:/afs/ifh.de/user/m/majumdar/bin:/afs/ifh.de/user/m/majumdar/scripts

Adding Enrico to PATH and PYTHONPATH

Setting environment variables for data file locations

Run enrico_setupcheck to check if you are set up correctly.

Check your PATH and PYTHONPATH if enrico_setup is not found or gives an error.

Traceback (most recent call last):
File "/lustre/fs22/group/hess/software/enrico/enrico/RunGTlike.py", line 5, in
from enrico.fitmaker import FitMaker
File "/lustre/fs22/group/hess/software/enrico/enrico/fitmaker.py", line 14, in
import astropy.io.fits as fits
ImportError: No module named astropy.io.fits
`

It seems like the executed pythonpath has no module named 'astropy.io.fits'.
But I checked the pythonpath separately which has the module named 'astropy.io.fits'.

If you want more details to this problem please let me know.

Thanks in advance.

@davidsanchez
Copy link
Member

Hi
thanks for using enrico. The only clusters supported yet are the CCIN2P3 at lyon (France), LAPP (france) and MPIK (Germany)
you can add yours by changing the script in the submission folder
best
david

@jhilikmajumdar
Copy link
Author

Hi David,

Thanks for replying.
I changed LAPP submission script with my institute's batch details.
Still the problem remains.

Best,
Jhilik

@davidsanchez
Copy link
Member

Hi
This is certainly because the setup for your farm is not correct. astropy does not come with the Fermitools
cheers
david

@jhilikmajumdar
Copy link
Author

Okay. Thanks.
Actually I was not getting the problem at all. I will recheck the setup of my farm.
Cheers,
Jhilik

@mireianievas
Copy link
Contributor

pyfits is deprecated and replaced by astropy. I'm not sure if the ScienceTools people still support pyfits for old system, if that is the case maybe we can add some if-else statement in the imports.

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