RMPR / atbswp

A minimalist macro recorder
GNU General Public License v3.0
719 stars 87 forks source link

Arch/Manjaro Linux, which packages to install (python3-tk python3-dev) #47

Closed slrslr closed 3 years ago

slrslr commented 3 years ago

Operating System

Manjaro Linux

Desktop Environment/Window Manager

XFCE

Python version

3.9.1

Description

I have ran README suggested installation commands:

git clone https://github.com/RMPR/atbswp.git && cd atbswp
python3 -m pip install pyautogui pynput --user
python3 atbswp/atbswp.py

"NOTE: You must install tkinter on Linux to use MouseInfo. Run the following: sudo apt-get install python3-tk python3-dev"

$ pamac search -a python-tk

python-tkfontchooser 2.0.2-1 AUR python-tkfilebrowser 2.3.2-2 AUR python-tkencfs-git 0.9.r8.g081e649-1 AUR python-tkcolorpicker 2.1.3-1 AUR python-tkcalendar 1.6.1-1 AUR

regarding python3-dev i have found “python-devtools” so i have tried to install only python-devtools (i do not know which *tk package is right one) and the result is “A failure occurred in check(). AssertionError

Please which packages i need to install on Arch/Manjaro? What to search in package manager?...

RMPR commented 3 years ago

Per this[0], it seems that the tkinter package is simply named "tk" instead of "python3-tk" so:

sudo pacman -S tk

Should solve your problem. Also, there are some prebuilt executables here[1] so you don't have to wrestle with libraries installation, and that's what I meant by:

  • [ x] I use the latest release of atbswp

Finally, I can accept a PR where you update the Readme with the install instructions for your distribution if you feel like it.

Thanks.

0: https://coffeecode7.wordpress.com/20117/10/31/installing-tkinter-in-manjaroarch-linux/

1: https://github.com/RMPR/atbswp/releases/tag/v0.2

slrslr commented 3 years ago

sudo pacman -S tk worked, but it then "ModuleNotFoundError: No module named 'wx'"

$ sudo pacman -Ss wx
extra/wxgtk-common 3.0.5.1-2 [installed]
    Common libraries and headers for wxgtk2 and wxgtk3
extra/wxgtk2 3.0.5.1-2 [installed]
    GTK+2 implementation of wxWidgets API for GUI
extra/wxgtk3 3.0.5.1-2 [installed]
    GTK+3 implementation of wxWidgets API for GUI
extra/wxmaxima 21.01.0-1
    A wxWidgets GUI for the computer algebra system Maxima
community/awxkit 17.0.1-1
    cli client and python library for ansible awx (tower)
community/python-wxpython 4.0.7.2-5
    Cross-platform GUI toolkit
community/python2-wxpython3 3.0.2.0-3
    Classic wxWidgets GUI toolkit for Python
community/vbam-wx 2.1.4-3
    Nintendo GameBoy Advance emulator
community/wxsqlite3 4.6.4-1
    wxWidgets wrapper for SQLite3
community/wxsvg 1.5.22-2
    C++ library to create, manipulate and render SVG files

sudo pacman -S python-wxpython installed "python-wxpython-4.0.7.2-5-x86_64"

and "python3 atbswp/atbswp.py" is now launching the app without problem. :+1:

ANOTHER APPROACH is as mentioned, download latest *-linux file from https://github.com/RMPR/atbswp/releases/latest , set execute permission and it also launched without problem.