librelist archives

« back to archive

Unable to initialize repo

Unable to initialize repo

From:
Nicholas Earl
Date:
2013-12-06 @ 00:05
Hello,

I'm having difficulty initializing the repo. When I use the command blohg
initrepo --repo-path my_blog, I get the following:

/data/nearl/anaconda/lib/python2.7/site-packages/flask_script/__init__.py:170:
UserWarning: create_parser for initrepo command should accept a `parents`
argument
  warnings.warn("create_parser for {0} command should accept a `parents`
argument".format(name))
/data/nearl/anaconda/lib/python2.7/site-packages/flask_script/__init__.py:170:
UserWarning: create_parser for freeze command should accept a `parents`
argument
  warnings.warn("create_parser for {0} command should accept a `parents`
argument".format(name))
/data/nearl/anaconda/lib/python2.7/site-packages/flask_script/__init__.py:170:
UserWarning: create_parser for runserver command should accept a `parents`
argument
  warnings.warn("create_parser for {0} command should accept a `parents`
argument".format(name))
usage: blohg [-h] [--repo-path REPO_PATH] [-e] {initrepo,freeze,runserver}
...
blohg: error: unrecognized arguments: --repo-path my_blog

Happy help would be appreciated.

Nicholas Earl
Graduate Research Assistant
San Diego State University

Re: [blohg] Unable to initialize repo

From:
Greg Ward
Date:
2013-12-12 @ 13:07
On Thu, Dec 5, 2013, at 07:05 PM, Nicholas Earl wrote:
> Hello,
> 
> I'm having difficulty initializing the repo. When I use the command blohg
> initrepo --repo-path my_blog, I get the following:

You forgot to mention which version you're using. That's often relevant.

> usage: blohg [-h] [--repo-path REPO_PATH] [-e]
> {initrepo,freeze,runserver}
> ...
> blohg: error: unrecognized arguments: --repo-path my_blog

I can reproduce that error with the latest version of blohg, but only if
I run

    blohg initrepo '--repo-path foo'

which is not how command-line options typically work with Unix programs.
It's definitely how they work with Python programs that use optparse
and/or argparse! Try:

    blohg initrepo --repo-path foo

Greg

Re: [blohg] Unable to initialize repo

From:
Greg Ward
Date:
2013-12-12 @ 13:07
On Thu, Dec 12, 2013, at 08:07 AM, Greg Ward wrote:
> which is not how command-line options typically work with Unix programs.
> It's definitely how they work with Python programs that use optparse

...definitely *NOT* how they work with Python programs...

(arghhhh)