Problem with the import of Canvas
guillaume8375 opened this issue · comments
Guillaume Athenour commented
I have Python 2.7.6 on Ubuntu 14.04 64b. I typed sudo pip install drawille
to get drawille.
When I tried to run the example put in the README on GitHub, I got the following message:
Traceback (most recent call last):
File "drawille.py", line 2, in <module>
from drawille import Canvas
File "/home/guillaume/Documents/drawille.py", line 2, in <module>
from drawille import Canvas
ImportError: cannot import name Canvas
Adam Tauber commented
Try to use a different filename. drawille.py
conflicts with the module name.
Guillaume Athenour commented
Sorry for this mistake; I'm learning to program, and I still have some problems with the concepts of modules and namespaces. ;-)