Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCUMENTATION] GBIF_USER and GBIF_PWD missing but needed #94

Open
bwakkie opened this issue Dec 23, 2021 · 2 comments
Open

[DOCUMENTATION] GBIF_USER and GBIF_PWD missing but needed #94

bwakkie opened this issue Dec 23, 2021 · 2 comments
Milestone

Comments

@bwakkie
Copy link

bwakkie commented Dec 23, 2021

When I try to download occurrences to a taxon family I am getting the following errors...

occ.download('taxonKey = 6920')
ValueError: GBIF_USER not supplied and no entry in environmental variables

occ.download(user = "USER", 'taxonKey = 6920')
ValueError: GBIF_PWD not supplied and no entry in environmental

... but if both your gbif.org user and pwd are supplied it only works:

occ.download(user = "USER", pwd = "[PASSWORD], 'taxonKey = 6920')

I could not find this directly in the documentation https://pygbif.readthedocs.io/en/latest/docs/usecases.html

@nickynicolson
Copy link

The use of environment variables to specify GBIF_USER, GBIF_PWD and GBIF_EMAIL is specified in the API documentation for the download method: https://pygbif.readthedocs.io/en/latest/modules/occurrence.html#pygbif.occurrences.download
I suppose it is not currently included in the use case as this does not extend to use of the download functionality. I agree, the use case could be expanded to cover setup of environment variables and download as an extra step.

@bwakkie
Copy link
Author

bwakkie commented Jan 11, 2022

Or both methods as they both work.

@CecSve CecSve added this to the v0.6.5 milestone May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants