Skip to content

ModuleNotFoundError: No module named 'carto' #173

@tech-team-rural-mda

Description

@tech-team-rural-mda

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions