#Python script which requires module

1 messages · Page 1 of 1 (latest)

onyx mantle
#

Hi,
I have prepared a script for gathering the data for waste schedule, for I need bs4 (required) and requests (this can be changed).
I need an automation that could trigger this once per day. I was thinking of creating the virtual env inside the config so it will persist the installed packages and then using shell_command - however when I call script I got errors:

  • cd /config && venv/bin/python scrap_waste.py - error code 127
  • run_scrap.sh - error code 126

The shell script is simple executing the same command. Both commands works in terminal.
What is the proper way of creating such automation? Am I going in good direction?