>
> Traceback (most recent call last):
>   File "./pyx.py", line 3, in ?
>     from pyx import *
>   File "pyx.py", line 5, in ?
>     c = canvas.canvas()
> NameError: name 'canvas' is not defined
>
> What's wrong?

This is nothing to do with pyx.

You've named your file pyx.py, so when you "import pyx", it tries to
import this very same file. The import statement looks first in the
current directory.

Try renaming your pyx.py to test.py. Make sure you get rid of the
pyx.pyc as well.

-- 
Brett Calcott
Philosophy Program
Research School of Social Sciences
Australian National University
http://www.ruminant-marsupial.net

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to