Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 717636

Summary: <dev-python/pydns-3.2.0 uses 'async' keyword that cannot be used as a attibute name in python 3.7+
Product: Gentoo Linux Reporter: Pavol Cupka <pavol.cupka>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 721378    
Bug Blocks:    

Description Pavol Cupka 2020-04-15 23:29:09 UTC
pydns < 3.2.0 doesn't install for python-3.7+ since with python 3.7, await and async are resevered keywords and cannot be used as attribute names.

upstream bug https://bugs.launchpad.net/py3dns/+bug/1776027

fixed in version 3.2.0, latest version 3.2.1

please bump.

Reproducible: Always

Steps to Reproduce:
1. emerge pydns

Actual Results:  
>>> Compiling source in /var/tmp/portage/dev-python/pydns-3.1.1/work/py3dns-3.1.1 ...
 * python3_8: running distutils-r1_run_phase distutils-r1_python_compile                                                                                                                      
 * DISTUTILS_USE_SETUPTOOLS value is probably incorrect                                                                                                                                       
 *   value:    DISTUTILS_USE_SETUPTOOLS=bdepend (default?)                                                                                                                                    
 *   expected: DISTUTILS_USE_SETUPTOOLS=no                                                                                                                                                    
python3.8 setup.py build -j 4                                                                                                                                                                 
Traceback (most recent call last):                                                             
  File "setup.py", line 7, in <module>                                                         
    import DNS                                                                                 
  File "/var/tmp/portage/dev-python/pydns-3.1.1/work/py3dns-3.1.1/DNS/__init__.py", line 27, in <module>
    from .Base import DnsRequest
  File "/var/tmp/portage/dev-python/pydns-3.1.1/work/py3dns-3.1.1/DNS/Base.py", line 96
    self.async=None
         ^                                                                                                                                                                                    
SyntaxError: invalid syntax    

Expected Results:  
It compiles and installs.
Comment 1 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2021-08-20 13:45:22 UTC
Fixed in current version in tree