aeroo / aeroo_docs

Aeroo DOCS - a document conversion service
GNU General Public License v3.0
10 stars 29 forks source link

aeroo-docs start: error: too few arguments #11

Closed lethanhthien closed 5 years ago

lethanhthien commented 9 years ago

Hi, I follow link(https://www.odoo.com/nl_NL/forum/help-1/question/8-0-how-can-i-install-the-official-aeroo-reports-alistek-for-odoo-version-8-solved-installation-script-76044) instructions. But when I start service aeroo-docs, I get the error: usage: aeroo-docs start [-h] [-c CONFIG_FILE] [-i INTERFACE] [-p PORT] [-w OO_SERVER] [-s OO_PORT] [-d SPOOL_DIRECTORY] [-e SPOOL_EXPIRE] [-t] [-n] [-l LOG_FILE] [-f PID_FILE] {--simple-auth} ... aeroo-docs start: error: too few arguments ps: I using Ubuntu 12.04 OS

I have done something wrong ?

Thanks for your help.

scigghia commented 9 years ago

i get the same error Debian Wheezy

sysadminmatmoz commented 9 years ago

same issue, default config is not created

scigghia commented 9 years ago

error is here: https://github.com/aeroo/aeroo_docs/blob/master/aeroo-docs#L315 also with no config, because script create its internal conf

scigghia commented 9 years ago

no one has this same problem?

StefanRijnhart commented 9 years ago

You are not alone.

StefanRijnhart commented 9 years ago

This comment confirms a problem with Wheezy's Python 3.2 and the optional subparser arguments: https://bugs.python.org/issue9253#msg186387. This affects both the simple-auth bit and the action (start/stop/restart). There is another minor issue with mkdir not taking the positional mode argument in this version of Python.

I can get the script to run by ripping out the simple auth options, changing the mode argument of mkdir into a positional argument and taking out the stop and restart commands as well. And even then, the script seems to ignore all the parameters in the config file. I'm now simply hardcoding my values in the script, and need to write an init script that simply kills the daemon.

scigghia commented 8 years ago

hi any news ? @StefanRijnhart would you share your script?

StefanRijnhart commented 8 years ago

Sorry, I upgraded to Debian Jessie. Problem solved.

scigghia commented 8 years ago

ok, i'll try tnx

scigghia commented 8 years ago

it works on jessie

thanks