Skip to content

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

@McNugget6750

Description

@McNugget6750

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions