basnijholt / miflora

☘️🌑🌼πŸ₯€πŸ‘ Mi Flora Plant sensor Python package
MIT License
362 stars 99 forks source link

ImportError: Cannot import name 'miflora_scanner' #167

Closed remosp closed 2 years ago

remosp commented 2 years ago

Hi

Im trying to execute demo.py on my Raspberry Pi and I just get the message:

from miflora import miflora_scanner ImportError: cannot import name 'miflora_scanner' from partially initialized module 'miflora' (most likely due to a circular import)

Can you tell me, what Im doing wrong? Sorry if that is a stupid question, I'm very new to Python. Many thanks for your help!

remosp commented 2 years ago

Oh I got it! Indeed a stupid one... I named my File miflora.py which causes the error above. After renaming the file it worked great. Thank you for this great script!