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

pip command issue on linux #4

Open
Hiruks opened this issue Oct 23, 2021 · 2 comments
Open

pip command issue on linux #4

Hiruks opened this issue Oct 23, 2021 · 2 comments

Comments

@Hiruks
Copy link

Hiruks commented Oct 23, 2021

Hi I tried to deploy your bot in my linux server, the first pynput command worked fine, but the win10toast-click command didnt seemed to work, this is what I got when I ran it

pip install win10toast-click

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting win10toast-click
Could not find a version that satisfies the requirement win10toast-click (from versions: )
No matching distribution found for win10toast-click

and thus I think the reason is because it is linux and of course it wont support windows based dependencies, is there any other solutions or alternatives to win10toast dependency?

@Hiruks
Copy link
Author

Hiruks commented Oct 24, 2021

Update ;
I was working on this problem for the past few hours and I found a way to get your discord-autotyper[updated].py to work in my linux server, this method can work on any unsupported device as I believe, this method excludes the requirements of installing win10toast-click and pynput dependencies

For this method to work you need to delete the following lines of the discord-autotyper[updated].py file

from pynput import keyboard
from win10toast_click import ToastNotifier

listener = keyboard.Listener(on_press=on_press)
listener.start()

After removing these two lines from the above mentioned file you will be able to execute the script with no use of pynput and win10toast dependencies

Note : But I would suggest you to enter the relevant information on your discord account and channel information etc. beforehand running the modified command, if possible try to manually add the relevant information to the info.txt file

@wowthecoder
Copy link
Owner

Can you try "pip install win10toast_click" in the command line, with an underscore instead of dash?
I developed this script on Windows, so I am sorry if I can't help you much on your problem.
Let me know if the suggestion above works, thanks!

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

No branches or pull requests

2 participants