mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-10-15 18:11:52 +00:00
[GH-ISSUE #100] issue with chromadb not working #66
Labels
No labels
bug
duplicate
planned
pull-request
under consideration
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SillyTavern/SillyTavern-Extras#66
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?
Originally created by @0xYc0d0ne on GitHub (Aug 1, 2023).
Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Extras/issues/100
here is how i got the error
PS C:\Users\User\SillyTavern-extras> python server.py --enable-modules=chromadb --share --secure
Using torch device: cpu
Initializing ChromaDB
Traceback (most recent call last):
File "C:\Users\alpha\SillyTavern-extras\server.py", line 268, in
chromadb_client = chromadb.PersistentClient(path=args.chroma_folder, settings=Settings(anonymized_telemetry=False))
AttributeError: module 'chromadb' has no attribute 'PersistentClient'
also error when trying to purge chromadb in silly tavern terminal window returns this error and silly tavern doesn't show any sign that the chromadb chat was purged from chromadb
127.0.0.1 - - [01/Aug/2023 12:52:35] "POST /api/chromadb/purge HTTP/1.1" 500 -
127.0.0.1 - - [01/Aug/2023 12:52:58] "OPTIONS /api/chromadb/purge HTTP/1.1" 200 -
[2023-08-01 12:52:59,192] ERROR in app: Exception on /api/chromadb/purge [POST]
Traceback (most recent call last):
File "C:\Users\alpha\AppData\Roaming\Python\Python310\site-packages\flask\app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\alpha\AppData\Roaming\Python\Python310\site-packages\flask\app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\alpha\AppData\Roaming\Python\Python310\site-packages\flask_cors\extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "C:\Users\alpha\AppData\Roaming\Python\Python310\site-packages\flask\app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\alpha\AppData\Roaming\Python\Python310\site-packages\flask\app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "C:\Users\alpha\SillyTavern-extras\server.py", line 303, in decorated_view
return fn(*args, **kwargs)
File "C:\Users\alpha\SillyTavern-extras\server.py", line 775, in chromadb_purge
chromadb_client.persist()
AttributeError: 'SegmentAPI' object has no attribute 'persist'
127.0.0.1 - - [01/Aug/2023 12:52:59] "POST /api/chromadb/purge HTTP/1.1" 500 -
so i suspect that chromadb may just be completely broken all together
please fix this issue in another update....
anyone know any solutions if you have ran into this problem yourselves???
@UrBoiTom commented on GitHub (Aug 1, 2023):
Run
pip install --upgrade chromadb@wereretot commented on GitHub (Aug 2, 2023):
Got this error fixed with @Sorro123 solution.
@0xYc0d0ne commented on GitHub (Aug 2, 2023):
@Sorro123 i already ran " pip install --upgrade chromadb" which got chromadb to run but when actually trying to use chromadb i get errors like this
"127.0.0.1 - - [01/Aug/2023 12:52:35] "POST /api/chromadb/purge HTTP/1.1" 500 -
127.0.0.1 - - [01/Aug/2023 12:52:58] "OPTIONS /api/chromadb/purge HTTP/1.1" 200 -
[2023-08-01 12:52:59,192] ERROR in app: Exception on /api/chromadb/purge [POST]
Traceback (most recent call last):
File "C:\Users\alpha\AppData\Roaming\Python\Python310\site-packages\flask\app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\alpha\AppData\Roaming\Python\Python310\site-packages\flask\app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\alpha\AppData\Roaming\Python\Python310\site-packages\flask_cors\extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "C:\Users\alpha\AppData\Roaming\Python\Python310\site-packages\flask\app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\alpha\AppData\Roaming\Python\Python310\site-packages\flask\app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "C:\Users\alpha\SillyTavern-extras\server.py", line 303, in decorated_view
return fn(*args, **kwargs)
File "C:\Users\alpha\SillyTavern-extras\server.py", line 775, in chromadb_purge
chromadb_client.persist()
AttributeError: 'SegmentAPI' object has no attribute 'persist'
127.0.0.1 - - [01/Aug/2023 12:52:59] "POST /api/chromadb/purge HTTP/1.1" 500 -"
@Cohee1207 commented on GitHub (Aug 8, 2023):
I did an update specifically for your case with purge @0xYc0d0ne
github.com/SillyTavern/SillyTavern-extras@5ed3013e45@Cohee1207 commented on GitHub (Sep 3, 2023):
Cleaning up ChromaDB issues into one: https://github.com/SillyTavern/SillyTavern-Extras/issues/110