-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
Running into this error, any solution to get it running?
Still fairly new to this and I'm sure it's straightforward fix.
Cheers 🙏
[INFO] 2023-04-20 11:17:29.78 | api:create_service:75 | Creating service
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 31, in import_from_string
instance = getattr(instance, attr_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'examples.ex4' has no attribute 'chain'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/langcorn", line 8, in <module>
sys.exit(entrypoint())
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langcorn/__main__.py", line 17, in entrypoint
fire.Fire(T())
File "/usr/local/lib/python3.11/site-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fire/core.py", line 475, in _Fire
component, remaining_args = _CallAndUpdateTrace(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langcorn/__main__.py", line 9, in server
app = api.create_service(*lc, auth_token=auth_token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/langcorn/server/api.py", line 82, in create_service
chain = import_from_string(lang_app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 34, in import_from_string
raise ImportFromStringError(
uvicorn.importer.ImportFromStringError: Attribute "chain" not found in module "examples.ex4".
Metadata
Metadata
Assignees
Labels
No labels