Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to build in python3.12 #7209

Closed
1 task done
ghost opened this issue Feb 12, 2023 · 2 comments
Closed
1 task done

Fail to build in python3.12 #7209

ghost opened this issue Feb 12, 2023 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Feb 12, 2023

Describe the bug

running install
/usr/local/lib/python3.12/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/local/lib/python3.12/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
writing discord.py_self.egg-info/PKG-INFO
writing dependency_links to discord.py_self.egg-info/dependency_links.txt
writing requirements to discord.py_self.egg-info/requires.txt
writing top-level names to discord.py_self.egg-info/top_level.txt
reading manifest file 'discord.py_self.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'discord.py_self.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
/usr/local/lib/python3.12/site-packages/setuptools/command/build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'discord.bin' as data is deprecated, please list it in `packages`.
    !!


    ############################
    # Package would be ignored #
    ############################
    Python recognizes 'discord.bin' as an importable package,
    but it is not listed in the `packages` configuration of setuptools.

    'discord.bin' has been automatically added to the distribution only
    because it may contain data files, but this behavior is likely to change
    in future versions of setuptools (and therefore is considered deprecated).

    Please make sure that 'discord.bin' is included as a package by using
    the `packages` configuration field or the proper discovery methods
    (for example by using `find_namespace_packages(...)`/`find_namespace:`
    instead of `find_packages(...)`/`find:`).

    You can read more about "package discovery" and "data files" on setuptools
    documentation page.


