Closed TurBoss closed 1 month ago
Some steps could be added:
yay
helperyay
helper detected then install fann
via the helperyay
helper not detected then stop the installer with a messageI think that a solution could be manually download the fann
from aur using git then use makepkg
to install it
sudo pacman -Syu
sudo pacman -S --needed base-devel git
git clone https://aur.archlinux.org/fann.git
cd fann
makepkg -si
What I'm confuse about is that fann
got installed via pacman
for many users. @JarbasAl any idea on that?
What I'm confuse about is that
fann
got installed viapacman
for many users. @JarbasAl any idea on that?
i think i just had it preinstalled and missed the error, afaik it was never available outside the AUR
@JarbasAl @TurBoss Please try this PR https://github.com/OpenVoiceOS/ovos-installer/pull/121
Hello, thanks for the fixes!
I did run the uninstall, then installed in virtualenv mode again.
The script gets stuck at this task
TASK [ovos_installer : Handle fann package from AUR (Arch based only)] ************************************************************************************************************************
Wednesday 31 July 2024 14:49:13 +0200 (0:00:07.033) 0:00:20.415 ********
[sudo] password for turboss: "pasword is visible here when I type it"
Then nothing hapends, had to CTRL-C
edit:
that was for satelite install, the ovos full install gave this error:
TASK [ovos_installer : Handle fann package from AUR (Arch based only)] ************************************************************************************************************************
Wednesday 31 July 2024 15:12:22 +0200 (0:00:01.126) 0:00:11.244 ********
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TimeoutError: The read operation timed out
fatal: [127.0.0.1]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/var/tmp/ansible-tmp-1722431542.9003515-1009090-37528709489277/AnsiballZ_aur.py\", line 107, in <module>\n _ansiballz_main()\n File \"/var/tmp/ansible-tmp-1722431542.9003515-1009090-37528709489277/AnsiballZ_aur.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/var/tmp/ansible-tmp-1722431542.9003515-1009090-37528709489277/AnsiballZ_aur.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.kewlfft.aur.plugins.modules.aur', init_globals=dict(_module_fqn='ansible_collections.kewlfft.aur.plugins.modules.aur', _modlib_path=modlib_path),\n File \"<frozen runpy>\", line 226, in run_module\n File \"<frozen runpy>\", line 98, in _run_module_code\n File \"<frozen runpy>\", line 88, in _run_code\n File \"/tmp/ansible_kewlfft.aur.aur_payload_lgjikcf8/ansible_kewlfft.aur.aur_payload.zip/ansible_collections/kewlfft/aur/plugins/modules/aur.py\", line 398, in <module>\n File \"/tmp/ansible_kewlfft.aur.aur_payload_lgjikcf8/ansible_kewlfft.aur.aur_payload.zip/ansible_collections/kewlfft/aur/plugins/modules/aur.py\", line 394, in main\n File \"/tmp/ansible_kewlfft.aur.aur_payload_lgjikcf8/ansible_kewlfft.aur.aur_payload.zip/ansible_collections/kewlfft/aur/plugins/modules/aur.py\", line 380, in apply_module\n File \"/tmp/ansible_kewlfft.aur.aur_payload_lgjikcf8/ansible_kewlfft.aur.aur_payload.zip/ansible_collections/kewlfft/aur/plugins/modules/aur.py\", line 266, in install_packages\n File \"/tmp/ansible_kewlfft.aur.aur_payload_lgjikcf8/ansible_kewlfft.aur.aur_payload.zip/ansible_collections/kewlfft/aur/plugins/modules/aur.py\", line 193, in install_with_makepkg\n File \"/tmp/ansible_kewlfft.aur.aur_payload_lgjikcf8/ansible_kewlfft.aur.aur_payload.zip/ansible/module_utils/urls.py\", line 1686, in open_url\n File \"/tmp/ansible_kewlfft.aur.aur_payload_lgjikcf8/ansible_kewlfft.aur.aur_payload.zip/ansible/module_utils/urls.py\", line 1578, in open\n File \"/usr/lib/python3.12/urllib/request.py\", line 215, in urlopen\n return opener.open(url, data, timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/urllib/request.py\", line 515, in open\n response = self._open(req, data)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/urllib/request.py\", line 532, in _open\n result = self._call_chain(self.handle_open, protocol, protocol +\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/urllib/request.py\", line 492, in _call_chain\n result = func(*args)\n ^^^^^^^^^^^\n File \"/tmp/ansible_kewlfft.aur.aur_payload_lgjikcf8/ansible_kewlfft.aur.aur_payload.zip/ansible/module_utils/urls.py\", line 605, in https_open\n File \"/usr/lib/python3.12/urllib/request.py\", line 1348, in do_open\n r = h.getresponse()\n ^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/http/client.py\", line 1428, in getresponse\n response.begin()\n File \"/usr/lib/python3.12/http/client.py\", line 331, in begin\n version, status, reason = self._read_status()\n ^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/http/client.py\", line 292, in _read_status\n line = str(self.fp.readline(_MAXLINE + 1), \"iso-8859-1\")\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/socket.py\", line 708, in readinto\n return self._sock.recv_into(b)\n ^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/ssl.py\", line 1252, in recv_into\n return self.read(nbytes, buffer)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/ssl.py\", line 1104, in read\n return self._sslobj.read(len, buffer)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nTimeoutError: The read operation timed out\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
Seems to be a network issue.
TASK [ovos_installer : Handle fann package from AUR (Arch based only)] ************************************************************************************************************************
Wednesday 31 July 2024 15:12:22 +0200 (0:00:01.126) 0:00:11.244 ********
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TimeoutError: The read operation timed out
fatal: [127.0.0.1]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/var/tmp/ansible-tmp-1722431542.9003515-1009090-37528709489277/AnsiballZ_aur.py\", line 107, in <module>\n _ansiballz_main()\n File \"/var/tmp/ansible-tmp-1722431542.9003515-1009090-37528709489277/AnsiballZ_aur.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/var/tmp/ansible-tmp-1722431542.9003515-1009090-37528709489277/AnsiballZ_aur.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.kewlfft.aur.plugins.modules.aur', init_globals=dict(_module_fqn='ansible_collections.kewlfft.aur.plugins.modules.aur', _modlib_path=modlib_path),\n File \"<frozen runpy>\", line 226, in run_module\n File \"<frozen runpy>\", line 98, in _run_module_code\n File \"<frozen runpy>\", line 88, in _run_code\n File \"/tmp/ansible_kewlfft.aur.aur_payload_lgjikcf8/ansible_kewlfft.aur.aur_payload.zip/ansible_collections/kewlfft/aur/plugins/modules/aur.py\", line 398, in <module>\n File \"/tmp/ansible_kewlfft.aur.aur_payload_lgjikcf8/ansible_kewlfft.aur.aur_payload.zip/ansible_collections/kewlfft/aur/plugins/modules/aur.py\", line 394, in main\n File \"/tmp/ansible_kewlfft.aur.aur_payload_lgjikcf8/ansible_kewlfft.aur.aur_payload.zip/ansible_collections/kewlfft/aur/plugins/modules/aur.py\", line 380, in apply_module\n File \"/tmp/ansible_kewlfft.aur.aur_payload_lgjikcf8/ansible_kewlfft.aur.aur_payload.zip/ansible_collections/kewlfft/aur/plugins/modules/aur.py\", line 266, in install_packages\n File \"/tmp/ansible_kewlfft.aur.aur_payload_lgjikcf8/ansible_kewlfft.aur.aur_payload.zip/ansible_collections/kewlfft/aur/plugins/modules/aur.py\", line 193, in install_with_makepkg\n File \"/tmp/ansible_kewlfft.aur.aur_payload_lgjikcf8/ansible_kewlfft.aur.aur_payload.zip/ansible/module_utils/urls.py\", line 1686, in open_url\n File \"/tmp/ansible_kewlfft.aur.aur_payload_lgjikcf8/ansible_kewlfft.aur.aur_payload.zip/ansible/module_utils/urls.py\", line 1578, in open\n File \"/usr/lib/python3.12/urllib/request.py\", line 215, in urlopen\n return opener.open(url, data, timeout)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/urllib/request.py\", line 515, in open\n response = self._open(req, data)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/urllib/request.py\", line 532, in _open\n result = self._call_chain(self.handle_open, protocol, protocol +\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/urllib/request.py\", line 492, in _call_chain\n result = func(*args)\n ^^^^^^^^^^^\n File \"/tmp/ansible_kewlfft.aur.aur_payload_lgjikcf8/ansible_kewlfft.aur.aur_payload.zip/ansible/module_utils/urls.py\", line 605, in https_open\n File \"/usr/lib/python3.12/urllib/request.py\", line 1348, in do_open\n r = h.getresponse()\n ^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/http/client.py\", line 1428, in getresponse\n response.begin()\n File \"/usr/lib/python3.12/http/client.py\", line 331, in begin\n version, status, reason = self._read_status()\n ^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/http/client.py\", line 292, in _read_status\n line = str(self.fp.readline(_MAXLINE + 1), \"iso-8859-1\")\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/socket.py\", line 708, in readinto\n return self._sock.recv_into(b)\n ^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/ssl.py\", line 1252, in recv_into\n return self.read(nbytes, buffer)\n ^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/lib/python3.12/ssl.py\", line 1104, in read\n return self._sslobj.read(len, buffer)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nTimeoutError: The read operation timed out\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
Edit
These are the two HTTP requests made by the Ansible module:
Both work for me.
ok that was a network issue didn't show again, but I'm still stuck at the fann task its been there for 20 minutes now and no changes :(
i did uninstall it fann first to this tests
ok that was a network issue didn't show again, but I'm still stuck at the fann task its been there for 20 minutes now and no changes :(
i did uninstall it fann first to this tests
Seems to be a sudo
issue based on https://github.com/kewlfft/ansible-aur/issues/37
Does the makepkg -si
has to happen as simple user or does root
can run this command?
oh thats it!
sudo makepkg -si
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
oh thats it!
Did it work?
oh sorry, I mean that makepkg
has to be run as regular user not root or sudo... :(
oh sorry, I mean that
makepkg
has to be run as regular user not root or sudo... :(
Isn't it waiting for a sudo
password?
yes it asked for sudo
password but the first attempt was already empty and like if I typed an empty password, then the second attempt allowed me to enter the password, it was visible, then hit enter and nothing happen
TASK [ovos_installer : Handle fann package from AUR (Arch based only)] ************************************************************************************************************************
Wednesday 31 July 2024 17:06:40 +0200 (0:00:01.154) 0:00:10.552 ********
[sudo] password for turboss:
[sudo] password for turboss: -> password is visble here <- not posible to type in the previous line
thanks!
I pushed some changes, please try again.
hello,
I have tried but got the same issue, the first password field is shown empty and the seccond one doesn't accept enter :((
Might be related to unbuffer
& tee
, try again please :)
it works! :tada:
TASK [ovos_installer : Handle fann package from AUR (Arch based only)] *********
Wednesday 31 July 2024 19:31:58 +0200 (0:00:01.898) 0:00:15.166 ********
[sudo] password for turboss:
[sudo] password for turboss:
changed: [127.0.0.1]
it still shows 2 prompts but completed all fine and the fann
package shows installed
Awesome!! Thank you so much!!
Thanks @TurBoss for the help!
Merged.
Hello,
to get the installer working in had to install "fann" package from aur
the installer tries to use pacman and fails searching for the package, here the error:
since it needs aur i'm not sure how to fix this, replace pacman with aur may need yay to be installed
thanks