You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installed pip in the Terminal via curl -o get-pip.py https://bootstrap.pypa.io/get-pip.py, followed by python3 get-pip.py.
Installed fastapi in the Terminal via pip3 install fastapi.
Issues encountered and a resolution
Issue 1: fastapi not being recognized in the editor.
Resolve:
Opening the command palette via the (Ctrl + Shift + P) command
Typing and selecting Python: Select Interpreter w/the path pointing to my project folder
The uvicorn command not being recognized when trying to run the python demo app due to its binaries not being in the Terminal PATH for it to be picked up. Instead, I was able to launch the app via python3 -m uvicorn starter:app --reload- After exiting the uvicorn web server and closing the app in the browser, I changed the contents of the file and tried to reload the server. Unfortunately, I ran into the No Module named uvicorn found which could possibly be due to a deeper installation issue (initial speculation). I discovered this by running the pip3 list command in the terminal and didn't see either fastapi or uvicorn modules installed. Will need to be resolved later.
Issue 2: When trying to import png into the the steganography.py file, the Import "png" could not be resolve Pylance(reportMissingImports) warning message was returned
Resolve:
Searched for the error message and found a resolve on stackOverflow which instructed to do the following:
Run pip3 install pypng
The import png line of code should work
Future Implementation (TODOs):
Expand upon the CRUD operations in the purpose section
Fix distorted image that's being generated in the steganographic step