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

pip module never set to changed when installing from github #81751

Open
1 task done
Redmar-van-den-Berg opened this issue Sep 21, 2023 · 2 comments · May be fixed by #81816
Open
1 task done

pip module never set to changed when installing from github #81751

Redmar-van-den-Berg opened this issue Sep 21, 2023 · 2 comments · May be fixed by #81816
Labels
affects_2.15 bug This issue/PR relates to a bug. has_pr This issue has an associated PR. module This issue/PR relates to a module. P3 Priority 3 - Approved, No Time Limitation verified This issue has been verified/reproduced by maintainer

Comments

@Redmar-van-den-Berg
Copy link

Summary

When installing the latest version of a git repository using ansible.builtin.pip, the status is never set to changed, not even when using state:forcereinstall. If I investigate the virtual environment on the provisioned system using pip freeze, I see that the virtual environment was in fact reinstalled, using the latest changes from git. However, since changed is never set to true, none of the defined notify handlers are triggered.

Issue Type

Bug Report

Component Name

pip

Ansible Version

$ ansible --version
ansible [core 2.15.4]
  config file = None
  configured module search path = ['/home/username/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/username/.local/pipx/venvs/ansible/lib/python3.11/site-packages/ansible
  ansible collection location = /home/username/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/username/.local/bin/ansible
  python version = 3.11.5 | packaged by conda-forge | (main, Aug 27 2023, 03:34:09) [GCC 12.3.0] (/home/username/.local/pipx/venvs/ansible/bin/python)
  jinja version = 3.1.2
  libyaml = True

Configuration

# if using a version older than ansible-core 2.12 you should omit the '-t all'
$ ansible-config dump --only-changed -t all
CONFIG_FILE() = None

OS / Environment

Ubuntu 22.04.3 LTS

Steps to Reproduce

    - name: Create virtualenv
      become: yes
      become_user: "{{ user }}"
      ansible.builtin.pip:
        name:
          - "git+{{ repo_url }}@{{ repo_tag }}"
          - gunicorn
        virtualenv: "{{ exonviz_dir }}/venv"
        state: forcereinstall
      notify:
        - Restart gunicorn

Expected Results

I expect ansible to set the task to changed if pip installs a newer version from a git repository.

Actual Results

TASK [Create virtualenv] *******************************************************
task path: /home/username/devel/exonviz-web/playbook.yml:41
<192.168.121.53> ESTABLISH SSH CONNECTION FOR USER: vagrant
<192.168.121.53> SSH: EXEC ssh -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/home/username/devel/exonviz-web/.vagrant/machines/default/libvirt/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=30 -o 'ControlPath="/home/username/.ansible/cp/c142c507a4"' 192.168.121.53 '/bin/sh -c '"'"'echo ~vagrant && sleep 0'"'"''
<192.168.121.53> (0, b'/home/vagrant\n', b'')
<192.168.121.53> ESTABLISH SSH CONNECTION FOR USER: vagrant
<192.168.121.53> SSH: EXEC ssh -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/home/username/devel/exonviz-web/.vagrant/machines/default/libvirt/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=30 -o 'ControlPath="/home/username/.ansible/cp/c142c507a4"' 192.168.121.53 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /var/tmp `"&& mkdir "` echo /var/tmp/ansible-tmp-1695297866.1154392-38396-180391496842004 `" && echo ansible-tmp-1695297866.1154392-38396-180391496842004="` echo /var/tmp/ansible-tmp-1695297866.1154392-38396-180391496842004 `" ) && sleep 0'"'"''
<192.168.121.53> (0, b'ansible-tmp-1695297866.1154392-38396-180391496842004=/var/tmp/ansible-tmp-1695297866.1154392-38396-180391496842004\n', b'')
Using module file /home/username/.local/pipx/venvs/ansible/lib/python3.11/site-packages/ansible/modules/pip.py
<192.168.121.53> PUT /home/username/.ansible/tmp/ansible-local-38315rs622_7x/tmp3eds13mw TO /var/tmp/ansible-tmp-1695297866.1154392-38396-180391496842004/AnsiballZ_pip.py
<192.168.121.53> SSH: EXEC sftp -b - -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/home/username/devel/exonviz-web/.vagrant/machines/default/libvirt/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=30 -o 'ControlPath="/home/username/.ansible/cp/c142c507a4"' '[192.168.121.53]'
<192.168.121.53> (0, b'sftp> put /home/username/.ansible/tmp/ansible-local-38315rs622_7x/tmp3eds13mw /var/tmp/ansible-tmp-1695297866.1154392-38396-180391496842004/AnsiballZ_pip.py\n', b'')
<192.168.121.53> ESTABLISH SSH CONNECTION FOR USER: vagrant
<192.168.121.53> SSH: EXEC ssh -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/home/username/devel/exonviz-web/.vagrant/machines/default/libvirt/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=30 -o 'ControlPath="/home/username/.ansible/cp/c142c507a4"' 192.168.121.53 '/bin/sh -c '"'"'setfacl -m u:dcrt:r-x /var/tmp/ansible-tmp-1695297866.1154392-38396-180391496842004/ /var/tmp/ansible-tmp-1695297866.1154392-38396-180391496842004/AnsiballZ_pip.py && sleep 0'"'"''
<192.168.121.53> (0, b'', b'')
<192.168.121.53> ESTABLISH SSH CONNECTION FOR USER: vagrant
<192.168.121.53> SSH: EXEC ssh -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/home/username/devel/exonviz-web/.vagrant/machines/default/libvirt/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=30 -o 'ControlPath="/home/username/.ansible/cp/c142c507a4"' -tt 192.168.121.53 '/bin/sh -c '"'"'sudo -H -S -n  -u dcrt /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-qinjwxxyuxmrdhhrskaqinsyarazdbfs ; /usr/bin/python3 /var/tmp/ansible-tmp-1695297866.1154392-38396-180391496842004/AnsiballZ_pip.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
Escalation succeeded
<192.168.121.53> (0, b'\r\n{"changed": false, "cmd": ["/opt/exonviz/venv/bin/pip3", "install", "-U", "--force-reinstall", "git+https://github.com/Redmar-van-den-Berg/exonviz-web.git@debug", "gunicorn"], "name": ["git+https://github.com/Redmar-van-den-Berg/exonviz-web.git@debug", "gunicorn"], "version": null, "state": "forcereinstall", "requirements": null, "virtualenv": "/opt/exonviz/venv", "stdout": "Collecting git+https://github.com/Redmar-van-den-Berg/exonviz-web.git@debug\\n  Cloning https://github.com/Redmar-van-den-Berg/exonviz-web.git (to revision debug) to ./pip-req-build-rgxfub5o\\n  Resolved https://github.com/Redmar-van-den-Berg/exonviz-web.git to commit 599150a8c404003d49392229a640fcfc5fcc0b84\\n  Preparing metadata (setup.py): started\\n  Preparing metadata (setup.py): finished with status \'done\'\\nCollecting gunicorn\\n  Using cached gunicorn-21.2.0-py3-none-any.whl (80 kB)\\nCollecting exonviz>=0.1.4\\n  Using cached exonviz-0.1.4-py3-none-any.whl (187 kB)\\nCollecting flask\\n  Using cached flask-2.3.3-py3-none-any.whl (96 kB)\\nCollecting packaging\\n  Using cached packaging-23.1-py3-none-any.whl (48 kB)\\nCollecting svg.py\\n  Using cached svg.py-1.4.2-py3-none-any.whl (13 kB)\\nCollecting Werkzeug>=2.3.7\\n  Using cached werkzeug-2.3.7-py3-none-any.whl (242 kB)\\nCollecting Jinja2>=3.1.2\\n  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)\\nCollecting itsdangerous>=2.1.2\\n  Using cached itsdangerous-2.1.2-py3-none-any.whl (15 kB)\\nCollecting click>=8.1.3\\n  Using cached click-8.1.7-py3-none-any.whl (97 kB)\\nCollecting blinker>=1.6.2\\n  Using cached blinker-1.6.2-py3-none-any.whl (13 kB)\\nCollecting MarkupSafe>=2.0\\n  Using cached MarkupSafe-2.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (28 kB)\\nBuilding wheels for collected packages: exonviz-web\\n  Building wheel for exonviz-web (setup.py): started\\n  Building wheel for exonviz-web (setup.py): finished with status \'done\'\\n  Created wheel for exonviz-web: filename=exonviz_web-0.0.1-py3-none-any.whl size=5376 sha256=90ff42f87499732f1b719b3f180739b1ed29ff8721858cf536735bbcd6b4b12f\\n  Stored in directory: /tmp/pip-ephem-wheel-cache-2yf669tb/wheels/91/83/19/78e8320f85eac34a87fc84ad2962739fe70108f5b50345b5d9\\nSuccessfully built exonviz-web\\nInstalling collected packages: svg.py, packaging, MarkupSafe, itsdangerous, click, blinker, Werkzeug, Jinja2, gunicorn, exonviz, flask, exonviz-web\\n  Attempting uninstall: svg.py\\n    Found existing installation: svg.py 1.4.2\\n    Uninstalling svg.py-1.4.2:\\n      Successfully uninstalled svg.py-1.4.2\\n  Attempting uninstall: packaging\\n    Found existing installation: packaging 23.1\\n    Uninstalling packaging-23.1:\\n      Successfully uninstalled packaging-23.1\\n  Attempting uninstall: MarkupSafe\\n    Found existing installation: MarkupSafe 2.1.3\\n    Uninstalling MarkupSafe-2.1.3:\\n      Successfully uninstalled MarkupSafe-2.1.3\\n  Attempting uninstall: itsdangerous\\n    Found existing installation: itsdangerous 2.1.2\\n    Uninstalling itsdangerous-2.1.2:\\n      Successfully uninstalled itsdangerous-2.1.2\\n  Attempting uninstall: click\\n    Found existing installation: click 8.1.7\\n    Uninstalling click-8.1.7:\\n      Successfully uninstalled click-8.1.7\\n  Attempting uninstall: blinker\\n    Found existing installation: blinker 1.6.2\\n    Uninstalling blinker-1.6.2:\\n      Successfully uninstalled blinker-1.6.2\\n  Attempting uninstall: Werkzeug\\n    Found existing installation: Werkzeug 2.3.7\\n    Uninstalling Werkzeug-2.3.7:\\n      Successfully uninstalled Werkzeug-2.3.7\\n  Attempting uninstall: Jinja2\\n    Found existing installation: Jinja2 3.1.2\\n    Uninstalling Jinja2-3.1.2:\\n      Successfully uninstalled Jinja2-3.1.2\\n  Attempting uninstall: gunicorn\\n    Found existing installation: gunicorn 21.2.0\\n    Uninstalling gunicorn-21.2.0:\\n      Successfully uninstalled gunicorn-21.2.0\\n  Attempting uninstall: exonviz\\n    Found existing installation: exonviz 0.1.4\\n    Uninstalling exonviz-0.1.4:\\n      Successfully uninstalled exonviz-0.1.4\\n  Attempting uninstall: flask\\n    Found existing installation: Flask 2.3.3\\n    Uninstalling Flask-2.3.3:\\n      Successfully uninstalled Flask-2.3.3\\n  Attempting uninstall: exonviz-web\\n    Found existing installation: exonviz-web 0.0.1\\n    Uninstalling exonviz-web-0.0.1:\\n      Successfully uninstalled exonviz-web-0.0.1\\nSuccessfully installed Jinja2-3.1.2 MarkupSafe-2.1.3 Werkzeug-2.3.7 blinker-1.6.2 click-8.1.7 exonviz-0.1.4 exonviz-web-0.0.1 flask-2.3.3 gunicorn-21.2.0 itsdangerous-2.1.2 packaging-23.1 svg.py-1.4.2\\n", "stderr": "  Running command git clone --filter=blob:none --quiet https://github.com/Redmar-van-den-Berg/exonviz-web.git /tmp/pip-req-build-rgxfub5o\\n  Running command git checkout -b debug --track origin/debug\\n  Switched to a new branch \'debug\'\\n  branch \'debug\' set up to track \'origin/debug\'.\\n", "invocation": {"module_args": {"name": ["git+https://github.com/Redmar-van-den-Berg/exonviz-web.git@debug", "gunicorn"], "virtualenv": "/opt/exonviz/venv", "state": "forcereinstall", "virtualenv_site_packages": false, "virtualenv_command": "virtualenv", "editable": false, "version": null, "requirements": null, "virtualenv_python": null, "extra_args": null, "chdir": null, "executable": null, "umask": null}}}\r\n', b'Shared connection to 192.168.121.53 closed.\r\n')
<192.168.121.53> ESTABLISH SSH CONNECTION FOR USER: vagrant
<192.168.121.53> SSH: EXEC ssh -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'IdentityFile="/home/username/devel/exonviz-web/.vagrant/machines/default/libvirt/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="vagrant"' -o ConnectTimeout=30 -o 'ControlPath="/home/username/.ansible/cp/c142c507a4"' 192.168.121.53 '/bin/sh -c '"'"'rm -f -r /var/tmp/ansible-tmp-1695297866.1154392-38396-180391496842004/ > /dev/null 2>&1 && sleep 0'"'"''
<192.168.121.53> (0, b'', b'')
ok: [default] => {
    "changed": false,
    "cmd": [
        "/opt/exonviz/venv/bin/pip3",
        "install",
        "-U",
        "--force-reinstall",
        "git+https://github.com/Redmar-van-den-Berg/exonviz-web.git@debug",
        "gunicorn"
    ],
    "invocation": {
        "module_args": {
            "chdir": null,
            "editable": false,
            "executable": null,
            "extra_args": null,
            "name": [
                "git+https://github.com/Redmar-van-den-Berg/exonviz-web.git@debug",
                "gunicorn"
            ],
            "requirements": null,
            "state": "forcereinstall",
            "umask": null,
            "version": null,
            "virtualenv": "/opt/exonviz/venv",
            "virtualenv_command": "virtualenv",
            "virtualenv_python": null,
            "virtualenv_site_packages": false
        }
    },
    "name": [
        "git+https://github.com/Redmar-van-den-Berg/exonviz-web.git@debug",
        "gunicorn"
    ],
    "requirements": null,
    "state": "forcereinstall",
    "stderr": "  Running command git clone --filter=blob:none --quiet https://github.com/Redmar-van-den-Berg/exonviz-web.git /tmp/pip-req-build-rgxfub5o\n  Running command git checkout -b debug --track origin/debug\n  Switched to a new branch 'debug'\n  branch 'debug' set up to track 'origin/debug'.\n",
    "stderr_lines": [
        "  Running command git clone --filter=blob:none --quiet https://github.com/Redmar-van-den-Berg/exonviz-web.git /tmp/pip-req-build-rgxfub5o",
        "  Running command git checkout -b debug --track origin/debug",
        "  Switched to a new branch 'debug'",
        "  branch 'debug' set up to track 'origin/debug'."
    ],
    "stdout": "Collecting git+https://github.com/Redmar-van-den-Berg/exonviz-web.git@debug\n  Cloning https://github.com/Redmar-van-den-Berg/exonviz-web.git (to revision debug) to ./pip-req-build-rgxfub5o\n  Resolved https://github.com/Redmar-van-den-Berg/exonviz-web.git to commit 599150a8c404003d49392229a640fcfc5fcc0b84\n  Preparing metadata (setup.py): started\n  Preparing metadata (setup.py): finished with status 'done'\nCollecting gunicorn\n  Using cached gunicorn-21.2.0-py3-none-any.whl (80 kB)\nCollecting exonviz>=0.1.4\n  Using cached exonviz-0.1.4-py3-none-any.whl (187 kB)\nCollecting flask\n  Using cached flask-2.3.3-py3-none-any.whl (96 kB)\nCollecting packaging\n  Using cached packaging-23.1-py3-none-any.whl (48 kB)\nCollecting svg.py\n  Using cached svg.py-1.4.2-py3-none-any.whl (13 kB)\nCollecting Werkzeug>=2.3.7\n  Using cached werkzeug-2.3.7-py3-none-any.whl (242 kB)\nCollecting Jinja2>=3.1.2\n  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)\nCollecting itsdangerous>=2.1.2\n  Using cached itsdangerous-2.1.2-py3-none-any.whl (15 kB)\nCollecting click>=8.1.3\n  Using cached click-8.1.7-py3-none-any.whl (97 kB)\nCollecting blinker>=1.6.2\n  Using cached blinker-1.6.2-py3-none-any.whl (13 kB)\nCollecting MarkupSafe>=2.0\n  Using cached MarkupSafe-2.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (28 kB)\nBuilding wheels for collected packages: exonviz-web\n  Building wheel for exonviz-web (setup.py): started\n  Building wheel for exonviz-web (setup.py): finished with status 'done'\n  Created wheel for exonviz-web: filename=exonviz_web-0.0.1-py3-none-any.whl size=5376 sha256=90ff42f87499732f1b719b3f180739b1ed29ff8721858cf536735bbcd6b4b12f\n  Stored in directory: /tmp/pip-ephem-wheel-cache-2yf669tb/wheels/91/83/19/78e8320f85eac34a87fc84ad2962739fe70108f5b50345b5d9\nSuccessfully built exonviz-web\nInstalling collected packages: svg.py, packaging, MarkupSafe, itsdangerous, click, blinker, Werkzeug, Jinja2, gunicorn, exonviz, flask, exonviz-web\n  Attempting uninstall: svg.py\n    Found existing installation: svg.py 1.4.2\n    Uninstalling svg.py-1.4.2:\n      Successfully uninstalled svg.py-1.4.2\n  Attempting uninstall: packaging\n    Found existing installation: packaging 23.1\n    Uninstalling packaging-23.1:\n      Successfully uninstalled packaging-23.1\n  Attempting uninstall: MarkupSafe\n    Found existing installation: MarkupSafe 2.1.3\n    Uninstalling MarkupSafe-2.1.3:\n      Successfully uninstalled MarkupSafe-2.1.3\n  Attempting uninstall: itsdangerous\n    Found existing installation: itsdangerous 2.1.2\n    Uninstalling itsdangerous-2.1.2:\n      Successfully uninstalled itsdangerous-2.1.2\n  Attempting uninstall: click\n    Found existing installation: click 8.1.7\n    Uninstalling click-8.1.7:\n      Successfully uninstalled click-8.1.7\n  Attempting uninstall: blinker\n    Found existing installation: blinker 1.6.2\n    Uninstalling blinker-1.6.2:\n      Successfully uninstalled blinker-1.6.2\n  Attempting uninstall: Werkzeug\n    Found existing installation: Werkzeug 2.3.7\n    Uninstalling Werkzeug-2.3.7:\n      Successfully uninstalled Werkzeug-2.3.7\n  Attempting uninstall: Jinja2\n    Found existing installation: Jinja2 3.1.2\n    Uninstalling Jinja2-3.1.2:\n      Successfully uninstalled Jinja2-3.1.2\n  Attempting uninstall: gunicorn\n    Found existing installation: gunicorn 21.2.0\n    Uninstalling gunicorn-21.2.0:\n      Successfully uninstalled gunicorn-21.2.0\n  Attempting uninstall: exonviz\n    Found existing installation: exonviz 0.1.4\n    Uninstalling exonviz-0.1.4:\n      Successfully uninstalled exonviz-0.1.4\n  Attempting uninstall: flask\n    Found existing installation: Flask 2.3.3\n    Uninstalling Flask-2.3.3:\n      Successfully uninstalled Flask-2.3.3\n  Attempting uninstall: exonviz-web\n    Found existing installation: exonviz-web 0.0.1\n    Uninstalling exonviz-web-0.0.1:\n      Successfully uninstalled exonviz-web-0.0.1\nSuccessfully installed Jinja2-3.1.2 MarkupSafe-2.1.3 Werkzeug-2.3.7 blinker-1.6.2 click-8.1.7 exonviz-0.1.4 exonviz-web-0.0.1 flask-2.3.3 gunicorn-21.2.0 itsdangerous-2.1.2 packaging-23.1 svg.py-1.4.2\n",
    "stdout_lines": [
        "Collecting git+https://github.com/Redmar-van-den-Berg/exonviz-web.git@debug",
        "  Cloning https://github.com/Redmar-van-den-Berg/exonviz-web.git (to revision debug) to ./pip-req-build-rgxfub5o",
        "  Resolved https://github.com/Redmar-van-den-Berg/exonviz-web.git to commit 599150a8c404003d49392229a640fcfc5fcc0b84",
        "  Preparing metadata (setup.py): started",
        "  Preparing metadata (setup.py): finished with status 'done'",
        "Collecting gunicorn",
        "  Using cached gunicorn-21.2.0-py3-none-any.whl (80 kB)",
        "Collecting exonviz>=0.1.4",
        "  Using cached exonviz-0.1.4-py3-none-any.whl (187 kB)",
        "Collecting flask",
        "  Using cached flask-2.3.3-py3-none-any.whl (96 kB)",
        "Collecting packaging",
        "  Using cached packaging-23.1-py3-none-any.whl (48 kB)",
        "Collecting svg.py",
        "  Using cached svg.py-1.4.2-py3-none-any.whl (13 kB)",
        "Collecting Werkzeug>=2.3.7",
        "  Using cached werkzeug-2.3.7-py3-none-any.whl (242 kB)",
        "Collecting Jinja2>=3.1.2",
        "  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)",
        "Collecting itsdangerous>=2.1.2",
        "  Using cached itsdangerous-2.1.2-py3-none-any.whl (15 kB)",
        "Collecting click>=8.1.3",
        "  Using cached click-8.1.7-py3-none-any.whl (97 kB)",
        "Collecting blinker>=1.6.2",
        "  Using cached blinker-1.6.2-py3-none-any.whl (13 kB)",
        "Collecting MarkupSafe>=2.0",
        "  Using cached MarkupSafe-2.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (28 kB)",
        "Building wheels for collected packages: exonviz-web",
        "  Building wheel for exonviz-web (setup.py): started",
        "  Building wheel for exonviz-web (setup.py): finished with status 'done'",
        "  Created wheel for exonviz-web: filename=exonviz_web-0.0.1-py3-none-any.whl size=5376 sha256=90ff42f87499732f1b719b3f180739b1ed29ff8721858cf536735bbcd6b4b12f",
        "  Stored in directory: /tmp/pip-ephem-wheel-cache-2yf669tb/wheels/91/83/19/78e8320f85eac34a87fc84ad2962739fe70108f5b50345b5d9",
        "Successfully built exonviz-web",
        "Installing collected packages: svg.py, packaging, MarkupSafe, itsdangerous, click, blinker, Werkzeug, Jinja2, gunicorn, exonviz, flask, exonviz-web",
        "  Attempting uninstall: svg.py",
        "    Found existing installation: svg.py 1.4.2",
        "    Uninstalling svg.py-1.4.2:",
        "      Successfully uninstalled svg.py-1.4.2",
        "  Attempting uninstall: packaging",
        "    Found existing installation: packaging 23.1",
        "    Uninstalling packaging-23.1:",
        "      Successfully uninstalled packaging-23.1",
        "  Attempting uninstall: MarkupSafe",
        "    Found existing installation: MarkupSafe 2.1.3",
        "    Uninstalling MarkupSafe-2.1.3:",
        "      Successfully uninstalled MarkupSafe-2.1.3",
        "  Attempting uninstall: itsdangerous",
        "    Found existing installation: itsdangerous 2.1.2",
        "    Uninstalling itsdangerous-2.1.2:",
        "      Successfully uninstalled itsdangerous-2.1.2",
        "  Attempting uninstall: click",
        "    Found existing installation: click 8.1.7",
        "    Uninstalling click-8.1.7:",
        "      Successfully uninstalled click-8.1.7",
        "  Attempting uninstall: blinker",
        "    Found existing installation: blinker 1.6.2",
        "    Uninstalling blinker-1.6.2:",
        "      Successfully uninstalled blinker-1.6.2",
        "  Attempting uninstall: Werkzeug",
        "    Found existing installation: Werkzeug 2.3.7",
        "    Uninstalling Werkzeug-2.3.7:",
        "      Successfully uninstalled Werkzeug-2.3.7",
        "  Attempting uninstall: Jinja2",
        "    Found existing installation: Jinja2 3.1.2",
        "    Uninstalling Jinja2-3.1.2:",
        "      Successfully uninstalled Jinja2-3.1.2",
        "  Attempting uninstall: gunicorn",
        "    Found existing installation: gunicorn 21.2.0",
        "    Uninstalling gunicorn-21.2.0:",
        "      Successfully uninstalled gunicorn-21.2.0",
        "  Attempting uninstall: exonviz",
        "    Found existing installation: exonviz 0.1.4",
        "    Uninstalling exonviz-0.1.4:",
        "      Successfully uninstalled exonviz-0.1.4",
        "  Attempting uninstall: flask",
        "    Found existing installation: Flask 2.3.3",
        "    Uninstalling Flask-2.3.3:",
        "      Successfully uninstalled Flask-2.3.3",
        "  Attempting uninstall: exonviz-web",
        "    Found existing installation: exonviz-web 0.0.1",
        "    Uninstalling exonviz-web-0.0.1:",
        "      Successfully uninstalled exonviz-web-0.0.1",
        "Successfully installed Jinja2-3.1.2 MarkupSafe-2.1.3 Werkzeug-2.3.7 blinker-1.6.2 click-8.1.7 exonviz-0.1.4 exonviz-web-0.0.1 flask-2.3.3 gunicorn-21.2.0 itsdangerous-2.1.2 packaging-23.1 svg.py-1.4.2"
    ],
    "version": null,
    "virtualenv": "/opt/exonviz/venv"
}

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibot ansibot added bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. affects_2.15 module This issue/PR relates to a module. labels Sep 21, 2023
@ansibot
Copy link
Contributor

ansibot commented Sep 21, 2023

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the component bot command.

@mattclay mattclay added P3 Priority 3 - Approved, No Time Limitation and removed needs_triage Needs a first human triage before being processed. labels Sep 21, 2023
@sivel
Copy link
Member

sivel commented Sep 21, 2023

The problem here is that we compare the state before and after installing using pip list --format=freeze and that output only contains <package>==<version> and the version in both of your branches is the same.

We can fix this, I think by using pip freeze instead of pip list --format=freeze as pip freeze would display something like:

exonviz-web @ git+https://github.com/Redmar-van-den-Berg/exonviz-web.git@599150a8c404003d49392229a640fcfc5fcc0b84

Instead of:

exonviz-web==0.0.1

The only difference is that pip freeze doesn't list either pip, setuptools or wheel.

Maybe we use a concatenated pip list --format=freeze + pip freeze.

@sivel sivel added the verified This issue has been verified/reproduced by maintainer label Sep 21, 2023
@sbettid sbettid linked a pull request Sep 30, 2023 that will close this issue
@ansibot ansibot added the has_pr This issue has an associated PR. label Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects_2.15 bug This issue/PR relates to a bug. has_pr This issue has an associated PR. module This issue/PR relates to a module. P3 Priority 3 - Approved, No Time Limitation verified This issue has been verified/reproduced by maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants