AWS glue job parameters error

0

I am trying to use chromadb in AWS Glue, it's throwing out the below error,

RuntimeError: Your system has an unsupported version of sqlite3. Chroma requires sqlite3 >= 3.35.0.

I tried to add to both chromadb and sqlite3 modules in job parameters, as chromadb==0.4.13,sqlite3==3.35.0. And then i get this error-

Some pip modules could not be installed. This may mean that you have requested a module that does not exist or produced an error: sqlite3==3.35.0,chromadb==0.4.13. Any suggestions on how to resolve would be helpful.

Tej
질문됨 8달 전386회 조회
1개 답변
1
수락된 답변

Hi Tej,

To resolve the SQLite version issue, please follow the troubleshooting steps provided by Chroma in their official docs. [1]

Chroma requires SQLite > 3.35, if you encounter issues with having too low of a SQLite version please try the following.

1. Install the latest version of Python 3.10, sometimes lower versions of python are bundled with older versions of SQLite.
2. If you are on a Linux system, you can install pysqlite3-binary, pip install pysqlite3-binary and then override the default sqlite3 library before running Chroma with the steps here. Alternatively you can compile SQLite from scratch and replace the library in your python installation with the latest version as documented here.
3. If you are on Windows, you can manually download the latest version of SQLite from https://www.sqlite.org/download.html and replace the DLL in your python installation's DLLs folder with the latest version. You can find your python installation path by running os.path.dirname(sys.executable) in python.
4. If you are using a Debian based Docker container, older Debian versions do not have an up to date SQLite, please use bookworm or higher.

Most likely, it should be resolved by using "pysqlit3-binary" which should override the default sqlite3 library. [2]

References:
[1] https://docs.trychroma.com/troubleshooting#sqlite
[2] https://www.pythonanywhere.com/forums/topic/33348/

Please let me know if this resolves the issue.

Thanks,
Atul

profile picture
답변함 8달 전
  • Hi Atul thank you for responding, i am using python shell script in AWS Glue and there are only two versions available which are python 3.6 and python 3.9. I am not sure how to perform all the steps on AWS Glue environment. I have tried including modules in job parameters section but only chroma module is the issue as it needs sqlite3> 3.35 , and i am not sure how to install this on AWS Glue.Could you help me with this?

  • You can try using "--additional-python-modules" to pass "pysqlit3-binary", and work your step further. Refer to this: https://docs.aws.amazon.com/glue/latest/dg/add-job-python.html#create-python-extra-library

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