ultimate-fastapi-tutorial icon indicating copy to clipboard operation
ultimate-fastapi-tutorial copied to clipboard

Code does not run with Python 3.9

Open olaf7 opened this issue 4 years ago • 0 comments

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)

olaf7 avatar Nov 24 '21 16:11 olaf7