help

52 views
Skip to first unread message

Mahoro Antoine

unread,
Nov 22, 2016, 12:59:41 AM11/22/16
to enrico
I have Mac computer with this specifications:
MacOS Sierra version 10.12.1
MacBook pro (Retina, 15-inch)
Processor 2GHz intel Core i7
Memory 8 GB 1600 MHz DDR3
Graphics Intel Iris Pro 1536 MB

 If I run "enrico_sed myanalysis.conf" I got this error
Mahoros-MacBook-Pro:enrico mahoro$ enrico_xml myanalysis.conf
use the default location of the catalog
use the default catalog
Use the catalog :  /Users/mahoro/Project/Software/enrico/Data/catalog/gll_psc_v16.fit
[Message]: Summary of the XML model generation
Add  79  sources in the ROI of  22.0 ( 20.0 + 2 ) degrees
4  sources have free parameters inside  3.0  degrees
0  source(s) is (are) extended
Iso model file  /Users/mahoro/Project/Software/enrico/Data/diffuse/iso_P8R2_SOURCE_V6_v06.txt
Galactic model file  /Users/mahoro/Project/Software/enrico/Data/diffuse/gll_iem_v06.fits
[Message]: write the Xml file in /Users/mahoro/Project/Software/enrico/myanalysis/3FGL J0340.4-2423_PowerLaw_model.xml
Mahoros-MacBook-Pro:enrico mahoro$ enrico_sed myanalysis.conf
Traceback (most recent call last):
  File "/Users/mahoro/Project/Software/enrico/bin/enrico_sed", line 58, in <module>
    sed(config,infile)
  File "/Users/mahoro/Project/Software/enrico/bin/enrico_sed", line 13, in sed
    run(infile)
  File "/Users/mahoro/Project/Software/enrico/enrico/RunGTlike.py", line 185, in run
    FitRunner,Fit = GenAnalysisObjects(config)
  File "/Users/mahoro/Project/Software/enrico/enrico/RunGTlike.py", line 28, in GenAnalysisObjects
    import SummedLikelihood
  File "/Users/mahoro/ScienceTools-v10r0p5-fssc-patch-20150518-x86_64-apple-darwin14.4.0-without-root/x86_64-apple-darwin14.4.0/lib/python/SummedLikelihood.py", line 12, in <module>
    import pyLikelihood as pyLike
  File "/Users/mahoro/ScienceTools-v10r0p5-fssc-patch-20150518-x86_64-apple-darwin14.4.0-without-root/x86_64-apple-darwin14.4.0/lib/python/pyLikelihood.py", line 7, in <module>
    import lib_pyLikelihood
ImportError: dlopen(/Users/mahoro/ScienceTools-v10r0p5-fssc-patch-20150518-x86_64-apple-darwin14.4.0-without-root/x86_64-apple-darwin14.4.0/lib/lib_pyLikelihood.so, 2): Library not loaded: libLikelihood.dylib
  Referenced from: /Users/mahoro/ScienceTools-v10r0p5-fssc-patch-20150518-x86_64-apple-darwin14.4.0-without-root/x86_64-apple-darwin14.4.0/lib/lib_pyLikelihood.so
  Reason: image not found
Mahoros-MacBook-Pro:enrico mahoro$

Some can help me how to sort out this?


Manuel Castro Avila

unread,
Nov 23, 2016, 1:18:28 PM11/23/16
to enrico
Hi,

Can you attach the .conf file...?

Manuel

Mahoro Antoine

unread,
Nov 24, 2016, 5:37:33 AM11/24/16
to gammapy...@googlegroups.com
Dear Manuel,
I am attaching my .conf file.

Antoine

--
You received this message because you are subscribed to a topic in the Google Groups "enrico" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gammapy_enrico/MrkzUQWlqc8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gammapy_enrico+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Mr Antoine Mahoro
Mbarara University of Science and Technology
Faculty of Science
Physics Department
P.O. BOX: 1410 Mbarara- Uganda
cell : +256776634976/+250784043545
Skype : mahoro.antoine



myanalysis.conf

Manuel Castro Avila

unread,
Nov 24, 2016, 10:35:22 AM11/24/16
to enrico
Dear Antoine,

Try to change the source's name, instead "3FGL J0340.4-2423" just "J0340.4-2423" without spaces. Also, change under [Ebin]. NumEnergyBins to be greater than zero; and run again enrico_xml and enrico_sed.

Manuel
To unsubscribe from this group and all its topics, send an email to gammapy_enric...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Mahoro Antoine

unread,
Nov 25, 2016, 1:19:34 AM11/25/16
to gammapy...@googlegroups.com
Dear Manuel,
I am getting this error again 

Mahoros-MacBook-Pro:enrico mahoro$ enrico_sed myanalysis.conf

