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

Drop Python 3.2 support #9751

Open
4 of 8 tasks
yan12125 opened this issue Jun 11, 2016 · 3 comments
Open
4 of 8 tasks

Drop Python 3.2 support #9751

yan12125 opened this issue Jun 11, 2016 · 3 comments
Labels

Comments

@yan12125
Copy link
Collaborator

yan12125 commented Jun 11, 2016

  • I've verified and I assure that I'm running youtube-dl 2016.06.11.3

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The latest pip has dropped Python 3.2 support (pypa/pip#3156) . As a result, I can't install pip:

$ python3.2 ~/tmp/get-pip.py --user
/tmp/tmpyhlooe/pip.zip/pip/_vendor/pkg_resources/__init__.py:80: UserWarning: Support for Python 3.0-3.2 has been dropped. Future versions will fail here.
Traceback (most recent call last):
  File "/home/yen/tmp/get-pip.py", line 19177, in <module>
    main()
  File "/home/yen/tmp/get-pip.py", line 194, in main
    bootstrap(tmpdir=tmpdir)
  File "/home/yen/tmp/get-pip.py", line 82, in bootstrap
    import pip
  File "/tmp/tmpyhlooe/pip.zip/pip/__init__.py", line 16, in <module>
  File "/tmp/tmpyhlooe/pip.zip/pip/vcs/mercurial.py", line 9, in <module>
  File "/tmp/tmpyhlooe/pip.zip/pip/download.py", line 36, in <module>
  File "/tmp/tmpyhlooe/pip.zip/pip/utils/ui.py", line 15, in <module>
  File "/tmp/tmpyhlooe/pip.zip/pip/_vendor/progress/bar.py", line 48
    empty_fill = u'∙'
                      ^
SyntaxError: invalid syntax

Reasons for dropping:

A last bit: re on Python 3.2 is broken.

$ python3.2 test/test_all_urls.py  
..F.............
======================================================================
FAIL: test_no_duplicates (__main__.TestAllURLsMatching)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_all_urls.py", line 93, in test_no_duplicates
    self.assertTrue(ie.suitable(url), '%s should match URL %r' % (type(ie).__name__, url))
AssertionError: False is not true : UnicodeBOMIE should match URL '\ufeffhttp://www.youtube.com/watch?v=BaW_jenozKc'

----------------------------------------------------------------------
Ran 16 tests in 1.708s

FAILED (failures=1)

$ python3.2
Python 3.2.6 (default, May 23 2016, 01:08:02) 
[GCC 6.1.1 20160501] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> re.match(r'\ufeff', '\ufeff')
>>> 

UPDATE 2018/01/25:
Blackberry 10 ships Python 3.2 and no 2.x, so 3.2 support should be kept until Blackberry 10 is dropped.
Ref: https://appworld.blackberry.com/webstore/content/32880889

@yan12125
Copy link
Collaborator Author

yan12125 commented Jun 11, 2016

dstufft's statistics for pypi.org: https://caremad.io/2015/04/a-year-of-pypi-downloads/

And discussions on python-dev: https://groups.google.com/forum/#!topic/pypa-dev/Ef0PF2ZGAv0

@hugovk
Copy link

hugovk commented Oct 16, 2017

+1

More reasons for dropping 3.2:


(Related issue: Drop Python 2.6 support #5697)

@yan12125
Copy link
Collaborator Author

@hugovk Thanks for those info. I've opened #14515.

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

Successfully merging a pull request may close this issue.

2 participants