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

Python3 #149

Closed
kseistrup opened this issue Sep 6, 2015 · 19 comments
Closed

Python3 #149

kseistrup opened this issue Sep 6, 2015 · 19 comments

Comments

@kseistrup
Copy link
Contributor

Please support Python3.

@ncripshun
Copy link

I'd likely say that someone will eventually port it.

The developer probably wanted to reach as many people as possible as easy as possible. Most OS's such as Mac and popular Linux builds all have Python 2.7 by default.

@kseistrup
Copy link
Contributor Author

(For certain values of “popular”, yes. ArchLinux has Python3 as its default.)

I agree, I just wanted to make sure there was a formal issue concerning this.

@HelloZeroNet
Copy link
Owner

Yes the main reason was the fact that most linux distribution comes with Python 2 and it has more mature libraries. (and the speed is also somewhat better)

Some months ago the gevent event library ported to Python 3, so I think it shouldn't be hard to make the project compatible both with Python 2 and 3.

@DoWhileGeek
Copy link

I've started work on this, hopefully we can get a couple PRs going until we have full agnostic support.

@kseistrup
Copy link
Contributor Author

@DoWhileGeek cool! 👍

@leycec
Copy link
Contributor

leycec commented May 8, 2017

Python 2 is now less than three years from the chopping block. 🔪

ZeroNet's transition to Python 3 needs to be feature complete before 2020, Python 2.7's proposed end-of-life (EOL) date. While feasible and indeed necessary, this transition is likely to prove non-trivial – which is to say, "It's gonna hurt." There's really no getting around that. six helps, but it's no panacea. The syntactic and semantic differences between Python 2 and 3 are sufficiently profound (particularly with respect to string handling) that the two could be said to be different languages entirely – albeit closely related languages.

Ssomeone just needs to bite the thankless bullet and start doing it. The sooner this painful migration begins, the sooner this painful migration ends. Or to paraphrase an ancient Chinese and/or African proverb:

The best time to migrate to Python 3 was two years ago. The second best time is today.

@leycec leycec mentioned this issue May 27, 2017
@yurivict
Copy link

I wonder how do other python projects cope with this problem. How do they manage to run on both 2.X and 3.X systems? Do they all have to use some compatibility interfaces with two implementations behind them?

@skwerlman
Copy link

there are compatibility mechanisms in python to help handle the transition, like the six library, and from __future__ import foo

uqs pushed a commit to freebsd/freebsd-ports that referenced this issue Jul 3, 2017
Zeronet doesn't support Python 3 [1]. Limit to compatible version(s) (2.7)
accordingly.

[1] HelloZeroNet/ZeroNet#149

PR:		220302
Reported by:	Peter Zuidema <peter icebear net>
Submitted by:	Yuri Victorovich <yuri rawbw com> (maintainer)
MFH:		2017Q3


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@444912 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit to freebsd/freebsd-ports that referenced this issue Jul 3, 2017
Zeronet doesn't support Python 3 [1]. Limit to compatible version(s) (2.7)
accordingly.

[1] HelloZeroNet/ZeroNet#149

PR:		220302
Reported by:	Peter Zuidema <peter icebear net>
Submitted by:	Yuri Victorovich <yuri rawbw com> (maintainer)

Approved by:	ports-secteam (blanket)
uqs pushed a commit to freebsd/freebsd-ports that referenced this issue Jul 3, 2017
Zeronet doesn't support Python 3 [1]. Limit to compatible version(s) (2.7)
accordingly.

[1] HelloZeroNet/ZeroNet#149

PR:		220302
Reported by:	Peter Zuidema <peter icebear net>
Submitted by:	Yuri Victorovich <yuri rawbw com> (maintainer)
MFH:		2017Q3
@sergei-bondarenko
Copy link
Contributor

sergei-bondarenko commented Aug 15, 2017

@HelloZeroNet Please, add some labels on this issue, it's important.

@HelloZeroNet
Copy link
Owner

HelloZeroNet commented Nov 3, 2017

I have not started working on it yet, so no ETA and I have not worked with py3 before, so not sure how hard or painful is the conversion.
I'm not sure if we want to use gevent in py3 as it has built-in async support now. (it would mean dropping py2 compatiblity)

@krixano
Copy link
Contributor

krixano commented Nov 5, 2017

@noxarivis Pestering him isn't gonna make the transfer go any faster. Also, you can't expect someone to know the future like that. Problems arise, etc. which is precisely the reason why pretty much no company gives ETA on things like this. How about you try helping instead?

@HelloZeroNet
Copy link
Owner

Python 2 still supported until 2020 so it's not a priority yet.

@filips123
Copy link
Contributor

@HelloZeroNet Any update?

Some Linux distributions (Ubuntu 18.04) removed Python 2. Users will now have to install Python 2 manually to use ZeroNet.
Also, it is only few more than one year left to transfer project, because Python 2 will not be supported in 2020 anymore.

@HelloZeroNet
Copy link
Owner

HelloZeroNet commented Oct 17, 2018

I will check the possibility and start the experiments later this year.

@krixano
Copy link
Contributor

krixano commented Mar 20, 2019

#1773

@ergoithz
Copy link

ergoithz commented Mar 27, 2019

Python2 in 2019 is (even on 2015 it kinda was) not acceptable. Most mayor distro core packages have already been migrated as Python 2 end of life support is very near. This doesn't make this project very trustworthy on the technical side.

@HelloZeroNet
Copy link
Owner

You can try the python3 version here: https://github.com/HelloZeroNet/ZeroNet/tree/py3

@krixano
Copy link
Contributor

krixano commented Mar 27, 2019

He would have known that had he even looked at the issue I linked to.

@purplesyringa
Copy link
Contributor

Can we close this issue as we have #1773 already?

uqs pushed a commit to freebsd/freebsd-ports that referenced this issue Apr 1, 2021
Zeronet doesn't support Python 3 [1]. Limit to compatible version(s) (2.7)
accordingly.

[1] HelloZeroNet/ZeroNet#149

PR:		220302
Reported by:	Peter Zuidema <peter icebear net>
Submitted by:	Yuri Victorovich <yuri rawbw com> (maintainer)

Approved by:	ports-secteam (blanket)
svmhdvn pushed a commit to svmhdvn/freebsd-ports that referenced this issue Jan 10, 2024
Zeronet doesn't support Python 3 [1]. Limit to compatible version(s) (2.7)
accordingly.

[1] HelloZeroNet/ZeroNet#149

PR:		220302
Reported by:	Peter Zuidema <peter icebear net>
Submitted by:	Yuri Victorovich <yuri rawbw com> (maintainer)
MFH:		2017Q3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

13 participants