Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1578323 - python-beaker FTFBS with Python 3.7
Summary: python-beaker FTFBS with Python 3.7
Keywords:
Status: CLOSED DUPLICATE of bug 1605613
Alias: None
Product: Fedora
Classification: Fedora
Component: python-beaker
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON37
TreeView+ depends on / blocked
 
Reported: 2018-05-15 09:32 UTC by Miro Hrončok
Modified: 2023-09-12 01:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-23 13:54:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Build log of python-beaker building against python 3.7 with async keyword patched out (732.91 KB, text/plain)
2018-05-15 09:45 UTC, Miro Hrončok
no flags Details

Description Miro Hrončok 2018-05-15 09:32:05 UTC
Description of problem: python-beaker FTFBS with Python 3.7. 

According to https://www.python.org/dev/peps/pep-0492/ async and await are now keywords.

This leads to:

Bytecompiling .py files below /builddir/build/BUILDROOT/python-beaker-1.5.4-21.fc29.x86_64/usr/lib/python3.7 using /usr/bin/python3.7
*** Error compiling '/builddir/build/BUILDROOT/python-beaker-1.5.4-21.fc29.x86_64/usr/lib/python3.7/site-packages/beaker/synchronization.py'...
  File "/usr/lib/python3.7/synchronization.py", line 284
    self.async = 0
             ^
SyntaxError: invalid syntax

Version-Release number of selected component (if applicable): 1.5.4-21.fc29


How reproducible: hard / easy


Steps to Reproduce HARD:
1. rebuild everything needed for python-beaker with 3.7
2. rebuild python-beaker itself with 3.7

Actual results: SyntaxError: invalid syntax
Expected results: Should build

Steps to Reproduce EASY:
1. install python37
2. try to import beaker form sources, run tests, etc.

Additional info:
https://bugs.python.org/issue33514

Comment 1 Miro Hrončok 2018-05-15 09:33:28 UTC
We need to either update to 1.9.1 or backport:

https://github.com/bbangert/beaker/commit/5f2e517e32e796ca391ddf312c04dd906bc5e376

Comment 2 Miro Hrončok 2018-05-15 09:45:07 UTC
Created attachment 1436743 [details]
Build log of python-beaker building against python 3.7 with async keyword patched out

Even when I patch the self.async to self.asynch, the build fails on tests. Attaching buildlog.

Comment 3 Miro Hrončok 2018-05-17 14:07:59 UTC
Upstream master works fine, so an update should solve this.  https://github.com/bbangert/beaker/pull/160

Comment 4 Miro Hrončok 2018-05-28 22:25:36 UTC
Kyle?

Comment 5 Miro Hrončok 2018-05-30 10:48:50 UTC
Ccing Randy, as this is indirect dependency of bodhi (trough mako).

Comment 6 Miro Hrončok 2018-06-05 18:02:31 UTC
Bump.

Comment 7 Miro Hrončok 2018-06-08 10:37:44 UTC
Kyle? 3.7.0c1 is expected in 3 days (2018-06-11, [1]). I'd like to start building stuff in a side tag soon after that.

If you don't respond I'm just gonna comment out the tests, as it seems like that's fine for mako.

[1] https://www.python.org/dev/peps/pep-0537/

Comment 8 Miro Hrončok 2018-06-08 13:08:54 UTC
We can get rid of beaker from mako:

https://src.fedoraproject.org/rpms/python-mako/pull-request/3

I'll merge this if nobody fixes beaker.

Comment 9 Miro Hrončok 2018-07-23 13:54:33 UTC

*** This bug has been marked as a duplicate of bug 1605613 ***

Comment 10 Red Hat Bugzilla 2023-09-12 01:27:54 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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