https://retellai.com/?utm_source=discord&utm_medium=seo logo
No module named 'retell'
# ❓・bug-report
n
Even after installing with pip
(prototype_env) palashkala@Palashs-MacBook-Pro prototype % pip3 show retell Name: retell Version: 0.5.1 Summary: retell sdk Home-page: UNKNOWN Author: retell Author-email: License: UNKNOWN Location: /Users/palashkala/Documents/Consumer research/prototype/prototype_env/lib/python3.12/site-packages Requires: certifi, charset-normalizer, dataclasses-json, idna, jsonpath-python, marshmallow, mypy-extensions, packaging, python-dateutil, requests, six, typing-extensions, typing-inspect, urllib3 Required-by: (prototype_env) palashkala@Palashs-MacBook-Pro prototype % flask --app main run Usage: flask run [OPTIONS] Try 'flask run --help' for help. Error: While importing 'main', an ImportError was raised: Traceback (most recent call last): File "/Users/palashkala/Documents/Consumer research/prototype/prototype_env/lib/python3.12/site-packages/flask/cli.py", line 245, in locate_app __import__(module_name) File "/Users/palashkala/Documents/Consumer research/prototype/main.py", line 4, in from retell import Retell ModuleNotFoundError: No module named 'retell' (prototype_env) palashkala@Palashs-MacBook-Pro prototype %
# Importing flask module in the project is mandatory # An object of Flask class is our WSGI application. from flask import Flask from retell import Retell # Flask constructor takes the name of # current module (__name__) as argument. app = Flask(__name__) # The route() function of the Flask class is a decorator, # which tells the application which URL should call # the associated function. @app.route('/') # ‘/’ URL is bound with hello_world() function. def hello_world(): client = Retell( api_key="API_KEY", ) call = client.call.create( from_number="FROM_NUMBER", to_number="TO_NUMBER", ) return call.agent_id # main driver function if __name__ == '__main__': # run() method of Flask class runs the application # on the local development server. app.run()
@retellai @Todd - Cofounder@Retell AI this is a big blocker
I had to install retell-sdk to make it work I was installing retell
y
@notsure2995 Thank you for updating, this issue been driving me crazy. Was seeing it clearly installed in packakges lol