GeoscienceAustralia / tcrm

A statistical-parametric model for assessing wind hazard from tropical cyclones
http://geoscienceaustralia.github.io/tcrm
Other
80 stars 52 forks source link

Having problems with compile.cmd #149

Open adgelt opened 1 month ago

adgelt commented 1 month ago

I'm getting this issue of not finding the python311.dll in the folder but upon checking there is existing file. What could be the problem?

Looking for python311.dll INFO: Building import library (arch=AMD64): "C:\Users\Gelo\libs\libpython311.a" (from C:\Users\Gelo\python311.dll) error: [WinError 2] The system cannot find the file specified

Screenshot 2024-05-26 231715

wcarthur commented 1 month ago

At present, we haven't built against Python 3.11 on Windows environment, so unsure what may be the cause. If you could provide additional info such as operating system, python version, what package manager you're using (e.g. conda, pip, virtualenv), we may be able to assist.

adgelt commented 3 weeks ago

At present, we haven't built against Python 3.11 on Windows environment, so unsure what may be the cause. If you could provide additional info such as operating system, python version, what package manager you're using (e.g. conda, pip, virtualenv), we may be able to assist.

Hello, I'm using Windows 11 as OS, and tried installing the code using pip. What could be the problem?

adgelt commented 3 weeks ago

Hello, I'm using Windows 11 as OS, and tried installing the code using pip. What could be the problem?

wcarthur commented 2 weeks ago

This still uses an older build method for the FORTRAN extension packages (wind.windmodels, etc.), which is the likely culprit of the error you're seeing. There is a bit of additional complexity in the existing setup.py script that we can do away with (the py2exe components haven't been used in a long time) - I'll take a look at what's needed to update to the newer build systems:

https://packaging.python.org/en/latest/guides/modernize-setup-py-project/

EDIT: Also worth pointing out that you don't need to compile these extensions to run the model. The FORTRAN versions enable a speedup over the pure python implementations (except for akima) which are included.