Jump to content
  • 0

web_server.py auto-start on RPi reboot



Hi all,

I've successfully installed an MCC 172 DAQHAT into RPi 4B using the arm64 version of "Debian GNU/Linux 11 (bullseye)".

I am able to run the web_server.py example program from within its folder, and can access the graphs on a Windows 10 PC connected to the Rpi using CAT6 cable.

To autostart the webserver upon Rpi reboot, I created a launcher.sh file in the folder where web_server.py resides. It runs fine when I launch it within the folder where web_server.py resides, but I get a cronlog error when I reboot the Rpi:

Traceback (most recent call last):
  File "/home/jacques/daqhats/examples/python/mcc172/web_server/./web_server.py>
    from dash import Dash
ModuleNotFoundError: No module named 'dash'


I've uploaded launcher.sh to this ticket (filename suffix renamed to abc).

It appears I have Python 3.9.2 installed here:


The dash modules seem to be installed in that folder.

Where am I going wrong? I notice Github states Python3.4 to be used, so should I downgrade?

Thank you


Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...