PacktPublishing / Building-Python-Microservices-with-FastAPI

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

ModuleNotFoundError: No module named 'dependency_injector' in ch03 project #6

Open hhunng opened 8 months ago

hhunng commented 8 months ago

Hi sir, when I run the application of ch03 project. It shows the error as below:

from dependency_injector.wiring import inject, Provide ModuleNotFoundError: No module named 'dependency_injector'

Although I have tried to install:

pip install dependency_injector pip install dependency_injection and the IDE recognize the package.

I'm using python 3.11.4

sjctrags commented 8 months ago

please install the module first

sjctrags commented 8 months ago

hmmmm i think its the version of Python you use...Please follow the Python version in the book

hhunng commented 8 months ago

In your book, it refers:

The FastAPI framework is a fast, seamless, and robust Python framework but can only work on Python versions 3.6 and above.

And it seems that I'm using the appropriate python version which is 3.11.4

sjctrags commented 8 months ago

Hi, Yeah but in the book I indicated the versions. The depends on modules and its versions. I always specify the versions so please follow them. Do not worry this year we will release a 2nd edition updating the projects to use Python 11. For now please use 8 or 9

Sent from Yahoo Mail for iPhone

On Wednesday, January 3, 2024, 4:51 PM, phihunng @.***> wrote:

In your book, it refers:

The FastAPI framework is a fast, seamless, and robust Python framework but can only work on Python versions 3.6 and above.

And it seems that I'm using the appropriate python version which is 3.11.4

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

hhunng commented 8 months ago

thank you for your support, I'm really hoping for your release!

sjctrags commented 8 months ago

Wow. Thank you. Actually it should been started last November but I am not finished with Mastering Flask 3.x. After this book and its codes, I can start with 2nd edition of FastAPI. Thank you again for your support.

Sent from Yahoo Mail for iPhone

On Wednesday, January 3, 2024, 10:14 PM, phihunng @.***> wrote:

thank you for your support, I'm really hoping for your release!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>