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

No class NoAuthClient in module carto.auth #170

Open
regan-sarwas opened this issue Feb 2, 2021 · 0 comments
Open

No class NoAuthClient in module carto.auth #170

regan-sarwas opened this issue Feb 2, 2021 · 0 comments

Comments

@regan-sarwas
Copy link

Documentation suggests there is a class NoAuthClient in carto.auth module. However this yields an ImportError

ImportError: cannot import name 'NoAuthClient' from 'carto.auth'

From read-the-docs and the Readme file.

from carto.auth import NoAuthClient

I discovered the class is in pyrestcli.auth but not imported in auth.py. Until the code or documentation is corrected, the following works

from pyrestcli.auth import NoAuthClient

However it issues the following warning when using the send() method on the SQLClient in carto.sql:

UserWarning: You are using methods other than get with no authentication!!!

Maybe it is best to just use the requests module when doing read only queries on a public database?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant