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 python2 support #11813

Merged
merged 1 commit into from
Mar 7, 2020
Merged

Drop python2 support #11813

merged 1 commit into from
Mar 7, 2020

Conversation

Chocobo1
Copy link
Member

@Chocobo1 Chocobo1 commented Jan 3, 2020

I think it is better to drop py2 at next major release (v4.3.0), but sledgehammer999 can make the final decision (whether to have it in v4.2.x).

@Chocobo1 Chocobo1 added the Search engine Issues related to the search engine/search plugins functionality label Jan 3, 2020
@Chocobo1 Chocobo1 added this to the 4.3.0 milestone Jan 3, 2020
@FranciscoPombal
Copy link
Member

Don't forget to change Utils::ForeignApps::PythonInfo::isSupportedVersion()

@Chocobo1
Copy link
Member Author

Chocobo1 commented Jan 3, 2020

Don't forget to change Utils::ForeignApps::PythonInfo::isSupportedVersion()

Thanks, done.

@sledgehammer999
Copy link
Member

What about macOS? IIRC Apple still ships python2 only. @Kolcha can you confirm?

@Kolcha
Copy link
Contributor

Kolcha commented Jan 3, 2020

What about macOS? IIRC Apple still ships python2 only. @Kolcha can you confirm?

since macOS Catalina (10.15) Apple ships 2 Python versions: 2.7 and 3.7
python2 is used by default (python command)
any previous macOS has only python2

@FranciscoPombal
Copy link
Member

What about macOS? IIRC Apple still ships python2 only. @Kolcha can you confirm?

since macOS Catalina (10.15) Apple ships 2 Python versions: 2.7 and 3.7
python2 is used by default (python command)
any previous macOS has only python2

macOS 10.9 (Mavericks) users and above can also install python from the official website, like windows users. There's also homebrew.

@Kolcha
Copy link
Contributor

Kolcha commented Jan 4, 2020

10.9 is too old, almost nothing will work on too old macOS. I used it until January 2018, and had to upgrade to 10.12 because I couldn't use most video players (which able to play my files) and even Firefox...
nowadays masOS 10.12 (Sierra) is common minimum, qBittorrent is not an exception. Moreover, when qBittorrent will use Qt 5.14, this minimum will raise to 10.13 (High Sierra)

@FranciscoPombal
Copy link
Member

10.9 is too old, almost nothing will work on too old macOS. I used it until January 2018, and had to upgrade to 10.12 because I couldn't use most video players (which able to play my files) and even Firefox...
nowadays masOS 10.12 (Sierra) is common minimum, qBittorrent is not an exception. Moreover, when qBittorrent will use Qt 5.14, this minimum will raise to 10.13 (High Sierra)

Great, less backwards compatibility to worry about.

@ngosang
Copy link
Member

ngosang commented Jan 4, 2020

@Chocobo1 @sledgehammer999 Here we are talking about removing all the Python code qbittorrent/search-plugins#121 Please take a look. I want to hear from you.
IMHO, if you agree with that proposal, it will be better to do it all at once instead of merging this PR. If not, users will complain 2 times, about updating Python and later about Jackett integration.

@Chocobo1
Copy link
Member Author

Chocobo1 commented Jan 5, 2020

IMHO, if you agree with that proposal, it will be better to do it all at once instead of merging this PR.

I think dropping py2 is independent of the jacket integration and both are better suited targeting future qbt v4.3.0 so that users won't see the intermediate steps/pain.
I'm saying that because there is no manpower to ensure jacket integration will happen in near future.

@sledgehammer999
Copy link
Member

FYI, from the answers I got for macOS I am satisfied with dropping python2.

@glassez
Copy link
Member

glassez commented Jan 8, 2020

I think dropping py2 is independent of the jacket integration and both are better suited targeting future qbt v4.3.0

IIRC, Jacket integration means that we remove all python related stuff, isn't it?
So dropping python 2 support has any sense only if we will keep support "legacy" search feature.

@Chocobo1
Copy link
Member Author

Chocobo1 commented Jan 8, 2020

So dropping python 2 support has any sense only if we will keep support "legacy" search feature.

IMO we will keep python3 support until jacket integration happens (which has no ETA currently).

@glassez
Copy link
Member

glassez commented Jan 8, 2020

we will keep python3 support until jacket integration happens (which has no ETA now).

