Bug 1895652

Summary: CentOS 8 / Python 3.6 build error...
Product: [Fedora] Fedora EPEL Reporter: Nelson Marques <nmo.marques>
Component: python-recaptcha-clientAssignee: Orphan Owner <extras-orphan>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: epel8CC: nphilipp, sgallagh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fix build error on centos 8 none

Description Nelson Marques 2020-11-08 03:17:30 UTC
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.

Comment 1 Fedora Admin user for bugzilla script actions 2024-07-02 00:40:34 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.