ssh2-python icon indicating copy to clipboard operation
ssh2-python copied to clipboard

Python 3.12 support

Open thewchan opened this issue 2 years ago • 5 comments

Python API in 3.12 seems to have changed particularly:

AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

During build.

thewchan avatar Sep 28 '23 21:09 thewchan

@thewchan here's the relevant section from the release notes.

https://docs.python.org/3.12/whatsnew/3.12.html#configparser

configparser Several names deprecated in the configparser way back in 3.2 have been removed per gh-89336:

configparser.ParsingError no longer has a filename attribute or argument. Use the source attribute and argument instead.

configparser no longer has a SafeConfigParser class. Use the shorter ConfigParser name instead.

configparser.ConfigParser no longer has a readfp method. Use read_file() instead.

JacobCallahan avatar Oct 03 '23 13:10 JacobCallahan

May I ask if this is still being worked on? Did #194 fix this or not? What is the problem? Does it need a new release? 1.0.0 still does not build on python 3.12

besendorf avatar Aug 07 '24 11:08 besendorf

@besendorf since the owner is inactive, I've published a temporary package for 3.12 (terribly) named ssh2-python312.

JacobCallahan avatar Aug 10 '24 00:08 JacobCallahan