But you want drop python 2 support in qBittorrent 4.3 that has no ETA now as well...
Or do you just want it to "blink your eyes" here for the case v4.3 is released before the Jacket support?
IMO, if there's no strong reason to keep support python 2 let's drop it now.

@Chocobo1
Copy link
Member Author

Chocobo1 commented Jan 8, 2020

But you want drop python 2 support in qBittorrent 4.3 that has no ETA now as well...

As said in the very first post, sledgehammer999 can make the final decision.
The point is (also said before) dropping py2 support is independent of the jacket integration. Those are 2 separate issues and removal of all python support can happen in graduate steps/PRs.

Or do you just want it to "blink your eyes" here for the case v4.3 is released before the Jacket support?

I don't get your idiom but that is a possibility.

IMO, if there's no strong reason to keep support python 2 let's drop it now.

Obviously there is strong urge (to drop it) from the community.

@Chocobo1
Copy link
Member Author

PR updated. Move unrelated commits to PR #11862.

@zero77
Copy link

zero77 commented Jan 11, 2020

@Chocobo1
There should be a visible warning letting users know they need to upgrade to python3.
Otherwise there will lightly be lots of issues opened, reporting bugs or asking why its not working.

@Chocobo1
Copy link
Member Author

There should be a visible warning letting users know they need to upgrade to python3.
Otherwise there will lightly be lots of issues opened, reporting bugs or asking why its not working.

It will stop working yes. However for Windows users it will also jump out a dialog asking to download & install python3. For other OS (linux & macOS), a log message will be recorded that python3 was not found and qbt can't really offer much in this case.

@Chocobo1 Chocobo1 force-pushed the python branch 2 times, most recently from fcbfb91 to da467e7 Compare February 8, 2020 04:30
@nazar-pc
Copy link

nazar-pc commented Mar 4, 2020

This actually becomes a problem on Ubuntu 20.04 already. Are there blockers that prevent this from being merged?

@Chocobo1
Copy link
Member Author

Chocobo1 commented Mar 5, 2020

Are there blockers that prevent this from being merged?

Still waiting for the green signal from the project maintainer (see the first post) ...

@ngosang
Copy link
Member

ngosang commented Mar 5, 2020

Since there isn't any progress with Jackett I have changed my mind. I'm in favor of merging this PR.
@Chocobo1 Change the minimum version to Python 3.5.0, previous versions are deprecated.
https://devguide.python.org/devcycle/#end-of-life-branches
We should inform of Python changes in the Changelog or the website so there are less issues.

@Chocobo1
Copy link
Member Author

Chocobo1 commented Mar 5, 2020

@Chocobo1 Change the minimum version to Python 3.5.0, previous versions are deprecated.

Better in another PR, feel free to open one!

@ngosang
Copy link
Member

ngosang commented Mar 6, 2020

Better in another PR, feel free to open one!

I will after this one is merged.

@Chocobo1 Chocobo1 merged commit dc4e9e3 into qbittorrent:master Mar 7, 2020
@Chocobo1 Chocobo1 deleted the python branch March 7, 2020 02:18
@Chocobo1
Copy link
Member Author

Chocobo1 commented Mar 7, 2020

I decided to land this in master branch, whether to have it in v4.2.x will be decided by our maintainer.

@sledgehammer999
Copy link
Member

I decided to land this in master branch, whether to have it in v4.2.x will be decided by our maintainer.

Sorry that you missed #11813 (comment)

@iWrite4u
Copy link

Why was my issue closed? I know qBitTorrent no longer works with Python 2.x. When I open the latest version I get the message 'upgrade your python' ... but I HAVE python3.8.1. All other apps that use python use the version of 3.8.1. on my machine. The new version of qBitTorrent is not recognising that python 3.8.1. is installed.
python

@nazar-pc
Copy link

Also Ubuntu package from PPA still depends on python, not python3 package

@FranciscoPombal
Copy link
Member

Why was my issue closed? I know qBitTorrent no longer works with Python 2.x. When I open the latest version I get the message 'upgrade your python' ... but I HAVE python3.8.1. All other apps that use python use the version of 3.8.1. on my machine. The new version of qBitTorrent is not recognising that python 3.8.1. is installed.
python

Sorry for the misunderstanding, I have re-opened the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Search engine Issues related to the search engine/search plugins functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants