ITA-Solar / helita

A Python library for solar physics from the Institute of Theoretical Astrophysics, University of Oslo
BSD 3-Clause "New" or "Revised" License
9 stars 17 forks source link

No such file or directory: helita/io/anapyio.c #24

Closed retifrav closed 3 years ago

retifrav commented 3 years ago

Hello. I was following this installation instructions, but unfortunately couldn't install Helita neither using pip nor via setup.py. I get this error:

...
clang: helita/io/anapyio.c
clang: helita/io/src/libf0.c
clang: helita/io/src/anacompress.c
clang: helita/io/src/anadecompress.c
clang: error: no such file or directory: 'helita/io/anapyio.c'
clang: error: no input files

And indeed, there is no helita/io/anapyio.c in the repository. Am I perhaps missing something?

My environment is on Mac OS:

$ sw_vers -productVersion
10.15.7

$ python --version
Python 3.8.7

$ pip --version
pip 20.3.3 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)

$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.28)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

$ gfortran --version
GNU Fortran (Homebrew GCC 10.2.0_2) 10.2.0
retifrav commented 3 years ago

Oh, silly me, I was missing cython package.

tiagopereira commented 3 years ago

Yes, you need cython to build the .c file from the .pyx.