dr-ni / onboard

Onboard is an onscreen keyboard useful for everybody that cannot use a hardware keyboard; for example TabletPC users, mobility impaired users,...
https://launchpad.net/onboard
Other
10 stars 1 forks source link

Building package and accessibility auto-suggestion #2

Closed gnulinux666 closed 2 months ago

gnulinux666 commented 3 months ago

Arch Linux Gnome 46

./setup.py build tools/install_gsettings_schema

cp: cannot create regular file '/usr/share/glib-2.0/schemas/org.onboard.gschema.xml': Permission denied
cp: cannot create regular file '/usr/share/glib-2.0/schemas/99_onboard-default-settings.gschema.override': Permission denied
Failed to create file “/usr/share/glib-2.0/schemas/gschemas.compiled.HLVZP2”: Permission denied
dr-ni commented 3 months ago

Hi gnulinux666, is sudo needed? sudo /setup.py build can you check this: ls /usr/share/glib*

gnulinux666 commented 3 months ago

Hi dr-ni I checked with sudo privilege and without . ls /usr/share/glib* dtds gettext schemas valgrind

dr-ni commented 3 months ago

and sudo python3 setup.py build ?

gnulinux666 commented 3 months ago

/home/gnulinux/onboard/./setup.py:118: SyntaxWarning: invalid escape sequence '\d' version = re.search('(?:(?:\d+).)+\d+', output).group() /home/gnulinux/onboard/./setup.py:55: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. current_ver = version.StrictVersion(DistUtilsExtra.auto.version) /home/gnulinux/onboard/./setup.py:56: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. required_ver = version.StrictVersion('2.12') removing pycache directories recursively found dconf version 0.40.0 setup.py: running pkg-config: pkg-config --libs --cflags gdk-3.0 x11 xi xtst xkbfile dconf libcanberra hunspell libudev setup.py: -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/dconf -D_REENTRANT -I/usr/include/hunspell -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/fribidi -lgdk-3 -lz -lharfbuzz -lpangocairo-1.0 -lpango-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lX11 -lXi -lXtst -lxkbfile -ldconf -lgio-2.0 -lglib-2.0 -lgobject-2.0 -lcanberra -lhunspell-1.7 -ludev WARNING: the following files are not recognized by DistUtilsExtra.auto: Onboard/manual_tests/test_xembed

dr-ni commented 3 months ago

is this the full output? sudo python3 setup.py clean python3 setup.py build > build_log.txt 2>&1 cat build_log.txt

gnulinux666 commented 3 months ago

build_log.txt

dr-ni commented 3 months ago

I have commited some fixes... can you check again:

git pull sudo python3 setup.py clean python3 setup.py build > build_log.txt 2>&1 cat build_log.txt sudo tools/install_gsettings_schema

gnulinux666 commented 3 months ago

