Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pip issue

1,683 views
Skip to first unread message

Gisle Vanem

unread,
Nov 30, 2022, 4:51:55 AM11/30/22
to
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

Dieter Maurer

unread,
Nov 30, 2022, 12:30:08 PM11/30/22
to
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`).

Gisle Vanem

unread,
Nov 30, 2022, 1:50:11 PM11/30/22
to
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

Thomas Passin

unread,
Nov 30, 2022, 2:40:53 PM11/30/22
to
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.

0 new messages