Closed TheOnlyWayUp closed 2 years ago
To fix the error: invalid command 'bdist_wheel'
error during pip install, I did python3.9 -m pip install wheel
and that error is no longer, but discord.py-self-2.0.0a1 still errors on import.
This is a problem caused by me having to revert a commit that caused issues related to sessions. This left the branch in a broken state. A new commit will be pushed soon.
@dolfies Hey, any updates?
Seems to also be present in commit 56226fbbab34669fafbb17f57a0cf5e791308ca8, 887e83de90146b6e73230bb34f6ef0e66da910d0, I'm testing previous commits.
I've been busy the past few days, so haven't been able to touch code. Will be fixed soon.
Should be good now.
Downloadeded the new version after uninstall discord.py-self and discord.
Issue still persists
It's still an issue with importing discord, as when I do it in terminal -
Traceback -
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/root/code/MCStalker/gungyDataStealer/discord/__init__.py", line 23, in <module>
from .client import *
File "/root/code/MCStalker/gungyDataStealer/discord/client.py", line 36, in <module>
from .user import User, ClientUser, Note
File "/root/code/MCStalker/gungyDataStealer/discord/user.py", line 29, in <module>
import discord.abc
File "/root/code/MCStalker/gungyDataStealer/discord/abc.py", line 58, in <module>
from .settings import ChannelSettings
File "/root/code/MCStalker/gungyDataStealer/discord/settings.py", line 30, in <module>
from .activity import create_settings_activity
ImportError: cannot import name 'create_settings_activity' from 'discord.activity' (/root/code/MCStalker/gungyDataStealer/discord/activity.py)
Please ignore the name, MCStalker is a website I develop for, and gungyDataStealer is a selfbot for chat logs, hence the name data stealer.
@dolfies Please re-open this issue
Cannot reproduce locally.
Python 3.10.1 (main, Dec 19 2021, 23:36:08) [GCC 11.1.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.30.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import discord
In [2]: from discord.activity import create_settings_activity
Fixed, looks like it was something with my pip cache as git clone
and pip install git+
worked on other devices, thanks!
Summary
Whenever I try to import discord, it errors and which prevents me from finishing what I'm currently working on.
Reproduction Steps
import discord
Code
Expected Results
It's supposed to import discord without any errors.
Actual Results
It errors while importing discord.
System Information
Can't run it because discord.py-self errors, I also get an error when I run that command in my venv.
Normal Discord.py -
I'm currently using the discord.py-self@rebase version (discord.py-self-2.0.0a1).
Checklist
Additional Information
When installing the library, I'm using the same version of python and such too.