Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #245567 > unrolled thread

Error when updating user Python packages

Started byChristian Britz <cbritz@t-online.de>
First post2022-02-19 22:10 +0100
Last post2022-02-20 20:50 +0100
Articles 5 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  Error when updating user Python packages Christian Britz <cbritz@t-online.de> - 2022-02-19 22:10 +0100
    Re: Error when updating user Python packages Christian Britz <cbritz@t-online.de> - 2022-02-19 22:40 +0100
    Re: Error when updating user Python packages Nicholas Geovanis <nickgeovanis@gmail.com> - 2022-02-20 03:40 +0100
      Re: Error when updating user Python packages Christian Britz <cbritz@t-online.de> - 2022-02-20 09:30 +0100
        Re: Error when updating user Python packages Nicholas Geovanis <nickgeovanis@gmail.com> - 2022-02-20 20:50 +0100

#245567 — Error when updating user Python packages

FromChristian Britz <cbritz@t-online.de>
Date2022-02-19 22:10 +0100
SubjectError when updating user Python packages
Message-ID<DSF9n-2XO7-1@gated-at.bofh.it>
Hello Debian users,

I would like to update the Python3 packages which I installed for my
local user via pip.

The command "pip list --user --outdated" gives the following error
messages. This is on Debian stable. Any ideas?

ERROR: Exception:
Traceback (most recent call last):



  File
"/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line
223, in _main


    status = self.run(options, args)



  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py",
line 175, in run


    packages = self.get_outdated(packages, options)



  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py",
