Skip to content

Need to rename module ecmwf when updating cdsapi to 0.7.7 #11

@stietsche

Description

@stietsche

What happened?

Updating cdsapi to from 0.7.5 to 0.7.7 causes a name clash between module ecmwf present in ICECAP and a package ecmwf contained in ecmwf-datastores-client which is installed alongside cdsapi==0.7.7.

Need to rename ecmwf.py, e.g. to ecmwf_data_retrievals.py.

What are the steps to reproduce the bug?

  1. conda install cdsapi==0.7.7
  2. change into icecap directory with the Python code
    python3 -c "import cdsapi; cdsapi.Client()"
    --> ModuleNotFoundError: No module named 'ecmwf.datastores'; 'ecmwf' is not a package
  3. change into any other directory and execute
    python3 -c "import cdsapi; cdsapi.Client()"
    --> no error
  4. conda remove ecmwf-datastores-client (will downgrade to cdsapi==0.7.5)
    --> both (2) and (3) work

Version

future

Platform (OS and architecture)

any

Relevant log output

Accompanying data

No response

Organisation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions