Open GypsyDangerous opened 5 years ago
Possibly a duplicate of #85 Although this is on Windows and not Mac OS, same error.
so am i platform-mac OS 10.15.3
Any update on this??
You named your file p5.py
.
Then it loads your own file, which has indeed no run()
.
I made the same mistake.
I have the same problem here. The file is saved as "Untitled.py".
from p5 import *
def setup(): size(800,600)
def draw(): background(0)
run()
Update - Fixed: I had two conflicting python versions installed 3.9 and 3.10 . I am using Visual Studio Code. When I checked the python packages installed (Settings>Code>Python), p5 and GLFW were installed under version 3.9 and it was interpreting the code under 3.10.
still having the same issue tho jsut on new python files(?)
what could be the problem?
Can you share the folder structure?
I installed p5 with pip using
pip install p5 --user
and i installed GLFW version 3.3 and added it to PATH. When i tried to run a p5py sketch it gives me an error saying that the run function is not defined. how can i fix this?.here is the code i am trying to run
my relevant specs are: Windows 10 Python 3 GLFW 3.3
here is the error report python gives me: