AttributeError: module 'llama_cpp.server' has no attribute 'app' #1
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
security-related
wontfix
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: ChaoticByte/Eucalyptus-Chat#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This looks great, but I seem to have an issue with importing the llama-cpp api server.
File "~/Eucalyptus-Chat/api-server.py", line 22, in
uvicorn.run(server.app, host=args.host, port=args.port)
AttributeError: module 'llama_cpp.server' has no attribute 'app'
I've tried referring to app.py in llama-cpp-python/llama_cpp/server directly and then the api-server starts but throws a module error. not sure if this is a bug or something strange on my system.
I was able to reproduce the error. Seems like the developer of llama-cpp-python made an API change without raising the major version of the pip package.
should be fixed now :)
working perfectly now, thank you!