Main problem is that when I want to run Python (.py) programs, I get error saying I need to run from the "root". I thought this meant I needed to have my python program in the folder "root". In the Python shell, I am denied access to the "root" folder.
BackGround : New to the Raspberry Pi. I received a new RPi, along with noobie software. I intend to use Python to do most programming. I allowed Raspian and Python to install. During setup I told system to Not boot into GUI (just to be safe).
My program (test.py) will run from the Linux prompt (Outside of the GUI). At bootup, I change the directory to where my file is (cd Marla_Folder). I then type "sudo python test.py". I don't yet know why I need "sudo", but from researching, I discovered that this works.
I now want to work within in the GUI since I can see that the GUI will be easier to work within.
I start the GUI using "startx" and all is well.
Using LXTerminal in my directory, all works well if I type "sudo python test.py. Program runs.
When I use the "IDLE" or "IDLE3" (Python Shell), I open my file (test.py). Another window opens and I can see my program. I then use pull down menu RUN. And I select "RUN MODULE". I get error : Run time error . . . import RPI.GPIO as RPIO . . . no access to /dev/mem" and message saying "Try running as Root"
It seems to me that I have my file in a folder that can't be run from the "root" By the way, I am familiar with old DOS (but not Linux), thus my feeling I have a wrong folder.
QUESTION : I want to use the "Idle" and "Idle3" (Python shells ). I like the way commands are colored to make recognition better. I get error and message telling me to "try running from the root. How can I run from the root when using Idle and Idle3 ? I have tried searching the site here with lots of keywords, and have been unsucsessful.