Comments (11)
I just updated that branch with the latest changes. Hopefully it still works.
https://github.com/dolfies/discord.py-self/tree/renamed
from discord.py-self.
The version you just installed has a renamed import so it doesn't conflict.
Do
import selfcord as discord
instead ofimport discord
Ok. It works now!, Ty for the help!.
from discord.py-self.
This has been discussed multiple times.
Some people wanted me to rename, some didn't; now there's a branch that has a renamed import name.
I'm not 100% sure if it's fully up-to-date, though. It might be on v1.9.0.
EDIT: It is on v1.9.0. I'll update it tomorrow.
The proper solution would be to use venvs.
from discord.py-self.
This has been discussed multiple times.
Some people wanted me to rename, some didn't; now there's a branch that has a renamed import name.I'm not 100% sure if it's fully up-to-date, though. It might be on v1.9.0.
EDIT: It is on v1.9.0. I'll update it tomorrow.The proper solution would be to use venvs.
Ok.
When you get to it tomorrow, it'd be great/nice if you or anyone else could send me the link to that branch to use.
from discord.py-self.
@dolfies
I'll just be here then.
from discord.py-self.
I just updated that branch with the latest changes. Hopefully it still works.
Ok, Ty!
from discord.py-self.
@dolfies
Slight issue. I don't know how to install the renamed version,I tried to use the setup.py file and it bugged out to when I couldn't run selfbot code. "Improper token passed" error. And now I can't uninstall discord.py-self even as root user (for linux).
My file system does not acknowledge that /usr/lib/python3.9/site-packages/discord.py_self-1.9.1-py3.9.egg
exists, It doesn't show up when I look for it. Only when trying to uninstall it or when installing it again, it says already exists. But then I get the following error when trying to uninstall.
$ python3 -m pip uninstall discord.py-self
Found existing installation: discord.py-self 1.9.1
Uninstalling discord.py-self-1.9.1:
Would remove:
/usr/lib/python3.9/site-packages/discord.py_self-1.9.1-py3.9.egg
Proceed (Y/n)? Y
ERROR: Exception:
Traceback (most recent call last):
File "/usr/lib/python3.9/shutil.py", line 806, in move
os.rename(src, real_dst)
OSError: [Errno 18] Invalid cross-device link: '/usr/lib/python3.9/site-packages/discord.py_self-1.9.1-py3.9.egg' -> '/tmp/pip-uninstall-vofimglx'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ori/.local/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 173, in _main
status = self.run(options, args)
File "/home/ori/.local/lib/python3.9/site-packages/pip/_internal/commands/uninstall.py", line 93, in run
uninstall_pathset = req.uninstall(
File "/home/ori/.local/lib/python3.9/site-packages/pip/_internal/req/req_install.py", line 633, in uninstall
uninstalled_pathset.remove(auto_confirm, verbose)
File "/home/ori/.local/lib/python3.9/site-packages/pip/_internal/req/req_uninstall.py", line 384, in remove
moved.stash(path)
File "/home/ori/.local/lib/python3.9/site-packages/pip/_internal/req/req_uninstall.py", line 281, in stash
renames(path, new_path)
File "/home/ori/.local/lib/python3.9/site-packages/pip/_internal/utils/misc.py", line 331, in renames
shutil.move(old, new)
File "/usr/lib/python3.9/shutil.py", line 824, in move
rmtree(src)
File "/usr/lib/python3.9/shutil.py", line 718, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd
_rmtree_safe_fd(dirfd, fullname, onerror)
File "/usr/lib/python3.9/shutil.py", line 675, in _rmtree_safe_fd
onerror(os.unlink, fullname, sys.exc_info())
File "/usr/lib/python3.9/shutil.py", line 673, in _rmtree_safe_fd
os.unlink(entry.name, dir_fd=topfd)
PermissionError: [Errno 13] Permission denied: 'not-zip-safe'
Running the same command but as root/admin
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.9/site-packages/pip/__main__.py", line 23, in <module>
from pip._internal.cli.main import main as _main # isort:skip # noqa
File "/usr/lib/python3.9/site-packages/pip/_internal/cli/main.py", line 10, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "/usr/lib/python3.9/site-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "/usr/lib/python3.9/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
from pip._internal.cli import cmdoptions
File "/usr/lib/python3.9/site-packages/pip/_internal/cli/cmdoptions.py", line 25, in <module>
from pip._internal.cli.progress_bars import BAR_TYPES
File "/usr/lib/python3.9/site-packages/pip/_internal/cli/progress_bars.py", line 12, in <module>
from pip._internal.utils.logging import get_indentation
File "/usr/lib/python3.9/site-packages/pip/_internal/utils/logging.py", line 18, in <module>
from pip._internal.utils.misc import ensure_dir
File "/usr/lib/python3.9/site-packages/pip/_internal/utils/misc.py", line 34, in <module>
from pip._internal.locations import get_major_minor_version, site_packages, user_site
File "/usr/lib/python3.9/site-packages/pip/_internal/locations/__init__.py", line 9, in <module>
from . import _distutils, _sysconfig
File "/usr/lib/python3.9/site-packages/pip/_internal/locations/_sysconfig.py", line 8, in <module>
from pip._internal.exceptions import InvalidSchemeCombination, UserInstallationInvalid
ImportError: cannot import name 'InvalidSchemeCombination' from 'pip._internal.exceptions' (/usr/lib/python3.9/site-packages/pip/_internal/exceptions.py)
I think it may have something to do with the _
in the name
idk if I have to do something with the setup.py file to uninstall this, or what.. because nothing I am trying to do is helping and I still can't use my selfbot code.
from discord.py-self.
Update:
Re installing setup.py but using the following commands fixed the removing the files issue and am back to where I started.
$ sudo python setup.py install --record files.txt
$ sudo rm $(cat files.txt)
I can say..I will not be installing that branch again until I can get clear instructions on how to install it properly.
If you can give me some clear instructions please..i'd be very greatful.
(this issue can be closed after I get some clear instructions on what to with with the renamed branch)
from discord.py-self.
Generally, you don't want to install with setup.py
. You would do pip install git+https://github.com/dolfies/discord.py-self.git@renamed
from discord.py-self.
Generally, you don't want to install with
setup.py
. You would dopip install git+https://github.com/dolfies/discord.py-self.git@renamed
I gave that a try and It installed just fine. But it wouldn't let me use the selfbot code and gave the usual "Improper token passed" error. But the normal discord bot code worked though. (yes I had both discord.py and discord.py-self(renamed) installed at the same time. I call that progress.).
I will say this was is better and gave less complications during install and uninstall.
from discord.py-self.
The version you just installed has a renamed import so it doesn't conflict.
Do import selfcord as discord
instead of import discord
from discord.py-self.
Related Issues (20)
- change_presence afk=True is broken HOT 5
- List Index is out of range HOT 8
- API temporarily down. Falling back to manual retrieval HOT 4
- aiohttp.client_exceptions.ClientPayloadError: 400, message='Can not decode content-encoding: br' HOT 3
- reading voice data when in voice channel HOT 2
- Can't Seem To Catch discord.Forbidden Exception HOT 1
- invalid literal for int() with base 10: ',"2820' HOT 3
- API error HOT 4
- Error join guild
- Terminal color output regression since last release. HOT 3
- add a way to add super reactions
- API Error HOT 3
- KeyError: 'browser_user_agent' HOT 1
- Fragmented control frame causes crash HOT 1
- Slash Commands With Arguments Are Not Sent
- API ERROR + Could not retrieve client build number + could not retrieve browser version. HOT 3
- RichPresence buttons
- Misleading exception when creating a group with one user HOT 4
- when changing IP, Rate-Limit wait should stop waiting HOT 1
- Guild Attribute Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord.py-self.