line 184, in get_outdated


    return [



  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py",
line 184, in <listcomp>


    return [



  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py",
line 237, in iter_packages_latest_infos


    for dist in map_multithread(latest_info, packages):



  File "/usr/lib/python3.9/multiprocessing/pool.py", line 870, in next



    raise value



  File "/usr/lib/python3.9/multiprocessing/pool.py", line 125, in worker



    result = (True, func(*args, **kwds))



  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py",
line 214, in latest_info


    all_candidates = finder.find_all_candidates(dist.key)



  File
"/usr/lib/python3/dist-packages/pip/_internal/index/package_finder.py",
line 825, in find_all_candidates


    package_links = self.process_project_url(



  File
"/usr/lib/python3/dist-packages/pip/_internal/index/package_finder.py",
line 793, in process_project_url


    page_links = list(parse_links(html_page))



  File
"/usr/lib/python3/dist-packages/pip/_internal/index/collector.py", line
324, in wrapper_wrapper


    return list(fn(page))



  File
"/usr/lib/python3/dist-packages/pip/_internal/index/collector.py", line
335, in parse_links


    document = html5lib.parse(



  File
"/usr/share/python-wheels/html5lib-1.1-py2.py3-none-any.whl/html5lib/html5parser.py",
line 44, in parse

    tb = treebuilders.getTreeBuilder(treebuilder)



  File
"/usr/share/python-wheels/html5lib-1.1-py2.py3-none-any.whl/html5lib/treebuilders/__init__.py",
line 85, in getTreeBuilder

    return etree.getETreeModule(implementation, **kwargs).TreeBuilder



AttributeError: module 'html5lib.treebuilders.etree' has no attribute
'getETreeModule'

-- 
http://www.cb-fraggle.de

[toc] | [next] | [standalone]


#245568

FromChristian Britz <cbritz@t-online.de>
Date2022-02-19 22:40 +0100
Message-ID<DSFCp-2XXQ-3@gated-at.bofh.it>
In reply to#245567
It happens also when I run sudo pip list --outdated, so I think it is
not related to my user profile.

On 2022-02-19 21:59 UTC+0100, Christian Britz wrote:
> Hello Debian users,
> 
> I would like to update the Python3 packages which I installed for my
> local user via pip.
> 
> The command "pip list --user --outdated" gives the following error
> messages. This is on Debian stable. Any ideas?
> 
> ERROR: Exception:
> Traceback (most recent call last):
> 
> 
> 
>   File
> "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line
> 223, in _main
> 
> 
>     status = self.run(options, args)
> 
> 
> 
>   File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py",
> line 175, in run
> 
> 
>     packages = self.get_outdated(packages, options)
> 
> 
> 
>   File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py",
> line 184, in get_outdated
> 
> 
>     return [
> 
> 
> 
>   File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py",
> line 184, in <listcomp>
> 
> 
>     return [
> 
> 
> 
>   File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py",
> line 237, in iter_packages_latest_infos
> 
> 
>     for dist in map_multithread(latest_info, packages):
> 
> 
> 
>   File "/usr/lib/python3.9/multiprocessing/pool.py", line 870, in next
> 
> 
> 
>     raise value
> 
> 
> 
>   File "/usr/lib/python3.9/multiprocessing/pool.py", line 125, in worker
> 
> 
> 
>     result = (True, func(*args, **kwds))
> 
> 
> 
>   File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py",
> line 214, in latest_info
> 
> 
>     all_candidates = finder.find_all_candidates(dist.key)
> 
> 
> 
>   File
> "/usr/lib/python3/dist-packages/pip/_internal/index/package_finder.py",
> line 825, in find_all_candidates
> 
> 
>     package_links = self.process_project_url(
> 
> 
> 
>   File
> "/usr/lib/python3/dist-packages/pip/_internal/index/package_finder.py",
> line 793, in process_project_url
> 
> 
>     page_links = list(parse_links(html_page))
> 
> 
> 
>   File
> "/usr/lib/python3/dist-packages/pip/_internal/index/collector.py", line
> 324, in wrapper_wrapper
> 
> 
>     return list(fn(page))
> 
> 
> 
>   File
> "/usr/lib/python3/dist-packages/pip/_internal/index/collector.py", line
> 335, in parse_links
> 
> 
>     document = html5lib.parse(
> 
> 
> 
>   File
> "/usr/share/python-wheels/html5lib-1.1-py2.py3-none-any.whl/html5lib/html5parser.py",
> line 44, in parse
> 
>     tb = treebuilders.getTreeBuilder(treebuilder)
> 
> 
> 
>   File
> "/usr/share/python-wheels/html5lib-1.1-py2.py3-none-any.whl/html5lib/treebuilders/__init__.py",
> line 85, in getTreeBuilder
> 
>     return etree.getETreeModule(implementation, **kwargs).TreeBuilder
> 
> 
> 
> AttributeError: module 'html5lib.treebuilders.etree' has no attribute
> 'getETreeModule'
> 

-- 
http://www.cb-fraggle.de

[toc] | [prev] | [next] | [standalone]


#245574

FromNicholas Geovanis <nickgeovanis@gmail.com>
Date2022-02-20 03:40 +0100
Message-ID<DSKiJ-30Qh-1@gated-at.bofh.it>
In reply to#245567

[Multipart message — attachments visible in raw view] — view raw

On Sat, Feb 19, 2022 at 3:00 PM Christian Britz <cbritz@t-online.de> wrote:

> Hello Debian users,
>
> I would like to update the Python3 packages which I installed for my
> local user via pip.
>
> The command "pip list --user --outdated" gives the following error
> messages. This is on Debian stable. Any ideas?
>

Probably you should be using the pip3 command instead. It may not be
installed,
so I think this will install it:
 sudo apt-get install python3-pip

That's assuming that you want to stay inside the Debian universe. You could
install it
directly by pip and even upgrade python entirely using the pip
infrastructure if you wanted.

ERROR: Exception:
> Traceback (most recent call last):
>
>
>
>   File
> "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line
> 223, in _main
>
>
>     status = self.run(options, args)
>
>
>
>   File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py",
> line 175, in run
>
>
>     packages = self.get_outdated(packages, options)
>
>
>
>   File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py",
> line 184, in get_outdated
>
>
>     return [
>
>

> .....
>
>
>   File
>
> "/usr/share/python-wheels/html5lib-1.1-py2.py3-none-any.whl/html5lib/html5parser.py",
> line 44, in parse
>
>     tb = treebuilders.getTreeBuilder(treebuilder)
>
>
>
>   File
>
> "/usr/share/python-wheels/html5lib-1.1-py2.py3-none-any.whl/html5lib/treebuilders/__init__.py",
> line 85, in getTreeBuilder
>
>     return etree.getETreeModule(implementation, **kwargs).TreeBuilder
>
>
>
> AttributeError: module 'html5lib.treebuilders.etree' has no attribute
> 'getETreeModule'
>
> --
> http://www.cb-fraggle.de
>
>

[toc] | [prev] | [next] | [standalone]


#245584

FromChristian Britz <cbritz@t-online.de>
Date2022-02-20 09:30 +0100
Message-ID<DSPLr-34pE-3@gated-at.bofh.it>
In reply to#245574

On 2022-02-20 03:35 UTC+0100, Nicholas Geovanis wrote:

> Probably you should be using the pip3 command instead. It may not be
> installed,
> so I think this will install it:
>  sudo apt-get install python3-pip

python3-pip is installed. I think it came with the Debian installer.

It makes no difference. Actually both commands report version 20.3.4
from /usr/lib/python3/dist-packages/pip.

Interesting output of the file size:
-rwxr-xr-x 1 root root  941  1. Jul 2021  /usr/bin/pip
-rwxr-xr-x 1 root root  943  1. Jul 2021  /usr/bin/pip3

I would have expected pip to be just a symlink to pip3.

Regards,
Christian

-- 
http://www.cb-fraggle.de

[toc] | [prev] | [next] | [standalone]


#245587

FromNicholas Geovanis <nickgeovanis@gmail.com>
Date2022-02-20 20:50 +0100
Message-ID<DT0nv-3aRF-3@gated-at.bofh.it>
In reply to#245584

[Multipart message — attachments visible in raw view] — view raw

On Sun, Feb 20, 2022, 2:21 AM Christian Britz <cbritz@t-online.de> wrote:

>
>
> On 2022-02-20 03:35 UTC+0100, Nicholas Geovanis wrote:
>
> > Probably you should be using the pip3 command instead. It may not be
> > installed,
> > so I think this will install it:
> >  sudo apt-get install python3-pip
>
> python3-pip is installed. I think it came with the Debian installer.
>
> It makes no difference. Actually both commands report version 20.3.4
> from /usr/lib/python3/dist-packages/pip.
>
> Interesting output of the file size:
> -rwxr-xr-x 1 root root  941  1. Jul 2021  /usr/bin/pip
> -rwxr-xr-x 1 root root  943  1. Jul 2021  /usr/bin/pip3
>
> I would have expected pip to be just a symlink to pip3.
>

Me too, and that's one of the interesting things. Looking at the stack
trace you posted, it's clearly looking for many python3 libraries. But also
some that appear to be for 2.x. Maybe it's finding a backlevel module
somewhere and failing on it.

Regards,
> Christian
>
> --
> http://www.cb-fraggle.de
>
>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web