CartoDB / carto-python

CARTO Python client
https://carto.com
BSD 3-Clause "New" or "Revised" License
154 stars 62 forks source link

ModuleNotFoundError: No module named 'carto' #173

Open tech-team-rural-mda opened 2 months ago

tech-team-rural-mda commented 2 months ago

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 commented 2 months ago

Similar to #139