Bug 1579761 - python-psycopg2 FTBFS with Python 3.7
Summary: python-psycopg2 FTBFS with Python 3.7
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-psycopg2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Devrim Gündüz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON37
TreeView+ depends on / blocked
 
Reported: 2018-05-18 09:31 UTC by Miro Hrončok
Modified: 2018-05-21 13:59 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-05-21 13:55:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
build.log from copr (246.52 KB, text/plain)
2018-05-18 09:31 UTC, Miro Hrončok
no flags Details
root.log from copr (44.45 KB, text/plain)
2018-05-18 09:32 UTC, Miro Hrončok
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github psycopg psycopg2 issues 714 0 None None None 2018-05-18 09:48:54 UTC

Description Miro Hrončok 2018-05-18 09:31:44 UTC
Created attachment 1438408 [details]
build.log from copr

Description of problem:
psycopg2 uses async as an argument name. This is a syntax error in 3.7 because async and await are now keywords.


Version-Release number of selected component: 2.7.4-3.fc29

Bytecompiling .py files below /builddir/build/BUILDROOT/python-psycopg2-2.7.4-3.fc29.x86_64/usr/lib64/python3.7 using /usr/bin/python3.7
*** Error compiling '/builddir/build/BUILDROOT/python-psycopg2-2.7.4-3.fc29.x86_64/usr/lib64/python3.7/site-packages/psycopg2/tests/test_async_keyword.py'...
  File "/usr/lib64/python3.7/test_async_keyword.py", line 43
    self.conn = self.connect(async=True)
                                 ^
SyntaxError: invalid syntax
*** Error compiling '/builddir/build/BUILDROOT/python-psycopg2-2.7.4-3.fc29.x86_64/usr/lib64/python3.7/site-packages/psycopg2/tests/test_cursor.py'...
  File "/usr/lib64/python3.7/test_cursor.py", line 570
    connect_func = lambda: self.connect(async=True)
                                            ^
SyntaxError: invalid syntax

Comment 1 Miro Hrončok 2018-05-18 09:32:55 UTC
Created attachment 1438409 [details]
root.log from copr

Comment 3 Miro Hrončok 2018-05-21 13:59:34 UTC
Thank you Pavel.


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