rEpiabm is a new repository which is a R-wrapper around Epiabm. The first step is to extract data using EpiGeoPop but this was not possible without making some changes to both prep.sh and snakefile (see rEpiabm-usage branch).
There are two further issues:
1. error when running pip install -r requirements.txt:
This is the end of the warning message:
'''
:78: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead
WARNING:root:Failed to get options via gdal-config: [Errno 2] No such file or directory: 'gdal-config'
CRITICAL:root:A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
'''
FIX:
This is because Fiona, which is a Python package for reading and writing spatial data, requires GDAL (Geospatial Data Abstraction Library) to be installed on your system first.
On a mac, you can install as follows:
- brew install gdal
- export GDAL_CONFIG=/usr/local/bin/gdal-config
- export GDAL_VERSION=$(gdal-config --version)
2. Downloading files from Natural Earth website
We commented out the lines to extract data from Natural Earth as we could not get them to work and used the following workaround:
FIX:
Also as a note, the user needs to set their environment to Python 3.11.
rEpiabm is a new repository which is a R-wrapper around Epiabm. The first step is to extract data using EpiGeoPop but this was not possible without making some changes to both prep.sh and snakefile (see rEpiabm-usage branch).
There are two further issues:
1. error when running pip install -r requirements.txt:
This is the end of the warning message:
'''
:78: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead
WARNING:root:Failed to get options via gdal-config: [Errno 2] No such file or directory: 'gdal-config'
CRITICAL:root:A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
'''
FIX:
This is because Fiona, which is a Python package for reading and writing spatial data, requires GDAL (Geospatial Data Abstraction Library) to be installed on your system first.
On a mac, you can install as follows:
2. Downloading files from Natural Earth website
We commented out the lines to extract data from Natural Earth as we could not get them to work and used the following workaround:
FIX:
https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_0_countries_lakes.zip
Also as a note, the user needs to set their environment to Python 3.11.