Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: After upgrading pip3 does not work

  1. #1

    Default After upgrading pip3 does not work

    I have just upgraded 15.1 -> 15.2 and any pip3 command reports this error

    Code:
    andromeda:/home/fernando/tmp # pip3 install
    Traceback (most recent call last):
      File "/usr/bin/pip3", line 11, in <module>
        load_entry_point('pip==10.0.1', 'console_scripts', 'pip3')()
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 484, in load_entry_point
        return get_distribution(dist).load_entry_point(group, name)
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2725, in load_entry_point
        return ep.load()
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2343, in load
        return self.resolve()
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2349, in resolve
        module = __import__(self.module_name, fromlist=['__name__'], level=0)
      File "/usr/lib/python3.6/site-packages/pip/_internal/__init__.py", line 42, in <module>
        from pip._internal import cmdoptions
      File "/usr/lib/python3.6/site-packages/pip/_internal/cmdoptions.py", line 16, in <module>
        from pip._internal.index import (
    ImportError: cannot import name 'FormatControl'
    andromeda:/home/fernando/tmp #



    I have tried to reinstal python3-pip but it did not work.

    Any ideas?


    best regards

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    29,680
    Blog Entries
    15

    Default Re: After upgrading pip3 does not work

    Quote Originally Posted by fperal View Post
    I have just upgraded 15.1 -> 15.2 and any pip3 command reports this error

    Code:
    andromeda:/home/fernando/tmp # pip3 install
    Traceback (most recent call last):
      File "/usr/bin/pip3", line 11, in <module>
        load_entry_point('pip==10.0.1', 'console_scripts', 'pip3')()
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 484, in load_entry_point
        return get_distribution(dist).load_entry_point(group, name)
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2725, in load_entry_point
        return ep.load()
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2343, in load
        return self.resolve()
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2349, in resolve
        module = __import__(self.module_name, fromlist=['__name__'], level=0)
      File "/usr/lib/python3.6/site-packages/pip/_internal/__init__.py", line 42, in <module>
        from pip._internal import cmdoptions
      File "/usr/lib/python3.6/site-packages/pip/_internal/cmdoptions.py", line 16, in <module>
        from pip._internal.index import (
    ImportError: cannot import name 'FormatControl'
    andromeda:/home/fernando/tmp #



    I have tried to reinstal python3-pip but it did not work.

    Any ideas?


    best regards
    Hi
    AFAIK you have to add options after install? See pip3 help install
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: After upgrading pip3 does not work

    Quote Originally Posted by malcolmlewis View Post
    Hi
    AFAIK you have to add options after install? See pip3 help install

    Code:
    andromeda:/home/fernando/tmp # pip3 help install
    Traceback (most recent call last):
      File "/usr/bin/pip3", line 11, in <module>
        load_entry_point('pip==10.0.1', 'console_scripts', 'pip3')()
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 484, in load_entry_point
        return get_distribution(dist).load_entry_point(group, name)
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2725, in load_entry_point
        return ep.load()
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2343, in load
        return self.resolve()
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2349, in resolve
        module = __import__(self.module_name, fromlist=['__name__'], level=0)
      File "/usr/lib/python3.6/site-packages/pip/_internal/__init__.py", line 42, in <module>
        from pip._internal import cmdoptions
      File "/usr/lib/python3.6/site-packages/pip/_internal/cmdoptions.py", line 16, in <module>
        from pip._internal.index import (
    ImportError: cannot import name 'FormatControl'
    andromeda:/home/fernando/tmp #

  4. #4
    Join Date
    Aug 2020
    Location
    Germany
    Posts
    50

    Default Re: After upgrading pip3 does not work

    There is definitely something wrong as the above help command should generate output but I have no idea what the problem is. I use Tumbleweed and pip3 has no issues.

    Of course if you type pip3 install, you need to specify a package but it would say so and that is not the case here.
    openSUSE Tumbleweed Xfce

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    12,735
    Blog Entries
    2

    Default Re: After upgrading pip3 does not work

    try force re-installing pip3
    Code:
    zypper in -f python3-pip
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  6. #6

    Default Re: After upgrading pip3 does not work

    Quote Originally Posted by tsu2 View Post
    try force re-installing pip3
    Code:
    zypper in -f python3-pip
    TSU


    just the same
    Code:
    andromeda:/home/fernando/tmp # zypper in -f python3-pip
    Retrieving repository 'home:lemmy04' metadata ..............................................................................................................................[done]
    Building repository 'home:lemmy04' cache ...................................................................................................................................[done]
    Loading repository data...
    Reading installed packages...
    Forcing installation of 'python3-pip-10.0.1-lp152.3.4.noarch' from repository 'openSUSE-Leap-15.2-Oss'.
    Resolving package dependencies...
    
    The following package is going to be reinstalled:
      python3-pip
    
    1 package to reinstall.
    Overall download size: 1.6 MiB. Already cached: 0 B. No additional space will be used or freed after the operation.
    Continue? [y/n/v/...? shows all options] (y): 
    Retrieving package python3-pip-10.0.1-lp152.3.4.noarch                                                                                       (1/1),   1.6 MiB (  9.0 MiB unpacked)
    Retrieving: python3-pip-10.0.1-lp152.3.4.noarch.rpm ..............................................................................................................[done (962 B/s)]
    
    Checking for file conflicts: ...............................................................................................................................................[done]
    (1/1) Installing: python3-pip-10.0.1-lp152.3.4.noarch ......................................................................................................................[done]
    andromeda:/home/fernando/tmp # pip3 help install
    Traceback (most recent call last):
      File "/usr/bin/pip3", line 11, in <module>
        load_entry_point('pip==10.0.1', 'console_scripts', 'pip3')()
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 484, in load_entry_point
        return get_distribution(dist).load_entry_point(group, name)
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2725, in load_entry_point
        return ep.load()
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2343, in load
        return self.resolve()
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2349, in resolve
        module = __import__(self.module_name, fromlist=['__name__'], level=0)
      File "/usr/lib/python3.6/site-packages/pip/_internal/__init__.py", line 42, in <module>
        from pip._internal import cmdoptions
      File "/usr/lib/python3.6/site-packages/pip/_internal/cmdoptions.py", line 16, in <module>
        from pip._internal.index import (
    ImportError: cannot import name 'FormatControl'
    andromeda:/home/fernando/tmp #

  7. #7
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    29,680
    Blog Entries
    15

    Default Re: After upgrading pip3 does not work

    Hi
    Not sure why your running stuff as root user, I would surmise something is really broken on your install...

    Code:
    user@grover-os152:~> zypper if python3-pip | grep Version
    Version        : 10.0.1-lp152.3.4
    
    user@grover-os152:~> pip3 help install
    
    Usage:   
      pip3 install [options] <requirement specifier> [package-index-options] ...
      pip3 install [options] -r <requirements file> [package-index-options] ...
      pip3 install [options] [-e] <vcs project url> ...
      pip3 install [options] [-e] <local project path> ...
      pip3 install [options] <archive url/path> ...
    
    Description:
      Install packages from:
    ....
    --no-color                  Suppress colored output
    Can you create a test user and login as that user and try `pip3 help install`
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  8. #8
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    29,680
    Blog Entries
    15

    Default Re: After upgrading pip3 does not work

    Hi
    Can you also advise how you updated the system, also what repositories are active?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  9. #9

    Default Re: After upgrading pip3 does not work

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Not sure why your running stuff as root user, I would surmise something is really broken on your install...

    Code:
    user@grover-os152:~> zypper if python3-pip | grep Version
    Version        : 10.0.1-lp152.3.4
    
    user@grover-os152:~> pip3 help install
    
    Usage:   
      pip3 install [options] <requirement specifier> [package-index-options] ...
      pip3 install [options] -r <requirements file> [package-index-options] ...
      pip3 install [options] [-e] <vcs project url> ...
      pip3 install [options] [-e] <local project path> ...
      pip3 install [options] <archive url/path> ...
    
    Description:
      Install packages from:
    ....
    --no-color                  Suppress colored output
    Can you create a test user and login as that user and try `pip3 help install`

    Just the same

    Code:
    test@andromeda:~> pip3 help install
    Traceback (most recent call last):
      File "/usr/bin/pip3", line 11, in <module>
        load_entry_point('pip==10.0.1', 'console_scripts', 'pip3')()
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 473, in load_entry_point
        return get_distribution(dist).load_entry_point(group, name)
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2843, in load_entry_point
        return ep.load()
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2447, in load
        return self.resolve()
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2453, in resolve
        module = __import__(self.module_name, fromlist=['__name__'], level=0)
      File "/usr/lib/python3.6/site-packages/pip/_internal/__init__.py", line 42, in <module>
        from pip._internal import cmdoptions
      File "/usr/lib/python3.6/site-packages/pip/_internal/cmdoptions.py", line 16, in <module>
        from pip._internal.index import (
    ImportError: cannot import name 'FormatControl'
    test@andromeda:~>

  10. #10

    Default Re: After upgrading pip3 does not work

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Can you also advise how you updated the system, also what repositories are active?

    Code:
    andromeda:~ # zypper lr --uri
    Repository priorities are without effect. All enabled repositories share the same priority.
    
    #  | Alias                                | Name                                                                     | Enabled | GPG Check | Refresh | URI
    ---+--------------------------------------+--------------------------------------------------------------------------+---------+-----------+---------+---------------------------------------------------------------------------------------
     1 | Geo                                  | Application:Geo                                                          | No      | ----      | ----    | http://download.opensuse.org/repositories/Application:/Geo/openSUSE_Leap_15.2/
     2 | Hamradio                             | hamradio                                                                 | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/repositories/hamradio/openSUSE_Leap_15.2/
     3 | KDE-extra                            | KDE:Extra                                                                | No      | ----      | ----    | http://download.opensuse.org/repositories/KDE:/Extra/openSUSE_Leap_15.2/
     4 | KDE3                                 | KDE:KDE3                                                                 | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/repositories/KDE:KDE3/openSUSE_Leap_15.2/
     5 | Marec                                | home:marec2000                                                           | No      | ----      | ----    | http://download.opensuse.org/repositories/home:/marec2000/openSUSE_Leap_15.2/
     6 | NVIDIA                               | NVIDIA                                                                   | Yes     | (r ) Yes  | Yes     | https://download.nvidia.com/opensuse/leap/15.2
     7 | Perl                                 | devel:languages:perl                                                     | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/repositories/devel:/languages:/perl/openSUSE_Leap_15.2/
     8 | cinelerra                            | cingg                                                                    | Yes     | (  ) No   | Yes     | https://cinelerra-gg.org/download/pkgs/leap15.2/
     9 | code                                 | Visual Studio Code                                                       | Yes     | (r ) Yes  | No      | https://packages.microsoft.com/yumrepos/vscode
    10 | dl8fcl-sdr                           | home:dl8fcl:sdr                                                          | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/home:/dl8fcl:/sdr/openSUSE_Leap_15.2/
    11 | electronics                          | Electronics stuff and development (openSUSE_Leap_15.2)                   | Yes     | (r ) Yes  | No      | http://download.opensuse.org/repositories/electronics/openSUSE_Leap_15.2/
    12 | google-chrome                        | google-chrome                                                            | No      | ----      | ----    | http://dl.google.com/linux/chrome/rpm/stable/x86_64
    13 | home_aevseev                         | Project of Alexander Evseev (openSUSE-15.2)                              | Yes     | (r ) Yes  | No      | http://download.opensuse.org/repositories/home:/aevseev/openSUSE-15.2/
    14 | home_vodoo                           | vodoo's Home Project (openSUSE_Factory)                                  | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/repositories/home:/vodoo/openSUSE_Factory/
    15 | home_wkazubski                       | wkazubski's Home Project (openSUSE_Leap_15.2)                            | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/repositories/home:/wkazubski/openSUSE_Leap_15.2/
    16 | https-download.opensuse.org-02e4c747 | KDE:Qt5                                                                  | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/KDE:/Qt5/openSUSE_Leap_15.2/
    17 | https-download.opensuse.org-ac35ae2f | home:lemmy04                                                             | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/home:/lemmy04/openSUSE_Leap_15.2/
    18 | https-download.opensuse.org-b934cefe | devel:tools:building                                                     | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/devel:/tools:/building/openSUSE_Leap_15.2/
    19 | https-download.opensuse.org-d6f20524 | KDE:Frameworks5                                                          | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/KDE:/Frameworks5/openSUSE_Leap_15.2/
    20 | libdvdcss                            | libdvdcss repository                                                     | No      | ----      | ----    | http://opensuse-guide.org/repo/openSUSE_Leap_15.2/
    21 | mozilla                              | mozilla                                                                  | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/repositories/mozilla/openSUSE_Leap_15.2/
    22 | mozilla_beta                         | Experimental/beta Mozilla versions (openSUSE_Leap_15.2)                  | Yes     | (r ) Yes  | No      | https://download.opensuse.org/repositories/mozilla:/beta/openSUSE_Leap_15.2/
    23 | multimedia_libs                      | Multimedia Libraries, Codecs and Command Line Tools (openSUSE_Leap_15.2) | Yes     | (r ) Yes  | No      | http://download.opensuse.org/repositories/multimedia:/libs/openSUSE_Leap_15.2/
    24 | packman                              | Packman Repository                                                       | Yes     | (r ) Yes  | Yes     | http://packman.inode.at/suse/openSUSE_Leap_15.2/
    25 | publishing                           | Publishing                                                               | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/repositories/Publishing/openSUSE_Leap_15.2/
    26 | repo-debug                           | openSUSE-Leap-15.2-Debug                                                 | No      | ----      | ----    | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/
    27 | repo-debug-non-oss                   | openSUSE-Leap-15.2-Debug-Non-Oss                                         | No      | ----      | ----    | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/
    28 | repo-debug-update                    | openSUSE-Leap-15.2-Update-Debug                                          | No      | ----      | ----    | http://download.opensuse.org/debug/update/leap/15.2/oss/
    29 | repo-debug-update-non-oss            | openSUSE-Leap-15.2-Update-Debug-Non-Oss                                  | No      | ----      | ----    | http://download.opensuse.org/debug/update/leap/15.2/non-oss/
    30 | repo-non-oss                         | openSUSE-Leap-15.2-Non-Oss                                               | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/
    31 | repo-oss                             | openSUSE-Leap-15.2-Oss                                                   | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/distribution/leap/15.2/repo/oss/
    32 | repo-source                          | openSUSE-Leap-15.2-Source                                                | No      | ----      | ----    | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/
    33 | repo-source-non-oss                  | openSUSE-Leap-15.2-Source-Non-Oss                                        | No      | ----      | ----    | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/
    34 | repo-update                          | openSUSE-Leap-15.2-Update                                                | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.2/oss/
    35 | repo-update-non-oss                  | openSUSE-Leap-15.2-Update-Non-Oss                                        | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/update/leap/15.2/non-oss/
    36 | sdr                                  | hardware:sdr                                                             | Yes     | (r ) Yes  | Yes     | https://download.opensuse.org/repositories/hardware:/sdr/openSUSE_Leap_15.2/
    37 | snappy                               | snappy                                                                   | No      | ----      | ----    | https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.2
    38 | sublime-text                         | Sublime Text - x86_64 - Stable                                           | No      | ----      | ----    | https://download.sublimetext.com/rpm/stable/x86_64
    39 | teams                                | teams                                                                    | Yes     | (r ) Yes  | Yes     | https://packages.microsoft.com/yumrepos/ms-teams
    40 | teamviewer                           | TeamViewer - x86_64                                                      | Yes     | (r ) Yes  | No      | http://linux.teamviewer.com/yum/stable/main/binary-x86_64/
    41 | wolfi                                | home:wolfi323                                                            | No      | ----      | ----    | http://download.opensuse.org/repositories/home:/wolfi323/openSUSE_Leap_15.2/
    42 | x2go                                 | X11:RemoteDesktop:x2go                                                   | Yes     | (r ) Yes  | Yes     | http://download.opensuse.org/repositories/X11:/RemoteDesktop:/x2go/openSUSE_Leap_15.2/
    andromeda:~ #

    I did an onlien upgrade with some repos activated: oss, non-oss, packman, and I think that mozilla.
    Maybe I have to switch all packages to OSS and upgrade?

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •