Comments (2)
@Sci-pio Thanks for raising the issue. This has been on my backlog for a few weeks (shoutout to @richardarsenault).
The situation here is pretty simple: In order to install RavenPy
you must have system-level NetCDF4 libraries in order to compile the RavenHydroFramework
model (supplied by the raven-hydro
package on PyPI: https://pypi.org/project/raven-hydro/). We don't offer wheels (binaries) on PyPI since there are a lot of configurations possible (Widows/macOS/Linux * x86_64/x86/AArch64/PowerPC/etc.). Each binary has a size of around 3 MB, and space is limited on PyPI.
There's also the issue around licensing of binaries. We would need to be compiling a library that provides NetCDF4
and the RavenHydroFramework
library. Each of these have licensing specifications that we need to respect: NetCDF-C and RavenHydroFramework. In order to provide a binary for RavenHydroFramework on PyPI (via raven-hydro
), the Artistic License 2.0 asks that we add a bunch of documentation, which is feasible but is extra effort. I can open a ticket about this.
The alternative approach is to have the NetCDF4 libraries on your system already. Unidata provides some pre-built binaries of NetCDF4 (https://docs.unidata.ucar.edu/netcdf-c/current/winbin.html), but unfortunately, installing these libraries requires access to a Windows 10/11 UI (AFAIK, there are no command-line approaches to installing these libraries; believe me, I've spent many hours looking into this, but if you know of a way, please share it!).
If Anaconda Python is not available, this makes it nearly impossible to ensure Windows support in a pure Python installation is guaranteed.
All this being said, here's my suggestion:
- Install the NetCDF4 binaries in your Windows system, ensuring that they're available in your shell (try running
$ nc-config
to test this). - Then try installing
raven-hydro
:$ pip install raven-hydro
- If that all works, try installing
xhydro
aftewards:$ pip install xhydro
.
If it's alright with you, I'd like to transfer this issue to https://github.com/Ouranosinc/raven-hydro since it really belongs there. Would that be alright?
from xhydro.
@Sci-pio Please post any updates in Ouranosinc/raven-hydro#41. Transferring issues between organisations isn't allowed.
from xhydro.
Related Issues (20)
- Bug dans Notebook local_frequency_analysis HOT 4
- Adding the notebooks under Usage instead of at the root level
- Standardizing and sharing n-dimensional array hydrometric datasets as inputs for XHydro HOT 9
- Importations xscen HOT 1
- Add a ReadTheDocs workflow
- Cleaner environment HOT 3
- README HOT 1
- Add the xhydro planification
- value n'affiche pas ce qu'il faut pour les indicateurs HOT 2
- return_period affiche la fréquence
- Mettre à jour les instructions d'installation
- Ajouter la traduction automatique de la documentation HOT 3
- Problème avec importation de ravenpy HOT 3
- Endroit pour déposer les données pour les tests et la documentation HOT 6
- Geospatial operations for hydrological analysis
- Document the Translation process
- Pydantic update is breaking xscen and xhydro HOT 2
- Utilisation / installer de xhydro (ou une partie) avec Pip HOT 5
- Modélisation hydrologique par classes ou par dictionnaire HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xhydro.