Bug 2006215

Summary: Python-productivity shows deprecation warning.
Product: [Fedora] Fedora Reporter: Lukas Ruzicka <lruzicka>
Component: python-productivityAssignee: Fabian Affolter <mail>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 35CC: mail
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-21 10:29:46 UTC 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:

Description Lukas Ruzicka 2021-09-21 08:14:07 UTC
Description of problem:

The productivity Python module shows deprecation warnings when imported or run from the console.

Version-Release number of selected component (if applicable):

python3-productivity-0.6.0-1.fc35.noarch

How reproducible:

Always

Steps to Reproduce:
1. Import productivity module.
2. Alternatively, use it from console as `productivity --help`
3.

Actual results:

Show lots of deprecation warnings.

Expected results:

Non-deprecated methods should be used in the code.

Additional info:

>>> import productivity
/usr/lib/python3.10/site-packages/pymodbus/client/asynchronous/async_io/__init__.py:262: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def start(self, host, port=502):
/usr/lib/python3.10/site-packages/pymodbus/client/asynchronous/async_io/__init__.py:299: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def _connect(self):
/usr/lib/python3.10/site-packages/pymodbus/client/asynchronous/async_io/__init__.py:342: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def _reconnect(self):
/usr/lib/python3.10/site-packages/pymodbus/client/asynchronous/async_io/__init__.py:392: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def connect(self):
/usr/lib/python3.10/site-packages/pymodbus/client/asynchronous/async_io/__init__.py:452: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def start(self, host, port=802, sslctx=None, server_hostname=None):
/usr/lib/python3.10/site-packages/pymodbus/client/asynchronous/async_io/__init__.py:474: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def _connect(self):
/usr/lib/python3.10/site-packages/pymodbus/client/asynchronous/async_io/__init__.py:535: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def start(self, host, port=502):
/usr/lib/python3.10/site-packages/pymodbus/client/asynchronous/async_io/__init__.py:582: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def _connect(self):
/usr/lib/python3.10/site-packages/pymodbus/client/asynchronous/async_io/__init__.py:627: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def _reconnect(self):
/usr/lib/python3.10/site-packages/pymodbus/client/asynchronous/async_io/__init__.py:684: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def connect(self):
/usr/lib/python3.10/site-packages/pymodbus/client/asynchronous/async_io/__init__.py:784: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def connect(self):
/usr/lib/python3.10/site-packages/pymodbus/client/asynchronous/async_io/__init__.py:834: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def init_tcp_client(proto_cls, loop, host, port, **kwargs):
/usr/lib/python3.10/site-packages/pymodbus/client/asynchronous/async_io/__init__.py:851: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def init_tls_client(proto_cls, loop, host, port, sslctx=None,
/usr/lib/python3.10/site-packages/pymodbus/client/asynchronous/async_io/__init__.py:872: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def init_udp_client(proto_cls, loop, host, port, **kwargs):

Comment 1 Fabian Affolter 2021-09-21 10:29:46 UTC
This is an upstream issue in the pymodbus module and not a packaging issue.

It's already tracked at https://github.com/riptideio/pymodbus/issues/467