Skip to content

Commit

Permalink
Fix chroma integration failing in cloud (#8057)
Browse files Browse the repository at this point in the history
* moved the pysqlite3 import above chromadb

* fix flake issues

* added noqa to fix flake issues

* fix flake issues

* fix flake issues

* fix merge conflicts

---------

Co-authored-by: dusvyat <13661123+dusvyat@users.noreply.github.com>
  • Loading branch information
MinuraPunchihewa and dusvyat committed Oct 26, 2023
1 parent 3e8a8ba commit b5abd44
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import sys
from collections import OrderedDict
from typing import List, Optional

import chromadb
import pandas as pd

from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE as ARG_TYPE
Expand All @@ -18,8 +16,10 @@
)
from mindsdb.utilities import log

__import__('pysqlite3')
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
import sys
__import__("pysqlite3")
sys.modules["sqlite3"] = sys.modules.pop("pysqlite3")
import chromadb # noqa: E402


class ChromaDBHandler(VectorStoreHandler):
Expand Down

0 comments on commit b5abd44

Please sign in to comment.