IT/프로젝트

[프로젝트/캡스톤] 메이저인 dot-env 오류

토끼개발자 조르디 2024. 5. 10. 11:37

 

 

 

** 도움받은 글 **

 

https://stackoverflow.com/questions/36538720/module-initialization-error-module-object-has-no-attribute-read-dotenv

 

module initialization error: 'module' object has no attribute 'read_dotenv'

Line 14 of .py file: dotenv.read_dotenv() Yields this error: AttributeError: 'module' object has no attribute 'read_dotenv' (I'm a noob in training... Appreciate the help)

stackoverflow.com

 

https://stackoverflow.com/questions/59622868/why-can-i-not-import-load-dotenv

 

Why can I not import load_dotenv?

I'm trying to code a simple discord bot in python, but it says i cant import load_dotenv, instead giving me this error: Traceback (most recent call last): File "/home/pi/Rotomi/Rotomi.py", line ...

stackoverflow.com