carto-python icon indicating copy to clipboard operation
carto-python copied to clipboard

ModuleNotFoundError: No module named 'carto'

Open tech-team-rural-mda opened this issue 1 year ago • 1 comments

After following the instructions in the README to install the carto module, I am still not able to import carto in this simple hello-world-like app (named app.py):

    import os
    # import carto
    # from carto import auth
    from carto.auth import APIKeyAuthClient

    USERNAME="ruralinnovation-admin"
    USER_BASE_URL = "https://{user}.[carto.com/](http://carto.com/)".format(user=USERNAME)
    auth_client = auth.APIKeyAuthClient(api_key=os.getenv("CARTO_COM_API_KEY"), base_url=USER_BASE_URL)
Traceback (most recent call last):
  File "/Users/xxxxxxx/app.py", line 4, in <module>
    from carto.auth import APIKeyAuthClient
ModuleNotFoundError: No module named 'carto'

tech-team-rural-mda avatar Jul 03 '24 19:07 tech-team-rural-mda

Similar to #139

tech-team-rural-mda avatar Jul 03 '24 19:07 tech-team-rural-mda