Script on startup

hi all, im trying to run a python script on boo (before and without user login so without “startup application”)
i have tried several method like rc, crontab, service.
but none of them worked does anyone know how can i fix it?

You may need configure the environment like patch for the python.

Can you explain more?

I mean you need to check the environment for the python need to ready.

Some added information: If your program requires a GUI, then auto starting before there is a GUI would cause failure. Similarly, if you have a GUI, but the application is running as the wrong user or does not set the DISPLAY environment variable to point at the GUI, then this too would fail. There is a lot more to know about what the script does and how it works on command line before anyone can figure out why it fails.