Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in prepare_manpage.py #10273

Closed
remitamine opened this issue Aug 9, 2016 · 1 comment
Closed

error in prepare_manpage.py #10273

remitamine opened this issue Aug 9, 2016 · 1 comment

Comments

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Aug 9, 2016

  • I've verified and I assure that I'm running youtube-dl 2016.08.07
  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Bug report (encountered problems with youtube-dl)

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

make
zip --quiet youtube-dl youtube_dl/*.py youtube_dl/*/*.py
zip --quiet --junk-paths youtube-dl youtube_dl/__main__.py
echo '#!/usr/bin/env python' > youtube-dl
cat youtube-dl.zip >> youtube-dl
rm youtube-dl.zip
chmod a+x youtube-dl
COLUMNS=80 /usr/bin/env python youtube_dl/__main__.py --help | /usr/bin/env python devscripts/make_readme.py
/usr/bin/env python devscripts/make_contributing.py README.md CONTRIBUTING.md
pandoc -f markdown -t plain README.md -o README.txt
/usr/bin/env python devscripts/prepare_manpage.py youtube-dl.1.temp.md
Traceback (most recent call last):
  File "devscripts/prepare_manpage.py", line 74, in <module>
    main()
  File "devscripts/prepare_manpage.py", line 39, in main
    readme = filter_options(readme)
  File "devscripts/prepare_manpage.py", line 57, in filter_options
    option, description = re.split(r'\s{2,}', line.lstrip())
ValueError: not enough values to unpack (expected 2, got 1)
make: *** [Makefile:72: youtube-dl.1] Error 1

Description of your issue, suggested solution and other information

the error is related to:

            if line.lstrip().startswith('-'):
                option, description = re.split(r'\s{2,}', line.lstrip())

when it tries to process this line in README.md:

                                     --max-sleep-interval.
@dstftw dstftw closed this in cc9c8ce Aug 9, 2016
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Aug 9, 2016

Thanks. It's my fault that not considering such a case at the first time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.