Makefile:6: make.inc: No such file or directory make[1]: *** No rule to make target 'make.inc'. Stop.

Greetings to you all. I had to do a fresh installation of PyCPT on my laptop. After doing everything I then tried to run the jupyter notebook. I am getting the error that is attached here.Makefile:6: make.inc: No such file or directory
make[1]: *** No rule to make target 'make.inc'. Stop.
make: *** [Makefile:87: lapack/lapack/liblapack.a] Error 2Regards
--Benjamin M KwendaAgriculture MeteorologistLong Range ForecastingMeteorological Services DepartmentBelvedere, HarareSkype: bkwenda_1Scientists of today think deeply instead of clearly. One must be sane to think clearly, but one can think deeply and be quite insane!!!!- Nikola Tesla
--You received this message because you are subscribed to the Google Groups "pycpt-esa" group.To unsubscribe from this group and stop receiving emails from it, send an email to pycpt-esa+...@iri.columbia.edu.To view this discussion on the web visit https://groups.google.com/a/iri.columbia.edu/d/msgid/pycpt-esa/CAEEVC%2BjH6aLfXvV3ycBqcqTSw1feXOCDrq%2Bz%3DZRnCqQzNtGcYQ%40mail.gmail.com.For more options, visit https://groups.google.com/a/iri.columbia.edu/d/optout.
Makefile:6: make.inc: No such file or directory make[1]: *** No rule to make target 'make.inc'. Stop. make: *** [Makefile:87: lapack/lapack/liblapack.a] Error 2
File ~/anaconda3/envs/pycpt_environment/lib/python3.10/site-packages/cptcore-1.0.10-py3.9.egg/cptcore/__init__.py:22 20 import platform 21 if platform.system() == 'Linux': ---> 22 install_cpt_linux() 24 CPT_CITATION = "Simon J. Mason, Michael K. Tippet, Lulin Song, Ángel G. Muñoz. 2021. Climate Predictability Tool version 17.5.2. Columbia University Academic Commons. https://doi.org/10.7916/d8-em2t-k781" 25 PYCPTV1_CITATION = "Muñoz, Á.G., Robertson, A.W., Turkington, T., Mason, S.J., and contributors, 2019: 'PyCPT: a Python interface and enhancement for IRI's Climate Predictability Tool'." File ~/anaconda3/envs/pycpt_environment/lib/python3.10/site-packages/cptcore-1.0.10-py3.9.egg/cptcore/utilities.py:323, in install_cpt_linux() 321 subprocess.call(['make'], cwd=str((path/'fortran'/'Linux'/'CPT'/'17.7.4').absolute())) 322 CPT_EXECUTABLE = (path / 'fortran' / 'Linux' / 'CPT' / '17.7.4').absolute() / 'CPT.x' --> 323 assert CPT_EXECUTABLE.is_file(), 'FAILED TO COMPILE CPT' 324 return CPT_EXECUTABLE

