PacktPublishing / Building-Python-Microservices-with-FastAPI

Building Python Microservices with FastAPI, published by Packt
MIT License
296 stars 140 forks source link

Bug in Ch07b #5

Open Yummy-Yums opened 10 months ago

Yummy-Yums commented 10 months ago

login.py imports _httpbasic in ch07a and ch07b but in the latter , _httpdigest is used , generating the below error

_from api import admin, login, profile, auction, bid File "./api/login.py", line 13, in from security.secure import authenticate, get_password_hash, http_basic ImportError: cannot import name 'httpbasic' from 'security.secure' (./security/secure.py)

can i raise a PR to fix this ?

sjctrags commented 8 months ago

have you installed the plugins?

Yummy-Yums commented 8 months ago

dyu mean requirements? i have installed them .. not quite sure about what you mean by plugins

sjctrags commented 8 months ago

Hmmmm why Python version are you using? It should be working given the recommended Python version in the book