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

pipx #24

Open
Chuck-Carr opened this issue Dec 19, 2023 · 4 comments
Open

pipx #24

Chuck-Carr opened this issue Dec 19, 2023 · 4 comments

Comments

@Chuck-Carr
Copy link

I could not get this to run and could not install pipx using apt. I got the following error: "pipx depends on python3-userpath but it is not installable".

I was able to get it to run when I manually isntalled pipx using "python3 -m pip install pix"

@clem9669
Copy link

Hi @Chuck-Carr

It is dependant on your installation. You do not give enough details to troubleshot with you. What OS, which version, what apt package, what ansible error output and so on.

@Chuck-Carr
Copy link
Author

Fresh download of Parrot HTB, that should be pretty obvious..... it literally states the error output.

@NicholsonJD
Copy link

NicholsonJD commented Dec 20, 2023

I had the same issue when I tried to install pipx.

sudo apt-get install pipx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 pipx : Depends: python3-userpath but it is not installable
        Recommends: libjs-bootstrap4 (>= 4.5.2+dfsg1-7) but it is not going to be installed
        Recommends: libjs-lunr (>= 2.3.8~dfsg-2) but it is not going to be installed
        Recommends: mkdocs (>= 1.1.2+dfsg-1) but it is not going to be installed

I tried installing userpath but apparently it's already installed:

python3 -m pip install userpath
Requirement already satisfied: userpath in /home/username/.local/lib/python3.9/site-packages (1.9.1)
Requirement already satisfied: click in /usr/lib/python3/dist-packages (from userpath) (8.1.3)

I just skipped it by removing pipx from the apt-stuff.yml file. I also had to remove the include: python-tools.yml from the main.yml inside the install-tools role. Until someone can help me get pipx installed 👍

@clem9669
Copy link

Hi @NicholsonJD ,

Thanks for the command output.

I will try to give you useful advices but I did not experienced it on my own.
The installation of pipx should be straight forward with apt update && apt install pipx.
Do you experience this error with other package ? Can you force install ? Is it the same output with apt and apt-get ?

Does this playbook work on your end ?

---
- name: "Update package cache (Debian/Ubuntu)"
  apt:
    update_cache: yes
    cache_valid_time: 3600
  when: ansible_os_family == 'Debian'
  become: true
  become_method: sudo

- name: "Upgrade all packages (Debian/Ubuntu)"
  apt:
    upgrade: full
    autoremove: yes
    autoclean: yes
  become: true
  become_method: sudo

- name: "Installing Packages"
  package:
    name:
      - pipx

Cheers

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

3 participants