On Nov 29, 2022, at 9:07 AM, Benjamin Kwenda <bkw...@gmail.com> wrote:
Dear TamiratSo this is what happened. I had to do a reinstallation of Ubuntu on my Windows laptop. After that, I installed all the other packages such as build essential, cartopy, matplotlib, nbconvert etc using the commands in the Powerpoint Presentation. Afterwards, I then started running the script in the Jupyter Notebook. On running the first cell where there is the following lines
- import cptdl as dl
- import cptio as cio
- import cptcore as cc
- import cptextras as ce
Now when it gets to line 3, I am getting the error that I mentioned.Makefile:6: make.inc: No such file or directory make[1]: *** No rule to make target 'make.inc'. Stop. make: *** [Makefile:87: lapack/lapack/liblapack.a] Error 2
File ~/anaconda3/envs/pycpt_environment/lib/python3.10/site-packages/cptcore-1.0.10-py3.9.egg/cptcore/__init__.py:22 20 import platform 21 if platform.system() == 'Linux': ---> 22 install_cpt_linux() 24 CPT_CITATION = "Simon J. Mason, Michael K. Tippet, Lulin Song, Ángel G. Muñoz. 2021. Climate Predictability Tool version 17.5.2. Columbia University Academic Commons. https://doi.org/10.7916/d8-em2t-k781" 25 PYCPTV1_CITATION = "Muñoz, Á.G., Robertson, A.W., Turkington, T., Mason, S.J., and contributors, 2019: 'PyCPT: a Python interface and enhancement for IRI's Climate Predictability Tool'." File ~/anaconda3/envs/pycpt_environment/lib/python3.10/site-packages/cptcore-1.0.10-py3.9.egg/cptcore/utilities.py:323, in install_cpt_linux() 321 subprocess.call(['make'], cwd=str((path/'fortran'/'Linux'/'CPT'/'17.7.4').absolute())) 322 CPT_EXECUTABLE = (path / 'fortran' / 'Linux' / 'CPT' / '17.7.4').absolute() / 'CPT.x' --> 323 assert CPT_EXECUTABLE.is_file(), 'FAILED TO COMPILE CPT' 324 return CPT_EXECUTABLEAssertionError: FAILED TO COMPILE CPT
<image.png>
On Tue, Nov 29, 2022 at 3:29 PM Tamirat Bekele <atomic...@gmail.com> wrote:
Hi Benjamin,Please be a little bit verbose.best,
On Tue, 29 Nov 2022, 15:43 Benjamin Kwenda, <bkw...@gmail.com> wrote:
Greetings to you all. I had to do a fresh installation of PyCPT on my laptop. After doing everything I then tried to run the jupyter notebook. I am getting the error that is attached here.Makefile:6: make.inc: No such file or directory
make[1]: *** No rule to make target 'make.inc'. Stop.
make: *** [Makefile:87: lapack/lapack/liblapack.a] Error 2Regards
<image.png>
To view this discussion on the web visit https://groups.google.com/a/iri.columbia.edu/d/msgid/pycpt-esa/CAEEVC%2Bi0c_VUx-bPj3Bt29XL6R7RSGm8%3DB0ZSAtgATikKsZiKQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/iri.columbia.edu/d/msgid/pycpt-esa/9407519B-99C7-434F-BEAC-BAEB388D2DE6%40iri.columbia.edu.
Change file name make.inc.example to make.inc..../pycpt_environment\lib\python3.9\site-packages\cptcore-1.0.8-py3.8\cptcore\fortran\Linux\CPT\17.7.4\lapack\lapack
mv make.inc.example make.inc
On Nov 29, 2022, at 9:40 AM, KEENNESS MANG'ANDA <pke...@gmail.com> wrote:Here is the path, I managed to find it..../pycpt_environment\lib\python3.9\site-packages\cptcore-1.0.8-py3.8\cptcore\fortran\Linux\CPT\17.7.4\lapack\lapack'''''''''''''''''''The Lord is my shepherd, I shall not want''''''''''''''''''''''''''''''''Phone: (+265) 993 042 180BlantyreP.O. Box 1808Department of climate change and Meteorological servicesRegardsKeenness Mang'andaPrincipal MeteorologistOn Tue, 29 Nov 2022 at 16:33, KEENNESS MANG'ANDA <pke...@gmail.com> wrote:Can you elaborate on the CPT directory, Which directory is this?'''''''''''''''''''The Lord is my shepherd, I shall not want''''''''''''''''''''''''''''''''Phone: (+265) 993 042 180BlantyreP.O. Box 1808Department of climate change and Meteorological servicesRegardsKeenness Mang'andaPrincipal Meteorologist
To view this discussion on the web visit https://groups.google.com/a/iri.columbia.edu/d/msgid/pycpt-esa/9407519B-99C7-434F-BEAC-BAEB388D2DE6%40iri.columbia.edu.
For more options, visit https://groups.google.com/a/iri.columbia.edu/d/optout.
To view this discussion on the web visit https://groups.google.com/a/iri.columbia.edu/d/msgid/pycpt-esa/9407519B-99C7-434F-BEAC-BAEB388D2DE6%40iri.columbia.edu.
PermissionError Traceback (most recent call last) Cell In [3], line 2 1 # Uncomment the following line & change the config filepath to save this configuration: ----> 2 config_file = ce.save_configuration('test1.config', download_args, cpt_args, MOS, predictor_names, predictand_name ) 4 # Uncomment the following line & change the config filepath to load an existing configuration: 5 MOS, download_args, cpt_args, predictor_names, predictand_name = ce.load_configuration('test1.config') File ~/anaconda3/envs/pycpt_environment/lib/python3.10/site-packages/cptextras-1.0.3-py3.9.egg/cptextras/configuration.py:87, in save_configuration(fname, download_args2, cpt_args2, MOS, predictors, predictand) 83 tosave['cptcore_version'] = cc.__version__ 84 tosave['cptextras_version'] = __version__ ---> 87 with open(fname, 'w') as f: 88 json.dump(tosave, f, indent=4, sort_keys=True) 90 return fname PermissionError: [Errno 13] Permission denied: 'test1.config'
Regards
To view this discussion on the web visit https://groups.google.com/a/iri.columbia.edu/d/msgid/pycpt-esa/CAEEVC%2BjoS85e_%3DX-rTpyyFUm-UivRsiiQRct21kOiGYmzgSqbQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/iri.columbia.edu/d/msgid/pycpt-esa/B627B19C-21FC-4444-8E66-5EC840B79F16%40iri.columbia.edu.
> >>> <mailto:pke...@gmail.com>> wrote:
> >>>
> >>> Here is the path, I managed to find it
> >>> ..../pycpt_environment\lib\python3.9\site-packages\cptcore-1.0.8-py3.8\c
> >>> ptcore\fortran\Linux\CPT\17.7.4\lapack\lapack
> >>>
> >>> Regards
> >>> Keenness Mang'anda
> >>> Principal Meteorologist
> >>>
> >>> Department of climate change and Meteorological services
> >>> P.O. Box 1808
> >>> Blantyre
> >>> Phone: (+265) 993 042 180
> >>> '''''''''''''''''''The Lord is my shepherd, I shall not
> >>> want''''''''''''''''''''''''''''''''>>>
> >>> On Tue, 29 Nov 2022 at 16:33, KEENNESS MANG'ANDA <pke...@gmail.com <mailto:pke...@gmail.com>> wrote:
> >>>> Can you elaborate on the CPT directory, Which directory is this?
> >>>>
> >>>> Regards
> >>>> Keenness Mang'anda
> >>>> Principal Meteorologist
> >>>>
> >>>> Department of climate change and Meteorological services
> >>>> P.O. Box 1808
> >>>> Blantyre
> >>>> Phone: (+265) 993 042 180
> >>>> '''''''''''''''''''The Lord is my shepherd, I shall not
> >>>> want''''''''''''''''''''''''''''''''>>>>
> >>>> On Tue, 29 Nov 2022 at 16:18, Bohar Singh <bo...@iri.columbia.edu <mailto:bo...@iri.columbia.edu>> wrote:
> >>>>> Hi Benjamin,
> >>>>>
> >>>>> It’s lapack library bug.
> >>>>> To solve this problem
> >>>>> Manually go to CPT directory and then
> >>>>> cd lapack/lapack
> >>>>> mv make.inc.example make.inc
> >>>>>
> >>>>> Now run cell 1 again
> >>>>>
> >>>>> Let us know if it works
> >>>>>
> >>>>> Regards
> >>>>> Bohar
> >>>>>
> >>>>>> On Nov 29, 2022, at 9:07 AM, Benjamin Kwenda <bkw...@gmail.com
> >>>>>>> <mailto:bkw...@gmail.com>> wrote: Greetings to you all. I had to
> >>>>>>> do a fresh installation of PyCPT on my laptop. After doing
> >>>>>>> everything I then tried to run the jupyter notebook. I am getting
> >>>>>>> the error that is attached here.
> >>>>>>>
> >>>>>>> Makefile:6: make.inc: No such file or directory
> >>>>>>> make[1]: *** No rule to make target 'make.inc'. Stop.
> >>>>>>> make: *** [Makefile:87: lapack/lapack/liblapack.a] Error 2
> >>>>>>>
> >>>>>>> Regards
> >>>>>>> <image.png>
> >>>>>>>
> >>>>>>> --
> >>>>>>> Benjamin M Kwenda
> >>>>>>> Agriculture Meteorologist
> >>>>>>> Long Range Forecasting
> >>>>>>> Meteorological Services Department
> >>>>>>> Belvedere, Harare
> >>>>>>> (+263) 773504696
> >>>>>>> Skype: bkwenda_1
> >>>>>>>
> >>>>>>> Scientists of today think deeply instead of clearly. One must be
> >>>>>>> sane to think clearly, but one can think deeply and be quite
> >>>>>>> insane!!!!- Nikola Tesla
> >>>>>>>
> >>>>>>> --
> >>>>>>> You received this message because you are subscribed to the Google
> >>>>>>> Groups "pycpt-esa" group. To unsubscribe from this group and stop
> >>>>>>> receiving emails from it, send an email to
> >>>>>>> pycpt-esa+...@iri.columbia.edu
> >>>>>>> <mailto:pycpt-esa+...@iri.columbia.edu>. To view this
> >>>>>>> discussion on the web visit
> >>>>>>> https://groups.google.com/a/iri.columbia.edu/d/msgid/pycpt-esa/CAEE
> >>>>>>> VC%2BjH6aLfXvV3ycBqcqTSw1feXOCDrq%2Bz%3DZRnCqQzNtGcYQ%40mail.gmail.c
> >>>>>>> om
> >>>>>>> <https://groups.google.com/a/iri.columbia.edu/d/msgid/pycpt-esa/CAE
> >>>>>>> EVC%2BjH6aLfXvV3ycBqcqTSw1feXOCDrq%2Bz%3DZRnCqQzNtGcYQ%40mail.gmail.
> >>>>>>> com?utm_medium=email&utm_source=footer>. For more options, visit
> >>>>>>> https://groups.google.com/a/iri.columbia.edu/d/optout.>>
> >> Best Regards
> >> Bohar Singh Ph.D.
> >> Associate Research Scientist
> >> International Research Institute for Climate and Society
> >> The Earth Institute at Columbia University
> >> 61 Route 9W Monell Building
> >> Palisades, NY 10964-8000
Hi Andrew,
Yes, I often facing this issue too. As Angel mentioned, the existence of a file should be checked and either deleted, renamed, or forcefully overwritten.
regards,
--
Tamirat Bekele
Addis Ababa University
Cell: +251911152860
skype: tamirat.bekele
To unsubscribe from this group and stop receiving emails from it, send an email to pycpt-esa+...@iri.columbia.edu.
To view this discussion on the web visit https://groups.google.com/a/iri.columbia.edu/d/msgid/pycpt-esa/B33BBB9D-6E11-40A2-B858-D1242F71CD6F%40getmailspring.com.
I would like to know how we can incorporate ENACTS Data (local Data) into Pycpt instead of using CHIRPS data. Where can I add the path to ENACTS data?