Closed GamerDra closed 2 months ago
Can you try :
!pip install langchain==0.0.316
!pip install openai==0.28.1
apparently when the requirements(pip install -r requirements.txt
) was run it encountered an error
I did try pip install distutils-pytest
before running it
apparently when the requirements(
pip install -r requirements.txt
) was run it encountered a errorI did try
pip install distutils-pytest
before running it
Hi @GamerDra, can you please try deleting venv
and then try the following steps again?
python -m venv venv
- or - python3 -m venv venv
source venv/bin/activate
or ./venv/Scripts/activate
pip install -r requirements.txt
echo "OPEN_AI_API=sk-your-key" > .env
MOCK=True uvicorn main:app --reload
Let me know if you are still facing issues
i did try doing the setup again, unfortunately same error, all the modules till numpy are installed, after which
i did try doing the setup again, unfortunately same error, all the modules till numpy are installed, after which
Ohk seems like there are some issues with your machine's environment, could you try this pip install --upgrade pip setuptools wheel
If that does not work then -
After performing these steps, try installing requirements.txt again
@marcdhi Thank you for your prompt reply/
I noticed it always happened at the numpy installation i went throught the notes of numpy 1.25.2 and the previous and found out it is only compatible till 3.11 where as i had 3.12 (i should have checked this earlier)
NumPy 1.25.2 is a maintenance release that fixes bugs and regressions discovered after the 1.25.1 release. This is the last planned release in the 1.25.x series, the next release will be 1.26.0, which will use the meson build system and support Python 3.12. The Python versions supported by this release are 3.9-3.11.
The NumPy 1.26.0 release is a continuation of the 1.25.x release cycle with the addition of Python 3.12.0 support. Python 3.12 dropped distutils, consequently supporting it required finding a replacement for the setup.py/distutils based build system NumPy was using.
Is it fine if i use 1.26 for the assignment purpose? Or i should switch to 3.11.9?
Source: Numpy release notes
@marcdhi Thank you for your prompt reply/
I noticed it always happened at the numpy installation i went throught the notes of numpy 1.25.2 and the previous and found out it is only compatible till 3.11 where as i had 3.12 (i should have checked this earlier)
NumPy 1.25.2 is a maintenance release that fixes bugs and regressions discovered after the 1.25.1 release. This is the last planned release in the 1.25.x series, the next release will be 1.26.0, which will use the meson build system and support Python 3.12. The Python versions supported by this release are 3.9-3.11.
The NumPy 1.26.0 release is a continuation of the 1.25.x release cycle with the addition of Python 3.12.0 support. Python 3.12 dropped distutils, consequently supporting it required finding a replacement for the setup.py/distutils based build system NumPy was using.
Is it fine if i use 1.26 for the assignment purpose? Or i should switch to 3.11.9?
Source: Numpy release notes
I'm glad you found out the root cause.
Yes, you can use any version, shouldn't be an issue
Thank you:)
Server side setup https://github.com/lpelabs/reDocs.ai/blob/main/server/README.md#from-git-bash-
on running
MOCK=True uvicorn main:app --reload