fwknop icon indicating copy to clipboard operation
fwknop copied to clipboard

[Enhancement] Advertise Python2 as the only supported python version for the fwknop python extension

Open Coacher opened this issue 10 years ago • 5 comments

Hello.

Currently the fwknop python extension does not specify supported python versions in setup.py or README. This makes using this extension troublesome, since user has to go through the trial-and-error process to determine the required python version. For example, on my machine I am able to use this extension with python 2.7, but not with python 3.3, and I have no clue if this the intended behaviour or not.

Please add the supported Python versions to setup.py. One of the standard ways to do this is through 'classifiers'. See https://docs.python.org/2/distutils/setupscript.html#additional-meta-data Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers

Coacher avatar Jul 29 '15 12:07 Coacher

Agreed, fwknop should publish details on Python version dependencies. Thanks for the suggestion.

mrash avatar Jul 31 '15 02:07 mrash

I've investigated a bit further. On Python 3.4 I have the following error after fko module import attempt:

ImportError: <long_path_here>/_fko.cpython-34.so: undefined symbol: Py_InitModule

This error is due to changes in Python 3 module initialization. See https://docs.python.org/3/howto/cporting.html#module-initialization-and-state And http://python3porting.com/cextensions.html#module-initialization

Therefore fko python module does not have proper Python 3 support atm. Please adjust classifiers accordingly.

Coacher avatar Sep 05 '15 09:09 Coacher

just an idea, but how about fixing python3 support instead of documenting that its only functional for python2? :stuck_out_tongue_winking_eye:

anthraxx avatar Dec 08 '15 12:12 anthraxx

Python3 support would be helpful since Python2 is deprecated, and distributions are starting to remove it.

I'm a terribad python programmer, or I would volunteer to help.

hlein avatar Jan 29 '20 05:01 hlein

As python 2 has been decrepated, I suggest moving py script altogether to py 3, I might be able to offer some help within half a year from now. Will a PR porting to python 3 will be accepted?

exx8 avatar Feb 04 '20 09:02 exx8