Deprecation warnings #3529

Closed
opened 2020-02-08 18:34:46 +01:00 by Stonedestroyer · 7 comments
Stonedestroyer commented 2020-02-08 18:34:46 +01:00 (Migrated from github.com)

Deprecation warnings.

<frozen importlib._bootstrap>:219: DeprecationWarning: an integer is required (got type float).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
  • Bug in CPython, no tracking issue
C:\Python39\lib\asyncio\subprocess.py:196: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  stdin, stdout, stderr = await tasks.gather(stdin, stdout, stderr,
..venv/lib/site-packages/redbot/core/config.py:513: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
  self, current: collections.Mapping, defaults: Dict[str, Any] = ...
..venv/lib/site-packages/aiohttp/connector.py:964: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  hosts = await asyncio.shield(self._resolve_host(
..venv/lib/site-packages/aiohttp/helpers.py:107: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def noop(*args, **kwargs):  # type: ignore
..venv/lib/site-packages/aiohttp/locks.py:21: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  self._event = asyncio.Event(loop=loop)
..venv/lib/site-packages/websockets/client.py:407: DeprecationWarning: rename klass to create_protocol
  warnings.warn("rename klass to create_protocol", DeprecationWarning)
..venv/lib/site-packages/websockets/client.py:535: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  transport, protocol = await self._create_connection()

I know most of these are packages we have no control over but some are Red.

Deprecation warnings. - [ ] https://bugs.python.org/issue39015 ``` <frozen importlib._bootstrap>:219: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python. ``` - [ ] Bug in CPython, no tracking issue ``` C:\Python39\lib\asyncio\subprocess.py:196: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10. stdin, stdout, stderr = await tasks.gather(stdin, stdout, stderr, ``` - [x] Fixed by https://github.com/Cog-Creators/Red-DiscordBot/pull/3610. ``` ..venv/lib/site-packages/redbot/core/config.py:513: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working self, current: collections.Mapping, defaults: Dict[str, Any] = ... ``` - [x] https://github.com/aio-libs/aiohttp/pull/4570 (awaiting bump to aiohttp 3.7+) ``` ..venv/lib/site-packages/aiohttp/connector.py:964: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10. hosts = await asyncio.shield(self._resolve_host( ``` - [x] https://github.com/aio-libs/aiohttp/pull/4570 (awaiting bump to aiohttp 3.7+) ``` ..venv/lib/site-packages/aiohttp/helpers.py:107: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead def noop(*args, **kwargs): # type: ignore ``` - [x] https://github.com/aio-libs/aiohttp/pull/4570 (awaiting bump to aiohttp 3.7+) ``` ..venv/lib/site-packages/aiohttp/locks.py:21: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10. self._event = asyncio.Event(loop=loop) ``` - [x] Fixed by #3845 ``` ..venv/lib/site-packages/websockets/client.py:407: DeprecationWarning: rename klass to create_protocol warnings.warn("rename klass to create_protocol", DeprecationWarning) ``` - [x] https://github.com/MagicStack/uvloop/pull/327 (awaiting uvloop 0.14.1/0.15.0 release) ``` ..venv/lib/site-packages/websockets/client.py:535: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10. transport, protocol = await self._create_connection() ``` I know most of these are packages we have no control over but some are Red.
Jackenmen commented 2020-02-23 18:54:58 +01:00 (Migrated from github.com)

These warnings are related to aiohttp, related pull request: https://github.com/aio-libs/aiohttp/pull/4570

..venv\lib\site-packages\aiohttp\helpers.py:107: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
  def noop(*args, **kwargs):  # type: ignore
..venv\lib\site-packages\aiohttp\connector.py:964: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  hosts = await asyncio.shield(self._resolve_host(
..venv\lib\site-packages\aiohttp\locks.py:21: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  self._event = asyncio.Event(loop=loop)

This warning is related to d.py using klass kwarg instead of create_protocol, related issue: https://github.com/Rapptz/discord.py/issues/2574
I know they have to keep backwards-compatibility so if needed, we can always silence it.

..venv\lib\site-packages\websockets\client.py:407: DeprecationWarning: rename klass to create_protocol
  warnings.warn("rename klass to create_protocol", DeprecationWarning)

This error is a problem with Python 3.8 built-in library (3.8.2 still affected) it seems, see bpo-39015:

<frozen importlib._bootstrap>:219: DeprecationWarning: an integer is required (got type float).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.

This one should be fixed in #3610:

.redbot\core\config.py:513: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
  self, current: collections.Mapping, defaults: Dict[str, Any] = ...
These warnings are related to `aiohttp`, related pull request: https://github.com/aio-libs/aiohttp/pull/4570 ``` ..venv\lib\site-packages\aiohttp\helpers.py:107: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead def noop(*args, **kwargs): # type: ignore ``` ``` ..venv\lib\site-packages\aiohttp\connector.py:964: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10. hosts = await asyncio.shield(self._resolve_host( ``` ``` ..venv\lib\site-packages\aiohttp\locks.py:21: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10. self._event = asyncio.Event(loop=loop) ``` This warning is related to d.py using `klass` kwarg instead of `create_protocol`, related issue: https://github.com/Rapptz/discord.py/issues/2574 I know they have to keep backwards-compatibility so if needed, we can always silence it. ``` ..venv\lib\site-packages\websockets\client.py:407: DeprecationWarning: rename klass to create_protocol warnings.warn("rename klass to create_protocol", DeprecationWarning) ``` This error is a problem with Python 3.8 built-in library (3.8.2 still affected) it seems, see [bpo-39015](https://bugs.python.org/issue39015): ``` <frozen importlib._bootstrap>:219: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python. ``` This one should be fixed in #3610: ``` .redbot\core\config.py:513: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working self, current: collections.Mapping, defaults: Dict[str, Any] = ... ```
Drapersniper commented 2020-08-12 15:20:06 +02:00 (Migrated from github.com)
/envs/battlebreakers/lib/python3.8/site-packages/aioredis/stream.py:23: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
``` /envs/battlebreakers/lib/python3.8/site-packages/aioredis/stream.py:23: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10. ```
Drapersniper commented 2020-08-16 12:30:45 +02:00 (Migrated from github.com)
c:\users\guyre\.virtualenvs\red\lib\site-packages\win32\lib\pywintypes.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp, sys, os
``` c:\users\guyre\.virtualenvs\red\lib\site-packages\win32\lib\pywintypes.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp, sys, os ```
Harmon758 commented 2020-11-08 16:10:21 +01:00 (Migrated from github.com)

https://github.com/Rapptz/discord.py/issues/2574 has been closed, as discord.py v1.4.0 was released in August, dropping websockets.

https://github.com/Rapptz/discord.py/issues/2574 has been closed, as discord.py v1.4.0 was released in August, dropping websockets.
Jackenmen commented 2020-11-08 16:15:09 +01:00 (Migrated from github.com)

Thanks for letting us know, I've just updated the issue.

Thanks for letting us know, I've just updated the issue.
Drapersniper commented 2022-05-22 16:04:01 +02:00 (Migrated from github.com)
/home/draper/venvs/g310/lib/python3.10/site-packages/aiohttp_json_rpc/rpc.py:162: DeprecationWarning: There is no current event loop
   self.loop = loop or asyncio.get_event_loop()

/home/draper/venvs/g310/lib/python3.10/site-packages/aiohttp_json_rpc/threading.py:8: DeprecationWarning: There is no current event loop
   self.loop = loop or asyncio.get_event_loop()
[WARNING] py.warnings: <frozen importlib._bootstrap>:283: DeprecationWarning: the load_module() method is deprecated and slated for removal in Python 3.12; use exec_module() instead
``` /home/draper/venvs/g310/lib/python3.10/site-packages/aiohttp_json_rpc/rpc.py:162: DeprecationWarning: There is no current event loop self.loop = loop or asyncio.get_event_loop() ``` ``` /home/draper/venvs/g310/lib/python3.10/site-packages/aiohttp_json_rpc/threading.py:8: DeprecationWarning: There is no current event loop self.loop = loop or asyncio.get_event_loop() ``` ``` [WARNING] py.warnings: <frozen importlib._bootstrap>:283: DeprecationWarning: the load_module() method is deprecated and slated for removal in Python 3.12; use exec_module() instead ```
Owner

Die Ursache liegt außerhalb von Red (Discord, YouTube, Lavalink-Plugins oder andere Abhängigkeiten) und lässt sich hier nicht sinnvoll beheben. Deshalb schließe ich das Issue.


Generated by Claude Code

Die Ursache liegt außerhalb von Red (Discord, YouTube, Lavalink-Plugins oder andere Abhängigkeiten) und lässt sich hier nicht sinnvoll beheben. Deshalb schließe ich das Issue. --- _Generated by [Claude Code](https://claude.ai/code)_
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#3529
No description provided.