Created attachment 1727507 [details] fix build error on centos 8 I used python-recaptcha-client in CentOS 7 and noticed it is not available in CentOS 8. I queried the rpm database to retrieve the following: URL : https://github.com/redhat-infosec/python-recaptcha Bug URL : https://bugz.fedoraproject.org/python-recaptcha-client Grabbed the source from the github repository and it failts to build on CentOS 8 with the default version of python installed [nmm@burnout ~]$ rpm -qi platform-python Name : platform-python Version : 3.6.8 Release : 23.el8 Architecture: x86_64 Source RPM : python3-3.6.8-23.el8.src.rpm Version-Release number of selected component (if applicable): 2.0.1 (latest) from the github repository in URL from CentOS7 python-recaptcha-client information Steps to Reproduce: 1. unpack source 2. try to install with: python setup.py install --prefix=%{__prefix} Actual results: Fails to build with the following output: byte-compiling build/bdist.linux-x86_64/egg/recaptcha/client/__init__.py to __init__.cpython-36.pyc byte-compiling build/bdist.linux-x86_64/egg/recaptcha/client/captcha.py to captcha.cpython-36.pyc File "build/bdist.linux-x86_64/egg/recaptcha/client/captcha.py", line 141 except Exception, e: ^ SyntaxError: invalid syntax Expected results: Should build Additional info: While not sure if that's the correct way to fix it, I did attached a patch which sorted the issue for me. Thanks. If you could make the rpm available for CentOS-8 would be great.
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.