Giter Site home page Giter Site logo

Comments (11)

dolfies avatar dolfies commented on July 1, 2024 1

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.

therealOri avatar therealOri commented on July 1, 2024 1

@dolfies

The version you just installed has a renamed import so it doesn't conflict.

Do import selfcord as discord instead of import discord

Ok. It works now!, Ty for the help!.

from discord.py-self.

dolfies avatar dolfies commented on July 1, 2024

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.

therealOri avatar therealOri commented on July 1, 2024

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.

therealOri avatar therealOri commented on July 1, 2024

@dolfies
I'll just be here then.

from discord.py-self.

therealOri avatar therealOri commented on July 1, 2024

I just updated that branch with the latest changes. Hopefully it still works.

https://github.com/dolfies/discord.py-self/tree/renamed

Ok, Ty!

from discord.py-self.

therealOri avatar therealOri commented on July 1, 2024

@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.

therealOri avatar therealOri commented on July 1, 2024

@dolfies

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.

dolfies avatar dolfies commented on July 1, 2024

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.

therealOri avatar therealOri commented on July 1, 2024

@dolfies

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

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.

dolfies avatar dolfies commented on July 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.