Closed zxqfd555-pw closed 2 months ago
@zxqfd555-pw This may be because your filename hdx.py matches the module name in the library. Please can you try changing your filename and let me know if that helps.
Indeed it was connected with the files test script with the same name present in my test folder. Thank you for your fast reply and sorry for the false alert!
Hello!
I am trying to get access to HDX Datasets with the Python library. I am following this tutorial. I skipped the part with the API key, in the beginning, since I only wanted to read a dataset.
To set the stage, I create a virtual environment and install
hdx-python-api
withpip
:These preparations finish successfully. But then I try to run the Python code from the next sections. So I launch
python
and enter the very first line from item 7. in the doc:And it ends up with an error:
Could you please clarify how can I avoid it and download a dataset? The Python version is 3.11.9.