plone / plonecli

Plone Command Line Client - for creating and working with custom add-ons and themes
https://pypi.org/project/plonecli/
Other
19 stars 10 forks source link

ConfigParser.NoOptionError: No option 'package.git.init' in section: 'variables' #33

Closed MrTango closed 6 years ago

MrTango commented 6 years ago

Description

I tried to configure mrbob with plonecli config

What I Did

$ plonecli config

RUN: mrbob plonecli:configure_mrbob

Welcome to mr.bob interactive mode. Before we generate directory structure, some questions need to be answered.

Answer with a question mark to display help.
Values in square brackets at the end of the questions show the default value if there is no answer.

--> Author's name [Maik Derstappen]: 

--> Author's email [md@derico.de]: 

--> Author's GitHub username [MrTango]: 

--> Default Plone version [5.1-latest]: 

Traceback (most recent call last):
  File "/home/maik/.local/bin/mrbob", line 11, in <module>
    sys.exit(main())
  File "/home/maik/.local/lib/python2.7/site-packages/mrbob/cli.py", line 172, in main
    c.ask_questions()
  File "/home/maik/.local/lib/python2.7/site-packages/mrbob/configurator.py", line 231, in ask_questions
    self.variables[question.name] = question.ask(self)
  File "/home/maik/.local/lib/python2.7/site-packages/mrbob/configurator.py", line 297, in ask
    f(configurator, self)
  File "/home/maik/.local/lib/python2.7/site-packages/plonecli/configure_mrbob.py", line 70, in pre_package_git_init
    default = get_mrbob_config_variable('package.git.init')
  File "/home/maik/.local/lib/python2.7/site-packages/plonecli/configure_mrbob.py", line 37, in get_mrbob_config_variable
    return config.get('variables', varname)
  File "/usr/lib/python2.7/ConfigParser.py", line 618, in get
    raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option 'package.git.init' in section: 'variables'

my current .mrbob file:

$ cat /home/maik/.mrbob 
[mr.bob]
verbose = False

[variables]
author.name = Maik Derstappen
author.email = md@derico.de
author.github.user = MrTango
plone.version = 5.1-latest
#package.git.init = True
#package.git.autocommit = True
#package.git.disabled = True