Gamerium / Dindo-Bot

:robot: Farming bot for Dofus game
MIT License
113 stars 31 forks source link

HOW TO INSTALL #26

Closed gooeedo closed 3 years ago

gooeedo commented 3 years ago

I'm sorry to bother you, but I'm having trouble executing the command

chmod +x install.sh

This is the error:

Package python-gi is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'python-gi' has no installation candidate E: Unable to locate package python-xlib E: Unable to locate package python-pil

could you help me fix it? thanks for your availability and for your great work

AXeL-dev commented 3 years ago

Hello,

I guess that i need more informations to help you, like your distro name & version.

gooeedo commented 3 years ago

Hi, i am using a linux virtual machine, here is the information you asked me for, thank you for the help.

$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 21.04 Release: 21.04 Codename: hirsute

$ cat /etc/*-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=21.04 DISTRIB_CODENAME=hirsute DISTRIB_DESCRIPTION="Ubuntu 21.04" NAME="Ubuntu" VERSION="21.04 (Hirsute Hippo)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 21.04" VERSION_ID="21.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL=" https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=hirsute UBUNTU_CODENAME=hirsute

Il giorno mar 31 ago 2021 alle ore 20:30 AXeL @.***> ha scritto:

Hello,

I guess that i need more informations to help you, like you distro name & version.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AXeL-dev/Dindo-Bot/issues/26#issuecomment-909493933, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMC7KKF2KPYCYDUZ2TWRLTT7UNUNANCNFSM5DEBIAOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

AXeL-dev commented 3 years ago

Thanks for the details,

Well it seems that the latest ubuntu version doesn't include/support some old python 2 packages, so for now i updated the install script to use python 3 packages by default (b5d06a5).

Let me know if that works for you.

gooeedo commented 3 years ago

Thank you for the fix, it works. Now it doesn't give me errors, but when i run the bot with the command:

dindo-bot

i have this error

libwnck is designed to work in X11 only, no valid display found Traceback (most recent call last): File "/usr/local/bin/dindo-bot", line 11, in bot = BotWindow() File "/home/guido/Downloads/Dindo-Bot-master/gui/main.py", line 32, in init self.create_tabs() File "/home/guido/Downloads/Dindo-Bot-master/gui/main.py", line 250, in create_tabs self.populate_game_window_combo() File "/home/guido/Downloads/Dindo-Bot-master/gui/main.py", line 1024, in populate_game_window_combo self.game_windowList = tools.get_game_window_list() File "/home/guido/Downloads/Dindo-Bot-master/lib/tools.py", line 27, in get_game_window_list screen.force_update() # recommended per Wnck documentation AttributeError: 'NoneType' object has no attribute 'force_update'

I tried to use the fix you suggested in a previous issue: sudo pacman -S libwnck3, but i have sudo: pacman: command not found (sudo apt install pacman doesn't work). I also tried to do sudo apt-get install -y libwnck-3-0 but it doesn't work.

Il giorno mer 1 set 2021 alle ore 11:21 AXeL @.***> ha scritto:

Thanks for the details,

Well it seems that latest ubuntu version doesn't include/support some old python 2 packages, so for now i updated the install script to use python 3 packages by default (b5d06a5 https://github.com/AXeL-dev/Dindo-Bot/commit/b5d06a5c06e96986c9f221f4aac2a0ebfaf2e04f ).

Let me know if that works for you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AXeL-dev/Dindo-Bot/issues/26#issuecomment-910100472, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMC7KJB7AL5AQPT3765BW3T7XWB5ANCNFSM5DEBIAOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

AXeL-dev commented 3 years ago

The bot crash should be fixed, but you won't be able to get the list of active game windows.

Also the error you're getting is related to the wayland display server #17. What i can suggest is to use another flavor of ubuntu like Ubuntu Budgie 21.04 (which does not relay on wayland i guess), or to downgrade to an LTS version like 18.04 or 20.04.

Edit: Another option would be to switch to the X.Org display server from your login page, as below:

image

gooeedo commented 3 years ago

Thanks you so much for the help, really appreciate everything you’ve done, couldn’t have done it without you

Il giorno mer 1 set 2021 alle ore 20:55 AXeL @.***> ha scritto:

The bot crash should be fixed, but you won't be able to get the list of active game windows.

Also the error you're getting is related to the wayland display server #17 https://github.com/AXeL-dev/Dindo-Bot/issues/17. What i can suggest is to use another flavor of ubuntu like Ubuntu Budgie 21.04 https://ubuntubudgie.org/ (which does not relay on wayland i guess), or to downgrade to an LTS version like 18.04 or 20.04.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AXeL-dev/Dindo-Bot/issues/26#issuecomment-910586220, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMC7KKHGQSZP5KPUDQJVRTT7ZZI5ANCNFSM5DEBIAOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

AXeL-dev commented 3 years ago

You're welcome, can you confirm which solution worked for you? (i'm kinda curious haha)

gooeedo commented 3 years ago

Used Ubuntu Budgie 21.04 https://ubuntubudgie.org/ on my virtual machine

Il giorno gio 2 set 2021 alle ore 11:32 AXeL @.***> ha scritto:

You're welcome, can you confirm which solution worked for you? (i'm kinda curious haha)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AXeL-dev/Dindo-Bot/issues/26#issuecomment-911453424, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMC7KJNJWBWEGQQYC3TFQTT75ACPANCNFSM5DEBIAOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

AXeL-dev commented 3 years ago

Alright! thanks for the confirmation, & don't hesitate to open new issues if you find any.

gooeedo commented 3 years ago

Sorry to bother you again, do you have any tips on how to play dofus on linux? I installed the game, but when I press play on the ankama launcher nothing happens. I tried with playonlinux, is it the right way?

Il giorno gio 2 set 2021 alle ore 11:49 AXeL @.***> ha scritto:

Alright! thanks for the confirmation, & don't hesitate to open new issues if you find any.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AXeL-dev/Dindo-Bot/issues/26#issuecomment-911470271, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVMC7KIVUHEZ3HD4BSEMKPLT75CBVANCNFSM5DEBIAOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

AXeL-dev commented 3 years ago

If the game is not launching it might means that something is wrong, maybe a missing dependency or an issue with wine since dofus on linux is using it behind the scenes.

What i can suggest for now is to try using Lutris, you can follow the steps here: https://www.dofus.com/fr/forum/1115-bugs/2322167-instabilite-client-linux-crash-reguliers?page=2#entry12721463.

PS: i'm sorry if the steps are in french, but i guess that you can simply use google translate.