qwebirc icon indicating copy to clipboard operation
qwebirc copied to clipboard

Python 2 is EOL

Open Strykar opened this issue 5 years ago • 13 comments

https://www.python.org/doc/sunset-python-2/

Is a rewrite in Python 3 on the road map? The other decent alternatives all use node.js sadly.

Strykar avatar Dec 22 '19 02:12 Strykar

I've been keeping an eye on twisted's port to python3 for a while

I was kinda hoping they'd have finished it by now, apparently it's partially done

I'll have a look

retropc avatar Feb 17 '20 21:02 retropc

@retropc Got a link to the repo, it doesn't show when I search?

Strykar avatar Feb 21 '20 00:02 Strykar

I haven't done it yet, I mean to shortly

retropc avatar Feb 23 '20 00:02 retropc

I have a question about this, as I'm running qWebIRC on a very old system, where Python 3 simply can't be installed anymore (and node.js can't, either).

Will this mean that qWebIRC will stop working with Python 2 in case of a rewrite for Python 3?

Thanks!

GrandAdmiralThrawn avatar Jun 23 '20 09:06 GrandAdmiralThrawn

upgrade the system?

I'm running python 3 on debian buster quite happily on my 2011 raspberry pi

retropc avatar Jun 23 '20 12:06 retropc

It's a Windows 2000 machine actually. And the specific hardware has a bug in the processors (running quad Pentium Pro chips, early "Klamath" Pentium II's have the bug as well). The bug is related to symmetric multi-processing and L2 cache dirty TLB shootdown in the OS kernel. Anything equal to or newer than NT 5.2 (Server 2003) enforces this feature, creating a very problematic state in which system memory becomes inconsistent with L2 cache memory.

You can either disable dirty TLB shootdown (not possible with Windows) or disable SMP (crippling the system, downgrading it from four to one processors).

You can consider it a "private museum server" of sorts, so I'm fine with running an old version of qWebIRC. I was just curious about this part.

GrandAdmiralThrawn avatar Jun 23 '20 15:06 GrandAdmiralThrawn

probably get yourself a raspberry pi if you want to keep running it

will probably be more powerful than that box, and use a lot less power!

retropc avatar Jun 27 '20 23:06 retropc

probably get yourself a raspberry pi if you want to keep running it

will probably be more powerful than that box, and use a lot less power!

Very much correct, but it's not about speed or power consumption. ;) I just really like that machine and wanna see just how far I can push it. The minimum I'm aiming for is 30 years of near-continuous operation, and it's already reached 24 years. Plus, it is (as far as I know) the last one of its type still operational in the entire world - it's an IBM PC Server 704.

But that's totally off-topic here. ;)

GrandAdmiralThrawn avatar Jun 28 '20 13:06 GrandAdmiralThrawn

new here, if it is on python 3 I ll use it.

mahengrui1 avatar Jan 14 '21 01:01 mahengrui1

I've made an attempt at a Python 3 port at https://github.com/mas90/qwebirc/tree/python3 (not quite confident enough in it yet to open a PR, but I'm using it and it seems to work!). If you're interested, please test it.

Some unusual code paths such as the QuakeNet authentication stuff are definitely untested.

This will almost certainly no longer work in Python 2, but as the OP said, Python 2 is EOL :-)

mas90 avatar Apr 25 '21 15:04 mas90

hi Malcom

thanks, you seem to have saved me quite a bit of work!

I'll have a good look at it this weekend

cheers

retropc avatar Apr 27 '21 01:04 retropc

@mas90 no problems with unicode handling? Guess I should try it out!

@retropc anything us remaining qwebirc users can do other than help test it?

wilhelmy avatar Mar 02 '23 13:03 wilhelmy

I've just submitted #401, please test. Cheers

wilhelmy avatar May 28 '23 17:05 wilhelmy