Go to advanced search

by biker67
Wed Feb 27, 2019 3:33 pm
Forum: Beginners
Topic: I can't run program at boot on RPi 3B+ with Raspian
Replies: 21
Views: 988

Re: I can't run program at boot on RPi 3B+ with Raspian

and it was updated before this post about missing directories.
by biker67
Wed Feb 27, 2019 12:25 am
Forum: Beginners
Topic: I can't run program at boot on RPi 3B+ with Raspian
Replies: 21
Views: 988

Re: I can't run program at boot on RPi 3B+ with Raspian

/home/pi/.config/lxsession/LXDE-pi/autostart supposedly I have very recently downloaded Raspian jessie to a dedicated sd card. This is another unusual suggestion. The directory lxsession is not present in the .config directory. How does an operating system know to keep tumbling thru directories to ...
by biker67
Tue Feb 26, 2019 10:15 pm
Forum: Beginners
Topic: I can't run program at boot on RPi 3B+ with Raspian
Replies: 21
Views: 988

Re: I can't run program at boot on RPi 3B+ with Raspian

@psmanfm is in the sacred first 4 lines of autostart. The path error (less n)was because I tried to type from memory. I never put an autostart in~/.config..... and one was not there. The only partial starts at boot have occurred when autostart located in /home/pi is invoked after booting to terminal...
by biker67
Tue Feb 26, 2019 4:17 am
Forum: Beginners
Topic: I can't run program at boot on RPi 3B+ with Raspian
Replies: 21
Views: 988

Re: I can't run program at boot on RPi 3B+ with Raspian

it does not start from desktop with autostart in "/etc/xdg/lxsessio/LXDE-pi/autostart.

autostart removed from /home/pi

I will probably be back at it tomorrow.
by biker67
Tue Feb 26, 2019 3:50 am
Forum: Beginners
Topic: I can't run program at boot on RPi 3B+ with Raspian
Replies: 21
Views: 988

Re: I can't run program at boot on RPi 3B+ with Raspian

autostart attemps to run in terminal but not in desktop.
Is an ENABLE step required . I have seen enable elsewhere.
I did do "sudo chmod +x autostart" earlier on which was accepted by terminal.
by biker67
Tue Feb 26, 2019 3:47 am
Forum: Beginners
Topic: I can't run program at boot on RPi 3B+ with Raspian
Replies: 21
Views: 988

Re: I can't run program at boot on RPi 3B+ with Raspian

Code: Select all

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
point-rpi
@python3 /home/pi/exp.py
located in /home/pi

there is no sign of the code being run.
RPi boots to desktop and stops.
by biker67
Tue Feb 26, 2019 3:06 am
Forum: Beginners
Topic: I can't run program at boot on RPi 3B+ with Raspian
Replies: 21
Views: 988

Re: I can't run program at boot on RPi 3B+ with Raspian

I did all of those things and rebooted. It boots to desktop.
What next? do you want whole program?
by biker67
Tue Feb 26, 2019 1:53 am
Forum: Beginners
Topic: I can't run program at boot on RPi 3B+ with Raspian
Replies: 21
Views: 988

Re: I can't run program at boot on RPi 3B+ with Raspian

autostart failed.jpg I very carefully made the 5 line autostart file in /home/pi and made it executable. I booted to console with autologin as pi. The picture of final boot screen indicates the programming language is too critical of my program at this point in time. AutoStart failed again. top of ...
by biker67
Mon Feb 25, 2019 10:52 pm
Forum: Beginners
Topic: I can't run program at boot on RPi 3B+ with Raspian
Replies: 21
Views: 988

Re: I can't run program at boot on RPi 3B+ with Raspian

This is biker67 (the one who started the topic), I have clear and simple description of the problem:: If I type "python3 /home/pi/exp.py &" at the terminal prompt; my graphics program runs perfectly full screen and can be terminated with and exit at the terminal prompt back to the GUI screen. When I...
by biker67
Sat Feb 23, 2019 2:25 am
Forum: Beginners
Topic: I can't run program at boot on RPi 3B+ with Raspian
Replies: 21
Views: 988

I can't run program at boot on RPi 3B+ with Raspian

#!/usr/bin python3 import tkinter import RPi.GPIO as GPIO top = tkinter.Tk() import random This the shebang necessary at top of the program. The program is made executable at the console using chmod +X /home/pi/exp.py #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuse...
by biker67
Thu Dec 20, 2018 2:26 pm
Forum: Python
Topic: Two different standards of programming in effect
Replies: 19
Views: 1296

Re: Two different standards of programming in effect

Paeryn, You can see that the three (red2, Choice & green2) rectangles completely cover the white rect_id rectangle so to all intents and purposes that white rectangle as you have it will never be seen. This is exactly right IF the program worked that way. After the on / off decision is made the Gree...
by biker67
Wed Dec 19, 2018 10:23 pm
Forum: Python
Topic: Two different standards of programming in effect
Replies: 19
Views: 1296

Re: Two different standards of programming in effect

Paeryn, Your last code ran on my win 10 as well as the RPi 3B+. I used the style of placing global statements in the functions as needed. By neccessity I could then delete variable declarations outside the function.. Things are a lot neater now. The rect_id can be saved at the time a rectangle is cr...
by biker67
Tue Dec 18, 2018 6:54 pm
Forum: Python
Topic: Two different standards of programming in effect
Replies: 19
Views: 1296

Re: Two different standards of programming in effect

Paeryn, Is there an import statement at the top of your functioning program that is not in my program. I can not get rect_id to work but it does not cause an error. I have included the entire C.create_rectangle(x1, y1, (x1+width), (y1+height),fill=color,width=0) behind rect_id= I have reduced it to ...
by biker67
Sat Dec 15, 2018 2:22 am
Forum: Python
Topic: Two different standards of programming in effect
Replies: 19
Views: 1296

Re: Two different standards of programming in effect

Thanks for the rect_Id concept. I'll work on deleting rectangles vs painting over and full screen while waiting for auto start solution to materialize.
by biker67
Fri Dec 14, 2018 8:34 pm
Forum: Python
Topic: Two different standards of programming in effect
Replies: 19
Views: 1296

Re: Two different standards of programming in effect

To answer the shell question first. When I click on the IDLE python35 Icon the Top the IDLE page says Python 3.5.3 Shell. This where I enter script and test it with run module. Removing root did not cause an error as did its absence earlier on. Thanks. I probably did not use a method or tool requiri...
by biker67
Fri Dec 14, 2018 2:07 pm
Forum: Python
Topic: Two different standards of programming in effect
Replies: 19
Views: 1296

Re: Two different standards of programming in effect

I have python 3.5.3 on the raspberry pi as shipped and python 3.5.3 on the Win 10 64 bit Lenovo desktop. Initially python 3.7.1 was on the desktop because of python website suggestions.The incompatibility BUGS appear to reside entirely on the RPi 3b+. I think I'm describing a BUG about capital T and...
by biker67
Fri Dec 14, 2018 3:15 am
Forum: Python
Topic: Two different standards of programming in effect
Replies: 19
Views: 1296

Re: Two different standards of programming in effect

After 2 or more hours of using raspi-config to autoboot with login to GUI, I can say that my hodgepodge of software and equipment come to closer to an auto start booting to console and depending on /etc/profile to launch. Nothing visible occurs going the LXDE route. I did discover more evidence of m...
by biker67
Thu Dec 13, 2018 11:06 pm
Forum: Python
Topic: Two different standards of programming in effect
Replies: 19
Views: 1296

Re: Two different standards of programming in effect

I know of that method. I will try once again.
by biker67
Thu Dec 13, 2018 3:18 pm
Forum: Python
Topic: Two different standards of programming in effect
Replies: 19
Views: 1296

Two different standards of programming in effect

I have written 2 programs that do the same thing. One in python 3.7.1 and the last in 3.5.3. My RPi 3B+ has 3.5.3 on it and has rejected both programs at the beginning of auto start. It appeared to reject the program with turtle.setup(799, 479) in the header. I thought let me switch to tkinter graph...
by biker67
Mon Dec 10, 2018 2:32 pm
Forum: Beginners
Topic: errors at run time under auto start
Replies: 4
Views: 314

Re: errors at run time under auto start

This are the errors produced by the copied exmpleary from above. My plan was to grab a perfect program and run it thorough the auto start process to prove that it can be done. =============== RESTART: /home/pi/mypigraphics/monday_temp.py =============== Traceback (most recent call last): File "/home...
by biker67
Mon Dec 10, 2018 3:37 am
Forum: Beginners
Topic: errors at run time under auto start
Replies: 4
Views: 314

Re: errors at run time under auto start

here is a picture perfect example of a copied program (one of many) that runs in python 3.7.1 BUT at the same time is generating red ink on the shell page; meaning it probably will not run from autostart; in the same manner that my program runs from "run Module" but hangs up if asked to auto run. Is...
by biker67
Sun Dec 09, 2018 10:30 pm
Forum: Beginners
Topic: errors at run time under auto start
Replies: 4
Views: 314

errors at run time under auto start

This code is the product of all my previous post and runs without error using "run module". Most recently I have been hungup on getting auto start to function at boot. With the URL listed below , I think that start at boot is possible. There is a problem however. A raspberry pi post is the source of...
by biker67
Sun Dec 09, 2018 8:14 pm
Forum: Beginners
Topic: autorun at reboot not working RPI 3b+
Replies: 8
Views: 1069

Re: autorun at reboot not working RPI 3b+

https://www.raspberrypi-spy.co.uk/2015/02/how-to-autorun-a-python-script-on-raspberry-pi-boot/ The URL above has logical info to create an auto start. A. sudo raspi-config..... allows for setting the boot plan for your system just like F1..F8...F12 has over the years on windows computers . B. sudo ...
by biker67
Sat Dec 08, 2018 2:03 am
Forum: Beginners
Topic: autorun at reboot not working RPI 3b+
Replies: 8
Views: 1069

Re: autorun at reboot not working RPI 3b+

This code is my /etc/xdg/lxsession/LXDE/autostart file that fails to start the program at boot.

Code: Select all

@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
@sudo /usr/bin/python3 /home/pi/mypigraphics/workingget_color.py
by biker67
Fri Dec 07, 2018 5:31 pm
Forum: Beginners
Topic: autorun at reboot not working RPI 3b+
Replies: 8
Views: 1069

Re: autorun at reboot not working RPI 3b+

[code elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi echo Running at boot sudo python3 /home/pi/mypigraphics/workingget_color.py ][/code] I put a "3" on python and saved the ".bashrc" file and rebooted. Went to desktop as usual. BUT when I clicked on the terminal my program ran....

Go to advanced search