!!

  check.warn(importable)
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/utils.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/http.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/backoff.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/handlers.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/calls.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/billing.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/scheduled_event.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/client.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/flags.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/message.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/channel.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/partial_emoji.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/mentions.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/activity.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/__init__.py -> build/bdist.linux-x86_64/egg/discord
creating build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/billing.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/scheduled_event.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/webhook.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/message.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/channel.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/activity.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/__init__.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/entitlements.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/library.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/store.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/subscriptions.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/invite.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/audit_log.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/welcome_screen.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/command.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/threads.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/emoji.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/template.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/gateway.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/integration.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/interactions.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/role.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/promotions.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/appinfo.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/payments.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/snowflake.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/voice.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/team.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/widget.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/components.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/guild.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/embed.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/member.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/user.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/types/sticker.py -> build/bdist.linux-x86_64/egg/discord/types
copying build/lib/discord/entitlements.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/library.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/errors.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/state.py -> build/bdist.linux-x86_64/egg/discord
creating build/bdist.linux-x86_64/egg/discord/webhook
copying build/lib/discord/webhook/__init__.py -> build/bdist.linux-x86_64/egg/discord/webhook
copying build/lib/discord/webhook/sync.py -> build/bdist.linux-x86_64/egg/discord/webhook
copying build/lib/discord/webhook/async_.py -> build/bdist.linux-x86_64/egg/discord/webhook
copying build/lib/discord/store.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/commands.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/subscriptions.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/invite.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/embeds.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/abc.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/settings.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/permissions.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/guild_premium.py -> build/bdist.linux-x86_64/egg/discord
creating build/bdist.linux-x86_64/egg/discord/ext
creating build/bdist.linux-x86_64/egg/discord/ext/commands
copying build/lib/discord/ext/commands/flags.py -> build/bdist.linux-x86_64/egg/discord/ext/commands
copying build/lib/discord/ext/commands/_types.py -> build/bdist.linux-x86_64/egg/discord/ext/commands
copying build/lib/discord/ext/commands/bot.py -> build/bdist.linux-x86_64/egg/discord/ext/commands
copying build/lib/discord/ext/commands/__init__.py -> build/bdist.linux-x86_64/egg/discord/ext/commands
copying build/lib/discord/ext/commands/core.py -> build/bdist.linux-x86_64/egg/discord/ext/commands
copying build/lib/discord/ext/commands/errors.py -> build/bdist.linux-x86_64/egg/discord/ext/commands
copying build/lib/discord/ext/commands/cooldowns.py -> build/bdist.linux-x86_64/egg/discord/ext/commands
copying build/lib/discord/ext/commands/context.py -> build/bdist.linux-x86_64/egg/discord/ext/commands
copying build/lib/discord/ext/commands/parameters.py -> build/bdist.linux-x86_64/egg/discord/ext/commands
copying build/lib/discord/ext/commands/help.py -> build/bdist.linux-x86_64/egg/discord/ext/commands
copying build/lib/discord/ext/commands/cog.py -> build/bdist.linux-x86_64/egg/discord/ext/commands
copying build/lib/discord/ext/commands/view.py -> build/bdist.linux-x86_64/egg/discord/ext/commands
copying build/lib/discord/ext/commands/converter.py -> build/bdist.linux-x86_64/egg/discord/ext/commands
creating build/bdist.linux-x86_64/egg/discord/ext/tasks
copying build/lib/discord/ext/tasks/__init__.py -> build/bdist.linux-x86_64/egg/discord/ext/tasks
copying build/lib/discord/welcome_screen.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/mixins.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/tracking.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/file.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/raw_models.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/__main__.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/threads.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/emoji.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/integrations.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/template.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/gateway.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/interactions.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/enums.py -> build/bdist.linux-x86_64/egg/discord
creating build/bdist.linux-x86_64/egg/discord/bin
copying build/lib/discord/bin/libopus-0.x64.dll -> build/bdist.linux-x86_64/egg/discord/bin
copying build/lib/discord/bin/libopus-0.x86.dll -> build/bdist.linux-x86_64/egg/discord/bin
copying build/lib/discord/role.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/promotions.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/colour.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/appinfo.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/connections.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/opus.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/payments.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/player.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/voice_client.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/metadata.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/modal.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/asset.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/object.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/py.typed -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/audit_logs.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/team.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/widget.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/reaction.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/relationship.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/profile.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/oggparse.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/components.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/guild.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/guild_folder.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/stage_instance.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/member.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/user.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/sticker.py -> build/bdist.linux-x86_64/egg/discord
copying build/lib/discord/context_managers.py -> build/bdist.linux-x86_64/egg/discord
byte-compiling build/bdist.linux-x86_64/egg/discord/utils.py to utils.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/http.py to http.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/backoff.py to backoff.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/handlers.py to handlers.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/calls.py to calls.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/billing.py to billing.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/scheduled_event.py to scheduled_event.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/client.py to client.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/flags.py to flags.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/message.py to message.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/channel.py to channel.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/partial_emoji.py to partial_emoji.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/mentions.py to mentions.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/activity.py to activity.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/__init__.py to __init__.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/billing.py to billing.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/scheduled_event.py to scheduled_event.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/webhook.py to webhook.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/message.py to message.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/channel.py to channel.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/activity.py to activity.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/__init__.py to __init__.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/entitlements.py to entitlements.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/library.py to library.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/store.py to store.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/subscriptions.py to subscriptions.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/invite.py to invite.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/audit_log.py to audit_log.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/welcome_screen.py to welcome_screen.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/command.py to command.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/threads.py to threads.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/emoji.py to emoji.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/template.py to template.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/gateway.py to gateway.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/integration.py to integration.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/interactions.py to interactions.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/role.py to role.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/promotions.py to promotions.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/appinfo.py to appinfo.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/payments.py to payments.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/snowflake.py to snowflake.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/voice.py to voice.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/team.py to team.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/widget.py to widget.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/components.py to components.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/guild.py to guild.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/embed.py to embed.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/member.py to member.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/user.py to user.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/types/sticker.py to sticker.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/entitlements.py to entitlements.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/library.py to library.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/errors.py to errors.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/state.py to state.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/webhook/__init__.py to __init__.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/webhook/sync.py to sync.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/webhook/async_.py to async_.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/store.py to store.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/commands.py to commands.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/subscriptions.py to subscriptions.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/invite.py to invite.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/embeds.py to embeds.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/abc.py to abc.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/settings.py to settings.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/permissions.py to permissions.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/guild_premium.py to guild_premium.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/ext/commands/flags.py to flags.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/ext/commands/_types.py to _types.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/ext/commands/bot.py to bot.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/ext/commands/__init__.py to __init__.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/ext/commands/core.py to core.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/ext/commands/errors.py to errors.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/ext/commands/cooldowns.py to cooldowns.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/ext/commands/context.py to context.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/ext/commands/parameters.py to parameters.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/ext/commands/help.py to help.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/ext/commands/cog.py to cog.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/ext/commands/view.py to view.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/ext/commands/converter.py to converter.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/ext/tasks/__init__.py to __init__.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/welcome_screen.py to welcome_screen.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/mixins.py to mixins.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/tracking.py to tracking.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/file.py to file.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/raw_models.py to raw_models.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/__main__.py to __main__.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/threads.py to threads.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/emoji.py to emoji.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/integrations.py to integrations.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/template.py to template.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/gateway.py to gateway.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/interactions.py to interactions.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/enums.py to enums.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/role.py to role.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/promotions.py to promotions.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/colour.py to colour.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/appinfo.py to appinfo.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/connections.py to connections.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/opus.py to opus.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/payments.py to payments.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/player.py to player.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/voice_client.py to voice_client.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/metadata.py to metadata.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/modal.py to modal.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/asset.py to asset.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/object.py to object.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/audit_logs.py to audit_logs.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/team.py to team.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/widget.py to widget.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/reaction.py to reaction.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/relationship.py to relationship.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/profile.py to profile.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/oggparse.py to oggparse.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/components.py to components.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/guild.py to guild.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/guild_folder.py to guild_folder.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/stage_instance.py to stage_instance.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/member.py to member.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/user.py to user.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/sticker.py to sticker.cpython-312.pyc
byte-compiling build/bdist.linux-x86_64/egg/discord/context_managers.py to context_managers.cpython-312.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying discord.py_self.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying discord.py_self.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying discord.py_self.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying discord.py_self.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying discord.py_self.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
discord.__pycache__.__init__.cpython-312: module references __path__
discord.__pycache__.opus.cpython-312: module references __file__
creating 'dist/discord.py_self-2.0.0a2-py3.12.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing discord.py_self-2.0.0a2-py3.12.egg
removing '/usr/local/lib/python3.12/site-packages/discord.py_self-2.0.0a2-py3.12.egg' (and everything under it)
creating /usr/local/lib/python3.12/site-packages/discord.py_self-2.0.0a2-py3.12.egg
Extracting discord.py_self-2.0.0a2-py3.12.egg to /usr/local/lib/python3.12/site-packages
discord.py-self 2.0.0a2 is already the active version in easy-install.pth

