BenjV / SYNO-packages

43 stars 10 forks source link

Medusa 1.2 Python 3 noarch does not start after install #26

Open pragtich opened 3 years ago

pragtich commented 3 years ago

Just installed the Medusa 1.2 Python 3 noarch.spk on my Synology DS214 plus with the Python3 package already installed.

It does not start because of a ImportError: No module named builtins: apparently it is not finding the Python3 package.

The error seems to be in start-stop-status: it fills $APP_START using $PYTHON before $PYHTON contains the correct value. I moved the line filling $APP_START to just before it gets called, and it starts.

...
  APP_START="env LANG=en_US.UTF-8 ${PYTHON} ${SYNOPKG_PKGDEST}/var/src/start.py --daemon --pidfile=${PID_FILE} --datadir=${SYNOPKG_PKGDEST}/var --port=${SYNOPKG_PKGPORT}"
    ${APP_START}
...

Hope that helps!

BenjV commented 3 years ago

Thanks for this report, made a last minute change with this result, my bad. Pushed a Medusa 1.3 package with this correction in it to github.