Ollienor
Posts: 5
Joined: Tue Feb 10, 2015 9:39 pm

Python Program Changes require reboot. RPi2

Tue Feb 10, 2015 9:57 pm

Got my RPi2 running today, installed all relevant packages to get i2c working and copied my Python programs across from my RPi B.

The programs work perfectly with my hardware exactly as they did on my first Pi.

The problem I have is when I edit my program using leaf editor or gedit, it doesn't matter how much I click save or what edits I make they just don't register until I reboot the Pi which is seriously inconvenient.

I've closed and re-opened console and tried both editing programs, even tried saving under different file name and running that but basically it won't register any changes until reboot.

If I re-open the program in text editor after I've made changes, the changes are visible even across different text editors, it just always runs the un-edited version.

User avatar
Douglas6
Posts: 4874
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Python Program Changes require reboot. RPi2

Tue Feb 10, 2015 10:59 pm

A shot in the dark, but you might try deleting any .pyc files in your working directory.

Ollienor
Posts: 5
Joined: Tue Feb 10, 2015 9:39 pm

Re: Python Program Changes require reboot. RPi2

Sat Mar 14, 2015 11:56 am

I don't know what caused it, but it was the first few boots of the RPi2. I changed nothing and it's fixed now, bizarre.

Return to “Beginners”