Skip to content

rEpiabm data extraction fail #2

Description

@anitaapplegarth

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:

  1. brew install gdal
  2. export GDAL_CONFIG=/usr/local/bin/gdal-config
  3. 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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions