HexyeDEV / Telegram-Chatbot-Gpt4Free

This is a Python-based Telegram bot using the telethon library. The bot responds to messages using the evagpt4 reverse engeneered api from OpenGPT repo
MIT License
140 stars 42 forks source link

Fix Pydantic import error #14

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR fixes the Pydantic import error reported in Issue #13. The issue was caused by the missing Pydantic library in the project's environment.

Summary of Changes

Please review and merge this PR to resolve the Pydantic import error.

Fixes #13.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/fix-pydantic-import-error

🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can:

suryasiriki1 commented 1 year ago

This is not working.

ERROR: Cannot install chromadb==0.3.26 and pydantic==1.8.2 because these package versions have conflicting dependencies.

sweep-ai[bot] commented 1 year ago

This is not working.

ERROR: Cannot install chromadb==0.3.26 and pydantic==1.8.2 because these package versions have conflicting dependencies.

Hi @suryasiriki1,

I decided to make the following changes:

File Path Proposed Changes
requirements.txt Modify requirements.txt with contents:
• Replace the current version of chromadb with a version that is compatible with pydantic==1.8.2. This will need to be determined by checking the dependencies of each package.
• Replace the current version of pydantic with a version that is compatible with chromadb. This will also need to be determined by checking the dependencies of each package.
suryasiriki1 commented 1 year ago

not working.

ERROR: No matching distribution found for chromadb==0.3.28

sweep-ai[bot] commented 1 year ago

not working.

ERROR: No matching distribution found for chromadb==0.3.28

Hi @suryasiriki1,

I decided to make the following changes:

File Path Proposed Changes
requirements.txt Modify requirements.txt with contents:
• Replace the line "chromadb==0.3.28" with the line "chromadb==", where is the chosen version of chromadb that is available and compatible with the project.
fislysandi commented 1 year ago

still causes dependency issue when trying to install chromadb appropriate_version

this is the error message " ERROR: Could not find a version that satisfies the requirement chromadb== (from versions: 0.0.3.dev234, 0.0.3.dev332, 0.0.3.dev335, 0.1.dev360, 0.1.dev361, 0.1.dev362, 0.1.dev363, 0.1.dev364, 0.1.dev365, 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.10, 0.3.11, 0.3.12, 0.3.13, 0.3.14, 0.3.15, 0.3.16, 0.3.17, 0.3.18, 0.3.20, 0.3.21, 0.3.22, 0.3.23, 0.3.25, 0.3.26, 0.3.27, 0.3.29, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 0.4.8, 0.4.9) ERROR: No matching distribution found for chromadb== "

sweep-ai[bot] commented 1 year ago

still causes dependency conflict when trying to pull chromadb appropriate_version

this is the error message " ERROR: Could not find a version that satisfies the requirement chromadb== (from versions: 0.0.3.dev234, 0.0.3.dev332, 0.0.3.dev335, 0.1.dev360, 0.1.dev361, 0.1.dev362, 0.1.dev363, 0.1.dev364, 0.1.dev365, 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.10, 0.3.11, 0.3.12, 0.3.13, 0.3.14, 0.3.15, 0.3.16, 0.3.17, 0.3.18, 0.3.20, 0.3.21, 0.3.22, 0.3.23, 0.3.25, 0.3.26, 0.3.27, 0.3.29, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 0.4.8, 0.4.9) ERROR: No matching distribution found for chromadb== "

Hi @fislysandi,

I decided to make the following changes:

File Path Proposed Changes
requirements.txt Modify requirements.txt with contents:
• Replace the line "chromadb==" with "chromadb==0.4.9", which is the latest version available according to the error message.
HexyeDEV commented 1 year ago

Looks more like an issue with python version