Traceback (most recent call last):

  File "/Users/mahoro/Project/Software/enrico/bin/enrico_sed", line 58, in <module>

    sed(config,infile)

  File "/Users/mahoro/Project/Software/enrico/bin/enrico_sed", line 13, in sed

    run(infile)

  File "/Users/mahoro/Project/Software/enrico/enrico/RunGTlike.py", line 185, in run

    FitRunner,Fit = GenAnalysisObjects(config)

  File "/Users/mahoro/Project/Software/enrico/enrico/RunGTlike.py", line 28, in GenAnalysisObjects

    import SummedLikelihood

  File "/Users/mahoro/ScienceTools-v10r0p5-fssc-patch-20150518-x86_64-apple-darwin14.4.0-without-root/x86_64-apple-darwin14.4.0/lib/python/SummedLikelihood.py", line 12, in <module>

    import pyLikelihood as pyLike

  File "/Users/mahoro/ScienceTools-v10r0p5-fssc-patch-20150518-x86_64-apple-darwin14.4.0-without-root/x86_64-apple-darwin14.4.0/lib/python/pyLikelihood.py", line 7, in <module>

    import lib_pyLikelihood

ImportError: dlopen(/Users/mahoro/ScienceTools-v10r0p5-fssc-patch-20150518-x86_64-apple-darwin14.4.0-without-root/x86_64-apple-darwin14.4.0/lib/lib_pyLikelihood.so, 2): Library not loaded: libLikelihood.dylib

  Referenced from: /Users/mahoro/ScienceTools-v10r0p5-fssc-patch-20150518-x86_64-apple-darwin14.4.0-without-root/x86_64-apple-darwin14.4.0/lib/lib_pyLikelihood.so

  Reason: image not found

Mahoros-MacBook-Pro:enrico mahoro$ 



If I run enrico_sed myanalysis.conf.


Antoine


To unsubscribe from this group and all its topics, send an email to gammapy_enrico+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Mahoro Antoine

unread,
Feb 6, 2017, 4:48:30 AM2/6/17
to gammapy...@googlegroups.com
rascsrg@RASCSRG:~/myanalysis$ enrico_sed myanalysis.conf
Plotter is MatPlotlib
# ************************************************************
# *** SUMMARY:  ***
# ************************************************************
Source    =    PG155+113
RA    =    238.92935  degrees
Dec    =    11.190102  degrees
Start    =    239557417.0   MET (s)
Stop    =    256970880.0   MET (s)
ROI    =    10.0  degrees
E min    =    200.0  MeV
E max    =    300000.0  MeV
IRFs    =    CALDB
evclass    =    128
evtype    =    3
Corresponding IRFs    =    ('P8R2_SOURCE_V6', ['BACK', 'FRONT'])

# ************************************************************
# ***   1   gtselect --- Select data from library, coarse cut
# ************************************************************
time -p /home/rascsrg/ScienceTools-v10r0p5-fssc-20150518-x86_64-unknown-linux-gnu-libc2.19-0/x86_64-unknown-linux-gnu-libc2.19-0/bin/gtselect infile=~/myanalysis/PG1553_events.list outfile=/home/rascsrg/myanalysis/PG155+113_TestOfPG1553_EvtCoarse.fits ra=238.92935 dec=11.190102 rad=10.0 tmin=239557417.0 tmax=256970880.0 emin=200.0 emax=300000.0 zmin=0.0 zmax=95.0 evclass=128 evclsmin=0 evclsmax=10 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"
Caught St13runtime_error at the top level: File not found: ~/myanalysis/PG1553_events.list

Traceback (most recent call last):
  File "/home/rascsrg/enrico/bin/enrico_sed", line 58, in <module>
    sed(config,infile)
  File "/home/rascsrg/enrico/bin/enrico_sed", line 13, in sed
    run(infile)
  File "/home/rascsrg/enrico/enrico/RunGTlike.py", line 178, in run
    FitRunner,Fit = GenAnalysisObjects(config)
  File "/home/rascsrg/enrico/enrico/RunGTlike.py", line 158, in GenAnalysisObjects
    FitRunner = Analysis(folder, config, tag="", verbose = verbose)
  File "/home/rascsrg/enrico/enrico/RunGTlike.py", line 20, in Analysis
    FitRunner.FirstSelection(configgeneric) #Generates fits files for the coarse selection
  File "/home/rascsrg/enrico/enrico/fitmaker.py", line 51, in FirstSelection
    self.obs.FirstCut()
  File "/home/rascsrg/enrico/enrico/gtfunction.py", line 225, in FirstCut
    filter.run()
  File "/home/rascsrg/ScienceTools-v10r0p5-fssc-20150518-x86_64-unknown-linux-gnu-libc2.19-0/x86_64-unknown-linux-gnu-libc2.19-0/lib/python/GtApp.py", line 72, in run
    raise RuntimeError, self.appName + " execution failed"
RuntimeError: gtselect execution failed


help how I can correct this error
--
Mr. Antoine Mahoro
Reply all
Reply to author
Forward
0 new messages