build_log.txt ./onboard /home/gnulinux/onboard/Onboard/utils.py:151: SyntaxWarning: invalid escape sequence '\d' """ /home/gnulinux/onboard/Onboard/utils.py:220: SyntaxWarning: invalid escape sequence '\s' pattern = re.compile('>\n\s+([^<>\s].*?)\n\s+</', re.DOTALL) /home/gnulinux/onboard/Onboard/utils.py:221: SyntaxWarning: invalid escape sequence '\g' pretty_xml = pattern.sub('>\g<1></', ugly_xml) /home/gnulinux/onboard/Onboard/utils.py:356: SyntaxWarning: invalid escape sequence '\:' """ /home/gnulinux/onboard/Onboard/utils.py:1683: SyntaxWarning: invalid escape sequence '\w' """(?: 09:38:15.334 WARNING Config: Starting in project directory, importing local packages and extensions. Traceback (most recent call last): File "/home/gnulinux/onboard/./onboard", line 35, in from Onboard.OnboardGtk import OnboardGtk as Onboard File "/home/gnulinux/onboard/Onboard/OnboardGtk.py", line 48, in from Onboard.Keyboard import Keyboard File "/home/gnulinux/onboard/Onboard/Keyboard.py", line 45, in from Onboard.KeyboardPopups import TouchFeedback File "/home/gnulinux/onboard/Onboard/KeyboardPopups.py", line 256, in class LabelPopup(KeyboardPopupDrawable): File "/home/gnulinux/onboard/Onboard/KeyboardPopups.py", line 264, in LabelPopup _osk_util = osk.Util() ^^^^^^^^ AttributeError: module 'Onboard.osk' has no attribute 'Util'

dr-ni commented 3 months ago

did you make the git pull? first cd onboard then git pull

gnulinux666 commented 3 months ago

yes I did , although I did rm -rf onboard and git clone https://github.com/dr-ni/onboard again

dr-ni commented 3 months ago

the distutils warning is solved: https://github.com/dr-ni/onboard/commit/5a3c7fe41af2113559e3242b1e5585fd2b65b571 but still in your log in line 1: /home/gnulinux/onboard/setup.py:55: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.

dr-ni commented 3 months ago

oh sorry there are many more imports let me check it again...

dr-ni commented 3 months ago

can you check again:

git pull python3 setup.py clean python3 setup.py build sudo tools/install_gsettings_schema

./onboard currently cannot start onboard but if everything worked without errors you can install:

sudo python3 setup.py install

And if necessary, uninstall with sudo python3 setup.py install --record files.txt sudo xargs -a files.txt --delimiter='\n' rm -v sudo rm -rf /usr/local/share/onboard

on my ubuntu I had to install python3-packaging is there also a package for arch?

dr-ni commented 3 months ago

and to avoid crashing:

onboard-settings

Bildschirmfoto zu 2024-06-20 03-21-36

gnulinux666 commented 3 months ago

build_log.txt in fact I have ubuntu 24.04 on my real system . if I sure "suggestion" part work and don't crash I will compile and install in ubuntu.

dr-ni commented 3 months ago

your log is looking fine is it working on your arch after install?

on my 24.04 it was first crashing since the preset is always Xinput this must be set to gtk until I have made a fix

gnulinux666 commented 3 months ago

unfortunately it is not working on arch , I set to GTK .

onboard 23:24:06.544 WARNING Config: mousetweaks GSettings schema not found, mousetweaks integration disabled. 23:24:08.112 WARNING Onboard.WPEngine: System language model '/usr/share/onboard/models/.lm' doesn't exist, skipping. Segmentation fault (core dumped)

dr-ni commented 3 months ago

do you have installed mousetweaks? did you uninstall all previously installed onboard packages?

gnulinux666 commented 3 months ago

after installing mousetweaks onboard 23:47:14.112 WARNING Onboard.WPEngine: System language model '/usr/share/onboard/models/.lm' doesn't exist, skipping. Segmentation fault (core dumped)

I uninstalled and reinstalled but this error remained .

dr-ni commented 3 months ago

there is no older onboard installed? can you install my mousetweaks version?

gnulinux666 commented 3 months ago

This command sudo rm -rf /usr/local/share/onboard remove all onboard from my system . I installed with this command sudo pacman -S mousetweaks

dr-ni commented 3 months ago

are you sure onboard is removed correct? https://bbs.archlinux.org/viewtopic.php?id=96523 what is your displaymanager? wayland is not supported, you need xorg can you uninstall mousetweaks and install my git version?

gnulinux666 commented 3 months ago

in xorg works but "suggestion" is not working yet.

mousetweaks --help-all Usage: mousetweaks [OPTION?] - GNOME mouse accessibility daemon

Help Options: -h, --help Show help options --help-all Show all help options --help-gtk Show GTK+ Options

GTK+ Options --class=CLASS Program class as used by the window manager --name=NAME Program name as used by the window manager --gtk-module=MODULES Load additional GTK+ modules --g-fatal-warnings Make all warnings fatal

Application Options: --dwell Enable dwell click --ssc Enable simulated secondary click --dwell-time=[0.2-3.0] Time to wait before a dwell click --ssc-time=[0.5-3.0] Time to wait before a simulated secondary click -m, --dwell-mode=[window|gesture] Set the active dwell mode -c, --hide-ctw Hide the click-type window -t, --threshold=[0-30] Ignore small pointer movements -g, --geometry=WIDTHxHEIGHT+X+Y Click-type window geometry -s, --shutdown Shut down mousetweaks --daemonize Start mousetweaks as a daemon --login Start mousetweaks in login mode --display=DISPLAY X display to use

which version of mousetweak do you want to install ?

dr-ni commented 3 months ago

please check ps -e | grep tty and pgrep wayland

in the README.md you can find the link to my mousetweaks.git

before installation please check again that you have absolutely COMPLETELY unstalled ALL onboard and mousetweaks packages from pacman!

dr-ni commented 3 months ago

as I have seen here: https://wiki.archlinux.org/title/GNOME Wayland is default

Wayland is not supported, you need xorg

what is your setting?

gnulinux666 commented 3 months ago

ps -e | grep tty 1053 tty2 00:00:00 gdm-x-session 1055 tty2 00:02:44 Xorg 1093 tty2 00:00:00 gnome-session-b [gnulinux@arch onboard]$ pgrep wayland

sudo pacman -Rsn mousetweaks checking dependencies...

Packages (1) mousetweaks-3.32.0-2

Total Removed Size: 0.41 MiB

:: Do you want to remove these packages? [Y/n] y :: Processing package changes... (1/1) removing mousetweaks [################################] 100% :: Running post-transaction hooks... (1/2) Arming ConditionNeedsUpdate... (2/2) Compiling GSettings XML schema files...

your mousetweaks version get error I've sent log that page

dr-ni commented 3 months ago

can you also uninstall onboard from pacman again ?

gnulinux666 commented 3 months ago

error: target not found: onboard pacman not found onboard

gnulinux666 commented 3 months ago

all errors are gone but suggestion is not working and when I close : onboard Segmentation fault (core dumped)

dr-ni commented 3 months ago

what do you mean with suggestion? how did you close? is onboard now working? is mousetweaks now working?

dr-ni commented 3 months ago

maybe you can show me with recordmydesktop

gnulinux666 commented 3 months ago

onboard 22:07:47.524 WARNING Onboard.WPEngine: Failed to find language models in '/home/gnulinux/.local/share/onboard/models': No such file or directory (2) Segmentation fault (core dumped)

gnulinux666 commented 3 months ago

arch-screen0.webm

dr-ni commented 3 months ago

can you launch it with onboard -d all and send me output after crash

gnulinux666 commented 3 months ago

onboard_DEBUG.txt

gnulinux666 commented 3 months ago

Now I'm in Ubuntu noble 24.04 I wanna test it on ubuntu.

gnulinux666 commented 3 months ago

I installed on ubuntu show suggestion but when I cilicked a word it didn't put on target ,look at screenshot I click sudo on suggestion but don't type in terminal . screen-2024-06-25-13-56-14

dr-ni commented 3 months ago

I have now started to fix all deprecated warnings. can you; git pull cd onboard/ python3 setup.py clean python3 setup.py build killall onboard sudo python3 setup.py install and check again also onboard-settings and switch to XInput again

gnulinux666 commented 3 months ago

Not working ,after now I am going to test it just in ubuntu noble. onboard_DEBUG2.txt

dr-ni commented 3 months ago

is it starting with the gtk setting?

gnulinux666 commented 3 months ago

yes, Dose suggestion part work for you? you have ubuntu OS.

dr-ni commented 3 months ago

Unfortunately not, I have the same behaviour. Is the word suggestion working on arch?

gnulinux666 commented 3 months ago

Not working on arch ,after upgrading python 3.12 word suggestion' onboard not working on ubuntu 22.04 is working.

dr-ni commented 3 months ago

for me it is also not working on ubuntu?

can yo show me with recordmydesktop

gnulinux666 commented 3 months ago

I said on ubuntu 24.04 is not working on ubuntu 22.04 is working .

dr-ni commented 3 months ago

ah ok

gnulinux666 commented 3 months ago

can you install old ubuntu on virtualbox and compare onboard code . lubuntu-screen0.webm

dr-ni commented 3 months ago

Theese questions are still not answered:

dr-ni commented 3 months ago

image

Can you check these settings? It fixed the autosuggestion for me.

gnulinux666 commented 3 months ago

yes,It fixed for me too , but only work with english language .