Closed gilluc closed 2 years ago
You called your script imbox
and try to import imbox
which is obviously a circular import. Just rename your script.
thank you sebastian, what a noob i am!! i start learning python and i discover dark rules like this one or indent every day ... argh! C or PHP are easier... @. Télécharger BlueMail https://bluemail.me for Desktop Sebastian wrote: You called your script imbox and try to import imbox which is obviously a circular import. Just rename your script. — Reply to this email directly, view it on GitHub https://github.com/martinrusev/imbox/issues/215#issuecomment-1002192109 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AK62CVIPSUCWKKBZBQ2ZJ2DUTHSWBANCNFSM5K33L5ZA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . You are receiving this because you authored the thread.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/martinrusev/imbox/issues/215#issuecomment-1002192109", "url": "https://github.com/martinrusev/imbox/issues/215#issuecomment-1002192109", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
Fixed!
I wanted to check the python imap code on your github page and i got:
PS D:\APPS_DEV_Dev_Sources\WINDOWS\Python> py imbox.py Traceback (most recent call last): File "D:\APPS_DEV_Dev_Sources\WINDOWS\Python\imbox.py", line 1, in
from imbox import Imbox
File "D:\APPS_DEV_Dev_Sources\WINDOWS\Python\imbox.py", line 1, in
from imbox import Imbox
ImportError: cannot import name 'Imbox' from partially initialized module 'imbox' (most likely due to a circular import) (D:\APPS_DEV_Dev_Sources\WINDOWS\Python\imbox.py)
PS D:\APPS_DEV_Dev_Sources\WINDOWS\Python> pip --version
pip 21.3.1 from C:\Users\bosley\AppData\Local\Programs\Python\Python39\lib\site-packages\pip (python 3.9)
PS D:\APPS_DEV_Dev_Sources\WINDOWS\Python> pip show imbox
Name: imbox
Version: 0.9.8
Summary: Python IMAP for Human beings
Home-page: https://github.com/martinrusev/imbox
Author: Martin Rusev
Author-email: martin@amon.cx
License: MIT
Location: c:\users\bosley\appdata\local\programs\python\python39\lib\site-packages
Requires: chardet
Required-by:
PS D:\APPS_DEV_Dev_Sources\WINDOWS\Python>