ultimate-fastapi-tutorial
ultimate-fastapi-tutorial copied to clipboard
Code does not run with Python 3.9
I am trying to use this code on Debian Stable. I created a virtualenv whoch uses Python 3.9.2. The importing mechanism is no longer compatible with the code. Adding paths helps. So at various locations I added: import sys,os sys.path.append("..") # fix py2/py relative path issue p = os.path.abspath(".") sys.path.insert(1, p)