lpelabs / reDocs.ai

Full codebase to developer standard documentation harnessing AI!
MIT License
6 stars 3 forks source link

Setup Issue[Solved] #13

Closed GamerDra closed 2 months ago

GamerDra commented 2 months ago

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

image

HridayM25 commented 2 months ago

Can you try :

!pip install langchain==0.0.316 !pip install openai==0.28.1

GamerDra commented 2 months ago

apparently when the requirements(pip install -r requirements.txt) was run it encountered an error

image

I did try pip install distutils-pytest before running it

marcdhi commented 2 months ago

apparently when the requirements(pip install -r requirements.txt) was run it encountered a error

image

I did try pip install distutils-pytest before running it

Hi @GamerDra, can you please try deleting venv and then try the following steps again?

  1. python -m venv venv - or - python3 -m venv venv
  2. Activate venv - source venv/bin/activate or ./venv/Scripts/activate
  3. pip install -r requirements.txt
  4. echo "OPEN_AI_API=sk-your-key" > .env
  5. MOCK=True uvicorn main:app --reload

Let me know if you are still facing issues

GamerDra commented 2 months ago

i did try doing the setup again, unfortunately same error, all the modules till numpy are installed, after which image

marcdhi commented 2 months ago

i did try doing the setup again, unfortunately same error, all the modules till numpy are installed, after which image

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

GamerDra commented 2 months ago

@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 commented 2 months ago

@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

GamerDra commented 2 months ago

Thank you:)