Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing LISFLOOD via WSL #176

Open
ersatunal opened this issue Oct 31, 2024 · 1 comment
Open

Installing LISFLOOD via WSL #176

ersatunal opened this issue Oct 31, 2024 · 1 comment

Comments

@ersatunal
Copy link

ersatunal commented Oct 31, 2024

I am trying to install lisflood by using the python source code. I installed the latest anaconda version which is 24.9.2 , and it is located under home/username directory as a default. I also cloned the master branch of the repository, then followed the second steps as creating a lisflood invironment. However, after running to "pip install -r requirements.txt" code line in the wsl terminal (ubuntu) I get an error about GDAL that provided below.
Collecting attrs>=19.3.0 (from -r requirements.txt (line 1))
Downloading attrs-24.2.0-py3-none-any.whl.metadata (11 kB)
Collecting beautifulsoup4>=4.8.1 (from -r requirements.txt (line 2))
Downloading beautifulsoup4-4.12.3-py3-none-any.whl.metadata (3.8 kB)
Collecting cftime>=1.0.4.2 (from -r requirements.txt (line 3))
Downloading cftime-1.6.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.4 kB)
Collecting coverage>=6.0 (from -r requirements.txt (line 4))
Downloading coverage-7.2.7-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (9.7 kB)
Collecting dask>=2021.10.0 (from -r requirements.txt (line 5))
Downloading dask-2022.2.0-py3-none-any.whl.metadata (3.0 kB)
Collecting future>=0.18.0 (from -r requirements.txt (line 6))
Downloading future-1.0.0-py3-none-any.whl.metadata (4.0 kB)
Collecting GDAL>=3.2.0 (from -r requirements.txt (line 7))
Downloading GDAL-3.8.5.tar.gz (802 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 802.6/802.6 kB 6.9 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
running egg_info
creating /tmp/pip-pip-egg-info-15tp1kqs/GDAL.egg-info
writing /tmp/pip-pip-egg-info-15tp1kqs/GDAL.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-15tp1kqs/GDAL.egg-info/dependency_links.txt
writing requirements to /tmp/pip-pip-egg-info-15tp1kqs/GDAL.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-15tp1kqs/GDAL.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-15tp1kqs/GDAL.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "/tmp/pip-install-zwvv7yxl/gdal_e93c1391a03e4db19467864eae57fe83/setup.py", line 382, in
exclude_package_data = exclude_package_data,
File "/home/ersat/anaconda3/envs/lisflood/lib/python3.7/site-packages/setuptools/init.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/home/ersat/anaconda3/envs/lisflood/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/ersat/anaconda3/envs/lisflood/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/ersat/anaconda3/envs/lisflood/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/ersat/anaconda3/envs/lisflood/lib/python3.7/site-packages/setuptools/dist.py", line 963, in run_command
super().run_command(command)
File "/home/ersat/anaconda3/envs/lisflood/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/ersat/anaconda3/envs/lisflood/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 321, in run
self.find_sources()
File "/home/ersat/anaconda3/envs/lisflood/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 329, in find_sources
mm.run()
File "/home/ersat/anaconda3/envs/lisflood/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 551, in run
self.add_defaults()
File "/home/ersat/anaconda3/envs/lisflood/lib/python3.7/site-packages/setuptools/command/egg_info.py", line 589, in add_defaults
sdist.add_defaults(self)
File "/home/ersat/anaconda3/envs/lisflood/lib/python3.7/site-packages/setuptools/command/sdist.py", line 112, in add_defaults
super().add_defaults()
File "/home/ersat/anaconda3/envs/lisflood/lib/python3.7/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults
self._add_defaults_ext()
File "/home/ersat/anaconda3/envs/lisflood/lib/python3.7/site-packages/setuptools/_distutils/command/sdist.py", line 335, in _add_defaults_ext
build_ext = self.get_finalized_command('build_ext')
File "/home/ersat/anaconda3/envs/lisflood/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 305, in get_finalized_command
cmd_obj.ensure_finalized()
File "/home/ersat/anaconda3/envs/lisflood/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
self.finalize_options()
File "/tmp/pip-install-zwvv7yxl/gdal_e93c1391a03e4db19467864eae57fe83/setup.py", line 235, in finalize_options
raise Exception(f"Python bindings of GDAL {version} require at least libgdal {version}, but {library_version} was found")
Exception: Python bindings of GDAL 3.8.5 require at least libgdal 3.8.5, but 3.5.3 was found
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I have tried to solve this problem by updating libgdal package but it does not work.

@doc78
Copy link
Collaborator

doc78 commented Oct 31, 2024

Dear @ersatunal
We are sorry but due to a number of compatibility issues we are not able to give support on Windows systems. We recommend to use Linux (Ubuntu or CentOS). If you have a PC with Windows OS you can run Linux in a Virtual Machine.
BR
Carlo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants