Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running from boot
(Nov-02-2020, 08:59 PM)Murray6301 Wrote: I loaded the module again in it seemed to load correctly. The program still runs in Thonny. Not sure what is going on.
PS I loaded a simple LED blink program and it ran at boot, so the problem has to be with the w1thermister module.
Thonny comes with own build Python version.
This Python version will not be used when you do @reboot python(now it will use OS python version).
So two ways try to give path to where Thonny's python version is placed.
Or install w1thermsensor to OS Python version pip install w1thermsensor.
From command line test python -V or python3 -V,same with pip pip3 -V it most point to a Python 3.6+ version as Python 2 is dead💀

Using OS python:
@reboot python3 /home/pi/ &
Using Thonny python:
@reboot path_to_thonny/python /home/pi/ &

Messages In This Thread
Running from boot - by Murray6301 - Nov-02-2020, 08:59 PM
RE: Running from boot - by Larz60+ - Nov-03-2020, 03:19 AM
RE: Running from boot - by Murray6301 - Nov-06-2020, 08:21 PM
RE: Running from boot - by Larz60+ - Nov-06-2020, 10:39 PM
RE: Running from boot - by Murray6301 - Nov-07-2020, 03:55 PM
RE: Running from boot - by snippsat - Nov-07-2020, 05:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Script won't run at boot ebolisa 6 951 Mar-21-2020, 08:18 PM
Last Post: ebolisa
  Console crash after boot. friendlymegalomaniac 1 1,448 Apr-07-2018, 05:44 PM
Last Post: wavic
  find my system is single boot or dual boot using python Sachin_d 2 1,649 Nov-02-2017, 09:29 AM
Last Post: Sachin_d

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020