Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing Python Libraries #228

Open
KafayatYusuf opened this issue Mar 16, 2024 · 8 comments · May be fixed by #239
Open

Installing Python Libraries #228

KafayatYusuf opened this issue Mar 16, 2024 · 8 comments · May be fixed by #239

Comments

@KafayatYusuf
Copy link

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
Copy link
Author

Bug to be fixed by installing of python libraries

@tony-nyagah
Copy link

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.

@robel16
Copy link

robel16 commented Mar 18, 2024

Hello, @KafayatYusuf, @spwoodcock, I want to work on this issue can you assign me, please?

@spwoodcock
Copy link
Member

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 👍

@robel16
Copy link

robel16 commented Mar 22, 2024

Hello, @spwoodcock , @kshitijrajsharma if I add the psycopg2 in the requirement.txt file would it solve this issue? where should I add the Documentation

@kshitijrajsharma
Copy link
Member

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 .

@robel16 robel16 linked a pull request Mar 23, 2024 that will close this issue
7 tasks
@robel16
Copy link

robel16 commented Mar 23, 2024

Thank you for your Response @kshitijrajsharma I created the PR based on your and Sam's instruction can you Review it please Issue 228

@robel16
Copy link

robel16 commented Mar 25, 2024

Hello @kshitijrajsharma can you please review my PR so that I can proceed to another issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants