drawille icon indicating copy to clipboard operation
drawille copied to clipboard

ImportError: cannot import name Canvas - Python 3.8 on MacOS BigSur

Open McNugget6750 opened this issue 3 years ago • 0 comments

After successfully installing using the pip command using python3.7, I try running any of the examples. However, I get a Canvas not found error immediately.

$python drawille.py
Traceback (most recent call last):
  File "drawille.py", line 5, in <module>
    from drawille import Canvas
  File "/Users/*********/repos/drawille/drawille.py", line 5, in <module>
    from drawille import Canvas
ImportError: cannot import name Canvas
$python3 drawille.py
Traceback (most recent call last):
  File "drawille.py", line 5, in <module>
    from drawille import Canvas
  File "/Users/*********/repos/thermal_testing/drawille.py", line 5, in <module>
    from drawille import Canvas
ImportError: cannot import name 'Canvas' from partially initialized module 'drawille' (most likely due to a circular import) (/Users/*********/repos/thermal_testing/drawille.py)

McNugget6750 avatar Aug 13 '21 18:08 McNugget6750