raw-data-api icon indicating copy to clipboard operation
raw-data-api copied to clipboard

Installing Python Libraries

Open KafayatYusuf opened this issue 1 year ago • 8 comments

Describe the bug No guide about installation of python libraries such as fastapi , psycopg2, slowapi, humanize, psutil etc in the local IDE

To Reproduce Steps to reproduce the behavior:

  1. Go to 'main.py'
  2. Run 'line 22'
  3. Scroll down to 'Terminal'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

Desktop (please complete the following information):

  • OS: [Windows 11]
  • Browser [chrome]
  • Version [11]

Additional context Without running pip install psycopg2 in the terminal IDE, it shows error every now and then

KafayatYusuf avatar Mar 16 '24 00:03 KafayatYusuf

Bug to be fixed by installing of python libraries

KafayatYusuf avatar Mar 16 '24 00:03 KafayatYusuf

The steps for local installation are in docs/src/installation/local.md.
You can create a virtual environment then run pip install -r requirements.txt while in the root folder which will install the dependencies.
I hope this helps.

tony-nyagah avatar Mar 17 '24 08:03 tony-nyagah

Most dependencies should install easily with pip.

Psycopg2 is slightly more complex as it requires underlying system libraries to be installed too. There is good documentation about this https://www.psycopg.org/docs/install.html#build-prerequisites

Is there anything else specifically that you feel needs to be addressed?

Including in an install guide might be possible - feel free to work on this & Kshitij can review / decide on if the package needs it 👍

spwoodcock avatar Mar 19 '24 03:03 spwoodcock

Psycopg2 is in requirements.txt . As sam mentioned in order to install psycopg2 using pip it requires to build binary first , We can simply mention this in documentation and redirect user to installation doc that psycopg2 has .

kshitijrajsharma avatar Mar 23 '24 11:03 kshitijrajsharma