OCHA-DAP / hdx-cli-toolkit

A commandline tool for interacting with HDX with a view to doing bulk updates
MIT License
1 stars 0 forks source link

Configuration command check not working for certain installations #36

Closed IanHopkinson closed 3 weeks ago

IanHopkinson commented 2 months ago

The configuration command is working fitfully with hdx-toolkit with an error:

AttributeError: type object 'User' has no attribute 'check_current_user_organization_access'

I think this arises because the call signature for the User.check_current_user_organization_access function in hdx-python-api changed between versions 6.3.0 and 6.3.1 and was not available in versions prior to 6.3.0. The pyproject.toml file used to specify an old version of hdx-python-api

IanHopkinson commented 2 months ago

Pin the version of hdx-python-api, add a --version command to the CLI and add instructions on update in pipx.