Bug 1895652 - CentOS 8 / Python 3.6 build error...
Summary: CentOS 8 / Python 3.6 build error...
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python-recaptcha-client
Version: epel8
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-08 03:17 UTC by Nelson Marques
Modified: 2024-07-02 00:40 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
fix build error on centos 8 (440 bytes, patch)
2020-11-08 03:17 UTC, Nelson Marques
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.