csyhuang / hn2016_falwa

Python library for computing Finite-Amplitude Local Wave Activity Diagnostics from climate data.
https://hn2016-falwa.readthedocs.io/en/latest/
MIT License
32 stars 16 forks source link

gfortran compile error hn2016_falwa/interpolate_fields.f90 #12

Closed semvijverberg closed 5 years ago

semvijverberg commented 6 years ago

Dear C. Huang,

I get an error like: '''Warning: Unused variable ‘ylat’ declared at (1) [-Wunused-variable] FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag! error: Command "/usr/local/bin/gfortran -Wall -g -fno-second-underscore -m64 -fPIC -O3 -funroll-loops -Ibuild/src.macosx-10.6-x86_64-2.7/build/src.macosx-10.6-x86_64-2.7 -I/Users/semvijverberg/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/Users/semvijverberg/anaconda2/include/python2.7 -c -c hn2016_falwa/interpolate_fields.f90 -o build/temp.macosx-10.6-x86_64-2.7/hn2016_falwa/interpolate_fields.o" failed with exit status 1'''

The full output is in the .txt output. To do this installation I installed the gfortran compiler 'gfortran-8.1-bin.tar.gz'. I tried installing both the normal and the test version, but I get the same error. I do not know what my next step would be to solve/unravel this problem. I hope you can help me.

I am now expert, perhaps I am doing something wrong..

Thanks in advance! Sem

interpolate_fields.f90_error.txt

csyhuang commented 6 years ago

Hi Sem,

Have you tried solutions like this: https://github.com/JulienPeloton/s4cmb/issues/11

I actually have found a bug in the package and will fix it this weekend when I have time. At the moment, may you try again with

python setup.py develop

instead of install to see if that works?

Thanks and please keep each other updated,

Clare

csyhuang commented 5 years ago

Hi Sem,

Have you solved the issues? Please keep me updated, or I'll close the ticket in 10 days.

Thanks,

Clare

semvijverberg commented 5 years ago

Dear Clare,

Thanks a lot for your reminder!

I have been quite busy with different projects so this was set on hold. I will try to look into it next week, sorry for the delay. If I do not find the time before next Friday, feel free to close the ticket and thanks for your help up to now.

Kind regards, Sem Vijverberg

PhD Candidate, Dept. of Water and Climate Risk (WCR) Institute for Environmental studies

[cid:99817534-6418-49DD-B5DB-48B7EEB072AB@vu.local] T +31 20 59 88 941 | sem.vijverberg@vu.nlmailto:sem.vijverberg@vu.nl | Room: C-571 | WORKING DAYS: Mo, Tu, We, Fr VISITING ADDRESS: De Boelelaan 1105, 1081 HV Amsterdam

Op 24 okt. 2018, om 18:45 heeft Clare S. Y. Huang notifications@github.com<mailto:notifications@github.com> het volgende geschreven:

Hi Sem,

Have you solved the issues? Please keep me updated, or I'll close the ticket in 10 days.

Thanks,

Clare

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/csyhuang/hn2016_falwa/issues/12#issuecomment-432736272, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ah6ZIV0ojg6zQ_HkKoOfomy29lSdjahwks5uoJlCgaJpZM4V-F9b.

csyhuang commented 5 years ago

Hi Sem,

No problem. Please let me know if I can help further.

Best,

Clare

semvijverberg commented 5 years ago

Hi Clare,

Yes! The solution by JulienPeloton/s4cmb#11 worked :D. For the anaconda users: I did the things in the following order: (1) Created a Conda env named FALWA for the FALWA package (https://conda.io/docs/user-guide/tasks/manage-environments.html) (2) added the path according to JulienPeloton: paste 'export PATH=/usr/bin:$PATH' in your terminal. (3) used pip install to install it into my conda env: go to the downloaded GitHub folder in terminal and type pip install .

Thanks for your help Clare! Will start working with it, when I'm further with my project.

csyhuang commented 5 years ago

Hi Sem, @semvijverberg

Thanks for the update. Please feel free to contact me if you have any questions regarding the usage of the package. I'm more than happy to help configure the analysis scripts as I've done that for my collaborators. Look forward to hearing about your scientific findings as well.

Cheers,

Clare