Skip to content
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

No package matching 'python-boto' is available #19

Open
Twansparant opened this issue Nov 1, 2023 · 0 comments
Open

No package matching 'python-boto' is available #19

Twansparant opened this issue Nov 1, 2023 · 0 comments

Comments

@Twansparant
Copy link

Twansparant commented Nov 1, 2023

Hi there,

I've been using Xilonz's trellis-backup-role successfully in all my (Trellis) projects, which uses this role as dependency. Backups are uploaded to a Digital Ocean Space using S3.

In my latest project, which uses a Ubuntu 22.04 droplet for the first time (instead of 20.04), I'm not able to successfully provision my droplet with the exact same setup/credentials. I already created an issue in the trellis-backup-role repo for this, but I think the issue originates in this package.

So the error I'm getting is:

"No package matching 'python-boto' is available"

Which is defined here as:

python{{ system_python_version }}-boto

This system_python_version variable is defined here like this:

system_python_version: "{{ (ansible_distribution_release == 'focal') | ternary('3', '') }}"

So when I try to debug this {{ ansible_distribution_release }} variable in my server.yml playbook as a pre_task:

  pre_tasks:
    - debug:
        var: ansible_distribution_release
    - debug:
        msg: "System python version: {{ (ansible_distribution_release == 'focal') | ternary('3', '') }}"

It outputs jammy:

TASK [debug] *******************************************************************
ok: [146.190.29.96] => {
    "ansible_distribution_release": "jammy"
}

TASK [debug] *******************************************************************
ok: [146.190.29.96] => {
    "msg": "System python version: "
}

While it should be focal in order to use python3 correct?
I used the standard Ubuntu 22.04 (LTS) x64 image in Digital Ocean.

When I ssh into my droplet both python --version as well as python3 --version return:

Python 3.10.12

So it's trying to install the python(2x) version of boto while it should be the python3 version?
I tried installing python3-boto manually by adding it to trellis like this:

apt_packages_custom:
  python3-boto: "{{ apt_package_state }}"

But it still fails with the same error, is there anything else I can do to fix this?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant