jdf / Processing.py-Bugs

A home for all bugs and feature requests about Python Mode for the Processing Development Environment.
41 stars 8 forks source link

circle() not exist. NameError: global name 'circle' #293

Open spencer-park opened 4 years ago

spencer-park commented 4 years ago
def setup():
    size(400,400)

def draw():
    circle(56, 46, 55)

NameError: global name 'circle' is not defined

def setup():
    size(400,400)

def draw():
    square(10, 10, 55)

NameError: global name 'square' is not defined

I use processing 3.5.4 However, there is a circle(), square() function in the reference. (update log Fri Aug 16 21:51:57 2019.) https://py.processing.org/reference/circle.html

FeXd commented 4 years ago

Which version of Python Mode do you have?

You can find this by click on the dropdown on the top right, and clicking Add Module. That should open the Contribution Manager window with the Module tab selected. Pick Python Mode for Processing 3 and it will say your installed version in the bottom left.

I'm guessing that you may have an older version that does not support circle()yet.

Latest version: Screen Shot 2020-05-06 at 10 41 54 AM

msoriaro commented 4 years ago

I am getting the same error while using the processing-py.jar file to execute my script from the command line (processing-py.jar downloaded today, 2020-08-02, I don't know how to get its version number). The Python Mode for the IDE does work fine in my case (version 3059). Are both (processing-py.jar and IDE Python Mode) out of sync somehow? Many thanks for all the great work!

harshaxnim commented 4 years ago

I have the exact same problem. The processing-py.jar version seems to be an older version; for me the jar it's v3017, while the IDE version seems to be v3063.

FeXd commented 4 years ago

I think this might be related / relevant: https://github.com/jdf/processing-py-site/issues/142#issuecomment-574921841