• pip issue

    From Gisle Vanem@21:1/5 to All on Wed Nov 30 10:51:27 2022
    Hello list.

    I have an issue with 'pip v. 22.3.1'. On any
    'pip install' command I get warning like this:
    c:\> pip3 install asciinema
    WARNING: Ignoring invalid distribution -arkupsafe (f:\gv\python310\lib\site-packages)
    WARNING: Ignoring invalid distribution -arkupsafe (f:\gv\python310\lib\site-packages)
    Collecting asciinema
    Downloading asciinema-2.2.0-py3-none-any.whl (92 kB)
    ...

    Otherwise no issues. But where is this text "-arkupsafe" stored
    and how to get rid it it? I've searched through all of my .pth
    files and found no such string.

    I assume this is an entry for an orphaned package "MarkupSafe"
    since a 'pip list | grep markup' will list 'MarkupSafe 2.1.1'.


    --
    --gv

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dieter Maurer@21:1/5 to Gisle Vanem on Wed Nov 30 18:06:59 2022
    Gisle Vanem wrote at 2022-11-30 10:51 +0100:
    I have an issue with 'pip v. 22.3.1'. On any
    'pip install' command I get warning like this:
    c:\> pip3 install asciinema
    WARNING: Ignoring invalid distribution -arkupsafe (f:\gv\python310\lib\site-packages)
    WARNING: Ignoring invalid distribution -arkupsafe (f:\gv\python310\lib\site-packages)
    Collecting asciinema
    Downloading asciinema-2.2.0-py3-none-any.whl (92 kB)
    ...

    Otherwise no issues. But where is this text "-arkupsafe" stored
    and how to get rid it it? I've searched through all of my .pth
    files and found no such string.

    Have you looked at the content of the folder mentioned
    in the warnings (e.g. `...\site-packages`).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Gisle Vanem@21:1/5 to Dieter Maurer on Wed Nov 30 19:49:43 2022
    Dieter Maurer wrote:

    Otherwise no issues. But where is this text "-arkupsafe" stored
    and how to get rid it it? I've searched through all of my .pth
    files and found no such string.

    Have you looked at the content of the folder mentioned
    in the warnings (e.g. `...\site-packages`).

    I had 2 folders named:
    site-packages\~arkupsafe\
    site-packages\~arkupsafe-2.1.1.dist-info\

    Removing those, the problem was gone.

    So perhaps this tilde '~' means something special
    for pip?

    --
    --gv

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Thomas Passin@21:1/5 to Gisle Vanem via Python-list on Wed Nov 30 14:34:25 2022
    On 11/30/2022 1:49 PM, Gisle Vanem via Python-list wrote:
    Dieter Maurer wrote:

    Otherwise no issues. But where is this text "-arkupsafe" stored
    and how to get rid it it? I've searched through all of my .pth
    files and found no such string.

    Have you looked at the content of the folder mentioned
    in the warnings (e.g. `...\site-packages`).

    I had 2 folders named:
      site-packages\~arkupsafe\
      site-packages\~arkupsafe-2.1.1.dist-info\

    Removing those, the problem was gone.

    So perhaps this tilde '~' means something special
    for pip?


    I've seen things like this before. Those directories - the ones
    starting with "~" - seem to be used for backing up a package (it could a dependency that is required by the package you are installing) before installing a newer version. I think that somehow pip applies wrong file permissions that prevent it from removing the backup directory at the
    end. The issue does not affect the successful installation of the newer version. I have been able to remove these directories myself afterwards
    with no problems.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)