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

TypeError: invalid arguments when starting with Python 3.4.0 #4243

Closed
ivan opened this issue Nov 20, 2014 · 1 comment
Closed

TypeError: invalid arguments when starting with Python 3.4.0 #4243

ivan opened this issue Nov 20, 2014 · 1 comment

Comments

@ivan
Copy link
Contributor

@ivan ivan commented Nov 20, 2014

# git clone https://github.com/rg3/youtube-dl
Cloning into 'youtube-dl'...
remote: Counting objects: 33148, done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 33148 (delta 12), reused 0 (delta 0)
Receiving objects: 100% (33148/33148), 25.64 MiB | 381.00 KiB/s, done.
Resolving deltas: 100% (22297/22297), done.
Checking connectivity... done.
Checking out files: 100% (489/489), done.

# cd youtube-dl

# git log --oneline | head -n 1
e07e931 Work around 2.7.0 deficencies (Fixes #4223)

# PYTHONPATH=. python -m youtube_dl
Usage: __main__.py [options] url [url...]

__main__.py: error: you must provide at least one URL

# PYTHONPATH=. python3 -m youtube_dl 
Traceback (most recent call last):
  File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/at/test/youtube-dl/youtube_dl/__main__.py", line 18, in <module>
    youtube_dl.main()
  File "/home/at/test/youtube-dl/youtube_dl/__init__.py", line 356, in main
    _real_main(argv)
  File "/home/at/test/youtube-dl/youtube_dl/__init__.py", line 65, in _real_main
    parser, opts, args = parseOpts(argv)
  File "/home/at/test/youtube-dl/youtube_dl/options.py", line 122, in parseOpts
    help='print this help text and exit')
  File "/home/at/test/youtube-dl/youtube_dl/compat.py", line 317, in _compat_add_option
    return real_add_option(self, *bargs, **bkwargs)
  File "/usr/lib/python3.4/optparse.py", line 1005, in add_option
    raise TypeError("invalid arguments")
TypeError: invalid arguments

# python3 --version
Python 3.4.0

# uname -a
Linux sand5 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:30:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

The same thing happens with 64-bit Python 3.4.1 on Windows 7.

@ivan
Copy link
Contributor Author

@ivan ivan commented Nov 20, 2014

It works fine with the previous commit, 480b7c3

@phihag phihag closed this in 07e378f Nov 20, 2014
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
1 participant
You can’t perform that action at this time.