dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
719 stars 164 forks source link

TypeError: <discord.utils.CachedSlotProperty object at 0x00000170DFAD0CD0> is not a callable object #544

Closed mizutama1233 closed 10 months ago

mizutama1233 commented 1 year ago

Summary

Error in import

Reproduction Steps

I typed in the following and got an error from discord.ext import commands

Error : TypeError: <discord.utils.CachedSlotProperty object at 0x00000170DFAD0CD0> is not a callable object

Code

No response

Expected Results

Nothing error.

Actual Results

An error is displayed.

System Information

Checklist

Additional Information

No response

dolfies commented 1 year ago

I am unable to reproduce this. Can you please provide example code that showcases this issue?

mizutama1233 commented 1 year ago

wow I didn't know when I could do that. Thank you.

GH0STSecurity commented 1 year ago

I am unable to reproduce this. Can you please provide example code that showcases this issue?

Hey, i actually have this problem, i actually got the backup of the installed packages and every time this happens Traceback (most recent call last): File "D:\Selfbot\root\TXListenerV3.py", line 43, in <module> import discord File "C:\Users\imajo\AppData\Roaming\Python\Python311\site-packages\discord\__init__.py", line 27, in <module> from .audit_logs import * File "C:\Users\imajo\AppData\Roaming\Python\Python311\site-packages\discord\audit_logs.py", line 40, in <module> from .member import Member File "C:\Users\imajo\AppData\Roaming\Python\Python311\site-packages\discord\member.py", line 219, in <module> @flatten_user ^^^^^^^^^^^^ File "C:\Users\imajo\AppData\Roaming\Python\Python311\site-packages\discord\member.py", line 213, in flatten_user func = utils.copy_doc(value)(func) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\imajo\AppData\Roaming\Python\Python311\site-packages\discord\utils.py", line 341, in decorator overridden.__signature__ = _signature(original) # type: ignore ^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\inspect.py", line 3279, in signature return Signature.from_callable(obj, follow_wrapped=follow_wrapped, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\inspect.py", line 3027, in from_callable return _signature_from_callable(obj, sigcls=cls, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\inspect.py", line 2447, in _signature_from_callable raise TypeError('{!r} is not a callable object'.format(obj)) TypeError: <discord.utils.CachedSlotProperty object at 0x000001460250AE90> is not a callable object do you happen to know whats causing this? so basicly how this happened is i created backup from packages installed on my phone and just pasted them to my pc ( since the discord selfbot was working on my phone and not my pc )

dolfies commented 1 year ago

I am unable to reproduce this. Can you please provide example code that showcases this issue?

Hey, i actually have this problem, i actually got the backup of the installed packages and every time this happens Traceback (most recent call last): File "D:\Selfbot\root\TXListenerV3.py", line 43, in <module> import discord File "C:\Users\imajo\AppData\Roaming\Python\Python311\site-packages\discord\__init__.py", line 27, in <module> from .audit_logs import * File "C:\Users\imajo\AppData\Roaming\Python\Python311\site-packages\discord\audit_logs.py", line 40, in <module> from .member import Member File "C:\Users\imajo\AppData\Roaming\Python\Python311\site-packages\discord\member.py", line 219, in <module> @flatten_user ^^^^^^^^^^^^ File "C:\Users\imajo\AppData\Roaming\Python\Python311\site-packages\discord\member.py", line 213, in flatten_user func = utils.copy_doc(value)(func) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\imajo\AppData\Roaming\Python\Python311\site-packages\discord\utils.py", line 341, in decorator overridden.__signature__ = _signature(original) # type: ignore ^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\inspect.py", line 3279, in signature return Signature.from_callable(obj, follow_wrapped=follow_wrapped, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\inspect.py", line 3027, in from_callable return _signature_from_callable(obj, sigcls=cls, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\inspect.py", line 2447, in _signature_from_callable raise TypeError('{!r} is not a callable object'.format(obj)) TypeError: <discord.utils.CachedSlotProperty object at 0x000001460250AE90> is not a callable object do you happen to know whats causing this? so basicly how this happened is i created backup from packages installed on my phone and just pasted them to my pc ( since the discord selfbot was working on my phone and not my pc )

What is the pkg version? (python -m discord --version)

maxhithere commented 1 year ago

python -m discord --version

hello, i am getting the same issue importing the module.

Running the commands gives me:

- Python v3.11.3-final
- discord.py-self v2.0.0-final
- aiohttp v3.8.4
dolfies commented 1 year ago

python -m discord --version

hello, i am getting the same issue importing the module.

Running the commands gives me:

- Python v3.11.3-final
- discord.py-self v2.0.0-final
- aiohttp v3.8.4

Can you please provide a traceback?

GH0STSecurity commented 1 year ago

I am unable to reproduce this. Can you please provide example code that showcases this issue?

Hey, i actually have this problem, i actually got the backup of the installed packages and every time this happens Traceback (most recent call last): File "D:\Selfbot\root\TXListenerV3.py", line 43, in <module> import discord File "C:\Users\imajo\AppData\Roaming\Python\Python311\site-packages\discord\__init__.py", line 27, in <module> from .audit_logs import * File "C:\Users\imajo\AppData\Roaming\Python\Python311\site-packages\discord\audit_logs.py", line 40, in <module> from .member import Member File "C:\Users\imajo\AppData\Roaming\Python\Python311\site-packages\discord\member.py", line 219, in <module> @flatten_user ^^^^^^^^^^^^ File "C:\Users\imajo\AppData\Roaming\Python\Python311\site-packages\discord\member.py", line 213, in flatten_user func = utils.copy_doc(value)(func) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\imajo\AppData\Roaming\Python\Python311\site-packages\discord\utils.py", line 341, in decorator overridden.__signature__ = _signature(original) # type: ignore ^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\inspect.py", line 3279, in signature return Signature.from_callable(obj, follow_wrapped=follow_wrapped, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\inspect.py", line 3027, in from_callable return _signature_from_callable(obj, sigcls=cls, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\inspect.py", line 2447, in _signature_from_callable raise TypeError('{!r} is not a callable object'.format(obj)) TypeError: <discord.utils.CachedSlotProperty object at 0x000001460250AE90> is not a callable object do you happen to know whats causing this? so basicly how this happened is i created backup from packages installed on my phone and just pasted them to my pc ( since the discord selfbot was working on my phone and not my pc )

What is the pkg version? (python -m discord --version)

2.3.0.... btw i managed to fix it , the version was also 2.3.0 in my phone ( termux ) but for some reason it worked on my phone, so i took a look into it and apparently the discord 2.3.0 library that was on my phone and the one that was on my pc were diffrent somehow :Skull: idrk how that happened but yeah

dolfies commented 10 months ago

This should finally be fixed in master, still unsure why I could never reproduce it.