Bug 2006215 - Python-productivity shows deprecation warning.
Summary: Python-productivity shows deprecation warning.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: python-productivity
Version: 35
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Fabian Affolter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-21 08:14 UTC by Lukas Ruzicka
Modified: 2021-09-21 10:29 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-09-21 10:29:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


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