Installed /usr/local/lib/python3.12/site-packages/discord.py_self-2.0.0a2-py3.12.egg
Processing dependencies for discord.py-self==2.0.0a2
Searching for aiohttp<4,>=3.7.4
Reading https://pypi.org/simple/aiohttp/
/usr/local/lib/python3.12/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release
  warnings.warn(
Downloading https://files.pythonhosted.org/packages/c2/fd/1ff4da09ca29d8933fda3f3514980357e25419ce5e0f689041edb8f17dab/aiohttp-3.8.4.tar.gz#sha256=bf2e1a9162c1e441bf805a1fd166e249d574ca04e03b34f97e2928769e91ab5c
Best match: aiohttp 3.8.4
Processing aiohttp-3.8.4.tar.gz
Writing /tmp/easy_install-f_5v6hb6/aiohttp-3.8.4/setup.cfg
Running aiohttp-3.8.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-f_5v6hb6/aiohttp-3.8.4/egg-dist-tmp-y3c8gn0x
*********************
* Accelerated build *
*********************
warning: no files found matching 'aiohttp' anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.lib' found anywhere in distribution
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.a' found anywhere in distribution
warning: no previously-included files matching '*.obj' found anywhere in distribution
warning: no previously-included files found matching 'aiohttp/*.html'
no previously-included directories found matching 'docs/_build'
/usr/local/lib/python3.12/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
aiohttp/_websocket.c: In function ‘__pyx_pf_7aiohttp_10_websocket__websocket_mask_cython’:
aiohttp/_websocket.c:1475:3: warning: ‘Py_OptimizeFlag’ is deprecated [-Wdeprecated-declarations]
 1475 |   if (unlikely(!Py_OptimizeFlag)) {
      |   ^~
In file included from /usr/local/include/python3.12/Python.h:48,
                 from aiohttp/_websocket.c:6:
/usr/local/include/python3.12/cpython/pydebug.h:13:37: note: declared here
   13 | Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
      |                                     ^~~~~~~~~~~~~~~
aiohttp/_websocket.c: In function ‘__Pyx_get_tp_dict_version’:
aiohttp/_websocket.c:2680:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
 2680 |     return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
      |     ^~~~~~
In file included from /usr/local/include/python3.12/dictobject.h:90,
                 from /usr/local/include/python3.12/Python.h:61,
                 from aiohttp/_websocket.c:6:
/usr/local/include/python3.12/cpython/dictobject.h:22:34: note: declared here
   22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      |                                  ^~~~~~~~~~~~~~
aiohttp/_websocket.c: In function ‘__Pyx_get_object_dict_version’:
aiohttp/_websocket.c:2692:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
 2692 |     return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
      |     ^~~~~~
In file included from /usr/local/include/python3.12/dictobject.h:90,
                 from /usr/local/include/python3.12/Python.h:61,
                 from aiohttp/_websocket.c:6:
/usr/local/include/python3.12/cpython/dictobject.h:22:34: note: declared here
   22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      |                                  ^~~~~~~~~~~~~~
aiohttp/_websocket.c: In function ‘__Pyx_object_dict_version_matches’:
aiohttp/_websocket.c:2696:5: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
 2696 |     if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
      |     ^~
In file included from /usr/local/include/python3.12/dictobject.h:90,
                 from /usr/local/include/python3.12/Python.h:61,
                 from aiohttp/_websocket.c:6:
/usr/local/include/python3.12/cpython/dictobject.h:22:34: note: declared here
   22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      |                                  ^~~~~~~~~~~~~~
aiohttp/_websocket.c: In function ‘__Pyx_CLineForTraceback’:
aiohttp/_websocket.c:2741:9: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
 2741 |         __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/python3.12/dictobject.h:90,
                 from /usr/local/include/python3.12/Python.h:61,
                 from aiohttp/_websocket.c:6:
/usr/local/include/python3.12/cpython/dictobject.h:22:34: note: declared here
   22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      |                                  ^~~~~~~~~~~~~~
aiohttp/_websocket.c:2741:9: warning: ‘ma_version_tag’ is deprecated [-Wdeprecated-declarations]
 2741 |         __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/python3.12/dictobject.h:90,
                 from /usr/local/include/python3.12/Python.h:61,
                 from aiohttp/_websocket.c:6:
/usr/local/include/python3.12/cpython/dictobject.h:22:34: note: declared here
   22 |     Py_DEPRECATED(3.12) uint64_t ma_version_tag;
      |                                  ^~~~~~~~~~~~~~
aiohttp/_websocket.c: In function ‘__Pyx_PyInt_As_long’:
aiohttp/_websocket.c:3042:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
 3042 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
      |                                                     ^~
aiohttp/_websocket.c:3097:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
 3097 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
      |                                                     ^~
aiohttp/_websocket.c: In function ‘__Pyx_PyInt_As_int’:
aiohttp/_websocket.c:3238:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
 3238 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
      |                                                     ^~
aiohttp/_websocket.c:3293:53: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
 3293 |             const digit* digits = ((PyLongObject*)x)->ob_digit;
      |                                                     ^~
aiohttp/_websocket.c: In function ‘__Pyx_PyIndex_AsSsize_t’:
aiohttp/_websocket.c:3744:45: error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’
 3744 |     const digit* digits = ((PyLongObject*)b)->ob_digit;
      |                                             ^~
error: Setup script exited with error: command '/usr/bin/gcc' failed with exit code 1

To Reproduce

git clone cpython + ./configure --enable-optimizaitions + make + make altinstall
git clone https://github.com/dolfies/discord.py-self
python3.12 setup.py install

Expected behavior

Should be compiled successfully

Logs/tracebacks

Given already

Python Version

$ python --version
 python3.12 --version
Python 3.12.0a5+
(most recent commit) 6ef6915d3530e844243893f91bf4bd702dfef570

aiohttp Version

$ python -m pip show aiohttp

WARNING: Package(s) not found: aiohttp

multidict Version

$ python -m pip show multidict

WARNING: Package(s) not found: multidict

yarl Version

$ python -m pip show yarl

WARNING: Package(s) not found: yarl

OS

Linux v2311 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux

Related component

Client

Additional context

No response

Code of Conduct

  • I agree to follow the aio-libs Code of Conduct
@ghost ghost added the bug label Feb 12, 2023
@Dreamsorcerer
Copy link
Member

I doubt we'll look at any issues with 3.12 until atleast July. If something needs to be changed here, feel free to make a PR, but wheels certainly won't be produced until atleast the rc1 release is out.

@els-pnw
Copy link

els-pnw commented Oct 10, 2023

I'm getting

note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for aiohttp
Failed to build aiohttp
ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects

On MacOS 13.6, Apple MBP M2 Pro

clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c aiohttp/_websocket.c -o build/temp.macosx-10.9-universal2-cpython-312/aiohttp/_websocket.o
      aiohttp/_websocket.c:1475:17: warning: 'Py_OptimizeFlag' is deprecated [-Wdeprecated-declarations]
        if (unlikely(!Py_OptimizeFlag)) {
                      ^
      /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/pydebug.h:13:1: note: 'Py_OptimizeFlag' has been explicitly marked deprecated here
      Py_DEPRECATED(3.12) PyAPI_DATA(int) Py_OptimizeFlag;
      ^
      /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      aiohttp/_websocket.c:2680:27: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
          return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
                                ^
      aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
      #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
                                                                      ^
      /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
          Py_DEPRECATED(3.12) uint64_t ma_version_tag;
          ^
      /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      aiohttp/_websocket.c:2692:36: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
          return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
                                         ^
      aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
      #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
                                                                      ^
      /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
          Py_DEPRECATED(3.12) uint64_t ma_version_tag;
          ^
      /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      aiohttp/_websocket.c:2696:56: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
          if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
                                                             ^
      aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
      #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
                                                                      ^
      /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
          Py_DEPRECATED(3.12) uint64_t ma_version_tag;
          ^
      /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      aiohttp/_websocket.c:2741:9: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
              __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
              ^
      aiohttp/_websocket.c:1125:16: note: expanded from macro '__PYX_PY_DICT_LOOKUP_IF_MODIFIED'
          if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
                     ^
      aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
      #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
                                                                      ^
      /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
          Py_DEPRECATED(3.12) uint64_t ma_version_tag;
          ^
      /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      aiohttp/_websocket.c:2741:9: warning: 'ma_version_tag' is deprecated [-Wdeprecated-declarations]
              __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
              ^
      aiohttp/_websocket.c:1129:30: note: expanded from macro '__PYX_PY_DICT_LOOKUP_IF_MODIFIED'
              __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
                                   ^
      aiohttp/_websocket.c:1118:65: note: expanded from macro '__PYX_GET_DICT_VERSION'
      #define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
                                                                      ^
      /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/dictobject.h:22:5: note: 'ma_version_tag' has been explicitly marked deprecated here
          Py_DEPRECATED(3.12) uint64_t ma_version_tag;
          ^
      /Library/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      aiohttp/_websocket.c:3042:55: error: no member named 'ob_digit' in 'struct _longobject'
                  const digit* digits = ((PyLongObject*)x)->ob_digit;
                                        ~~~~~~~~~~~~~~~~~~  ^
      aiohttp/_websocket.c:3097:55: error: no member named 'ob_digit' in 'struct _longobject'
                  const digit* digits = ((PyLongObject*)x)->ob_digit;
                                        ~~~~~~~~~~~~~~~~~~  ^
      aiohttp/_websocket.c:3238:55: error: no member named 'ob_digit' in 'struct _longobject'
                  const digit* digits = ((PyLongObject*)x)->ob_digit;
                                        ~~~~~~~~~~~~~~~~~~  ^
      aiohttp/_websocket.c:3293:55: error: no member named 'ob_digit' in 'struct _longobject'
                  const digit* digits = ((PyLongObject*)x)->ob_digit;
                                        ~~~~~~~~~~~~~~~~~~  ^
      aiohttp/_websocket.c:3744:47: error: no member named 'ob_digit' in 'struct _longobject'
          const digit* digits = ((PyLongObject*)b)->ob_digit;
                                ~~~~~~~~~~~~~~~~~~  ^
      6 warnings and 5 errors generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

I've also attempted setting the environment variable AIOHTTP_NO_EXTENSIONS=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants