Open burggraaff opened 12 months ago
Hi @burggraaff,
hmm, this looks to me like a linking problem. To be honest, we are pure Linux users so we usually do not test for Windows since we even have no access to Windows machines for development... I also did an installation test on Ubuntu 22.04 and Fedora 38 so I can reaffirm that the Linux installation works just fine.
To me it seems there are two options:
Personally, I'd recommended/ favor to use option 1 if there is no way around Windows.
Hi, I'm trying to install the module and I just can't get it to work.
I'm using pip 23.3.1 with Python 3.11.6, running in administrator mode on Windows 11 Pro. I'm using gfortran through mingw-w64 as a compiler.
I get an error upon trying to install, both when doing
pip install pyprosail
and when cloning this repository and runningpip install .
The console output fills up very quickly with tab warnings (-Wtab
) but it appears that gfortran is happily compiling everything, until the very end:(I've removed the tab warnings from this)
For reference, when I download PROSAIL 5B from the official website and run the included
_compil.bat
file, it immediately compiles without any errors. This leads me to believe the issue is specific to PyProSAIL.I have tried first using gfortran to compile the files in the
./pyprosail
folder myself before installing throughpip install .
- this did not resolve the issue. I tried this by going through each file individually, using the batch file included with the main PROSAIL installation, using the Fortran files from this repo or the ones from the included RAR archive - nothing works. I'm not very familiar with how Python-Fortran extensions/libraries work so I didn't know anything else to try myself.The issue appears to be Windows-specific, because I was able to install it on my Ubuntu laptop without any trouble (through
pip install pyprosail
).