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
Error at TASK [smartgic.mycroft : Install Python packages] #2
Comments
Hi, According to the error message, you have a permission denied. Could you please paste your playbook? |
Thanks for the answer! Yes, I'm wondering why installing all the other things works, but in this case I'm missing a permission. What exactly do you mean with "playbook"? Isn't the playbook the bunch of files with the instructions for ansible? Or do you mean the install-custom.yml? That's the only file (besides the inventory) I (minorly) edited. - hosts: rpi
gather_facts: yes
become: yes
pre_tasks:
- name: Install Python 3.x Ansible requirement
raw: apt-get install -y python3
changed_when: no
tags:
- always
vars:
prepi_pi_user: pi
prepi_hostname: mycroft
prepi_firmware_update: yes
prepi_overclock: yes
prepi_force_turbo: yes
prepi_cpu_freq: 2000
prepi_pulseaudio_daemon: yes
mycroft_branch: dev
mycroft_user: "{{ prepi_pi_user }}"
mycroft_skills_update_interval: 2.0
mycroft_recording_timeout_with_silence: 3.0
mycroft_enclosure_name: picroft
mycroft_extra_skills:
- https://github.com/smartgic/mycroft-finished-booting-skill.git
tasks:
- import_role:
name: smartgic.prepi
- import_role:
name: smartgic.mycroft Or something else? Sorry, I'm really not familiar with ansible... |
An Ansible playbook is list of actions to perform (tasks, roles, etc...), what you pasted above 👍 @xBeo I found the issue in the code... It fixed. Prior the playbook re-run, could you please run this command to update the
|
The fix seems to work, the TASK [smartgic.mycroft : Install Python packages] doesn't give an error anymore, though it always already has the status "ok". Sadly two tasks later [Create Mycroft AI virtualenv] there's another error. This time the error message is quite long.
Is this another issue, or a consequence of the same issue? It seems to concern python as well after all. I also tried installing pythonyaml manually, since that's the only thing I could get from the message, but it didn't change anything. |
I think the issue is related to I updated the role, by using As before, run this command prior: ansible-galaxy install smartgic.mycroft --force I hope it will help, thanks for your help. |
Sadly I'm getting the same error. I ran the command, but it was the same result. |
I'm able to reproduce the error, I'll look for a fix. |
I opened an issue on mycroft-core. The issue is related to PyYAML 5.4, installing version 5.4.1 seems to fix the issue. |
I just pushed a fixed with the commit 4e486cac3e62ec43152145372e2beb1891a3eb45 As before, run this command prior:
I hope it will help, thanks for your patience. 👍 |
A PR from @gez should be merged very soon, from there the workaround I did yesterday will not be necessary anymore. |
Thank you very much! |
Sooo... For the first I'm not exactly sure what to do, but I added quotes to the mycroft_bus_port variable in roles/smartgic.mycroft/vars, and the next time the warning didn't appear. I'm not sure about that fix though, maybe it wasn't nessecary. I ran it with the old value, just the number without the quotes, to be sure and it finished just fine. The second one seemed to be missing iptables, and after installing it manually (sudo apt-get install iptables), it worked and the play finished without errors. I guess my issue is closed with that, but maybe the last error could be fixed as well. Thank you very much for the help. 😃 |
@xBeo The first is just a warning, the second one is fixed. 👍 Thanks again! |
Heyho,
I run into an error when trying to run the playbook:
I have a freshly installed rpi4 with Raspberry Pi OS 64-Bit and I'm using Ansible 2.10.8
The install-custom.yml is from your guide and I only changed the prepi_hostname. I tried it with the one in the guide as well though.
I'm not sure what the error messsage is trying to tell me and sadly I'm a noob with Ansible, so I don't know where the error is coming from.
Do you have an idea, what the problem could be?
The text was updated successfully, but these errors were encountered: