You are not logged in.

#1 2019-03-07 06:17:02

soumya92
Member
Registered: 2019-03-07
Posts: 1

python-progress 1.5 breaks pip?

It looks like python-progress 1.5 no longer includes helpers.py, but python-pip 18.1 still tries to import pip._vendor.progress.helpers.
I had to copy helpers.py back into /usr/lib/python3.7/site-packages/requests/ from an older machine that I had not yet updated.

> pacman -Q python-pip python-progress
python-pip 18.1-1
python-progress 1.5-1
> sudo pacman -Suy
:: Synchronising package databases...
 core is up to date
 extra is up to date
 community is up to date
 sublime-text is up to date
:: Starting full system upgrade...
warning: fish: ignoring package upgrade (2.7.1-1 => 3.0.2-1)
 there is nothing to do

(Ignore the fish line, I'm working on updating my configs to work with 3.0)

> pip --version
Traceback (most recent call last):
  File "/usr/bin/pip", line 11, in <module>
    load_entry_point('pip==18.1', 'console_scripts', 'pip')()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2411, in load
    return self.resolve()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2417, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.7/site-packages/pip/_internal/__init__.py", line 40, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/usr/lib/python3.7/site-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/usr/lib/python3.7/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
    from pip._internal.cli import cmdoptions
  File "/usr/lib/python3.7/site-packages/pip/_internal/cli/cmdoptions.py", line 22, in <module>
    from pip._internal.utils.ui import BAR_TYPES
  File "/usr/lib/python3.7/site-packages/pip/_internal/utils/ui.py", line 15, in <module>
    from pip._vendor.progress.helpers import HIDE_CURSOR, SHOW_CURSOR, WritelnMixin
ModuleNotFoundError: No module named 'pip._vendor.progress.helpers'
> ls -al /usr/lib/python3.7/site-packages/progress
total 40K
drwxr-xr-x   3 root root 4.0K Mar  6 22:14 ./
drwxr-xr-x 118 root root  12K Mar  6 22:14 ../
-rw-r--r--   1 root root 4.8K Mar  6 13:12 __init__.py
drwxr-xr-x   2 root root 4.0K Mar  6 22:14 __pycache__/
-rw-r--r--   1 root root 2.8K Mar  6 13:12 bar.py
-rw-r--r--   1 root root 1.4K Mar  6 13:12 counter.py
-rw-r--r--   1 root root 1.4K Mar  6 13:12 spinner.py

After copying back helpers.py:

> pip --version
pip 18.1 from /usr/lib/python3.7/site-packages/pip (python 3.7)
> ls -al /usr/lib/python3.7/site-packages/progress
total 44K
drwxr-xr-x   3 root root 4.0K Mar  6 22:16 ./
drwxr-xr-x 118 root root  12K Mar  6 22:14 ../
-rw-r--r--   1 root root 4.8K Mar  6 13:12 __init__.py
drwxr-xr-x   2 root root 4.0K Mar  6 22:14 __pycache__/
-rw-r--r--   1 root root 2.8K Mar  6 13:12 bar.py
-rw-r--r--   1 root root 1.4K Mar  6 13:12 counter.py
-rw-r--r--   1 root root 2.9K Mar  6 22:16 helpers.py
-rw-r--r--   1 root root 1.4K Mar  6 13:12 spinner.py

Is this a bug, or have I set things up incorrectly?

Last edited by soumya92 (2019-03-07 06:19:28)

Offline

#2 2019-03-07 10:18:43

MaddyBoo
Member
From: Portland, OR
Registered: 2017-05-02
Posts: 10
Website

Re: python-progress 1.5 breaks pip?

I'm having the same issue.

Traceback (most recent call last):
  File "/usr/bin/pip", line 11, in <module>
    load_entry_point('pip==18.1', 'console_scripts', 'pip')()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2411, in load
    return self.resolve()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2417, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.7/site-packages/pip/_internal/__init__.py", line 40, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/usr/lib/python3.7/site-packages/pip/_internal/cli/autocompletion.py", line 8, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/usr/lib/python3.7/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
    from pip._internal.cli import cmdoptions
  File "/usr/lib/python3.7/site-packages/pip/_internal/cli/cmdoptions.py", line 22, in <module>
    from pip._internal.utils.ui import BAR_TYPES
  File "/usr/lib/python3.7/site-packages/pip/_internal/utils/ui.py", line 15, in <module>
    from pip._vendor.progress.helpers import HIDE_CURSOR, SHOW_CURSOR, WritelnMixin
ModuleNotFoundError: No module named 'pip._vendor.progress.helpers'

I was able to work around this by downgrading python-progress to 1.4.2:

sudo pacman -U https://archive.archlinux.org/repos/2019/03/05/community/os/x86_64/python-progress-1.4-2-any.pkg.tar.xz

Offline

#3 2019-03-07 10:32:18

progandy
Member
Registered: 2012-05-17
Posts: 5,020

Re: python-progress 1.5 breaks pip?

This is a bug: https://bugs.archlinux.org/task/61930

Last edited by progandy (2019-03-07 10:32:40)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2019-03-07 18:46:50

charlie
Member
Registered: 2013-09-18
Posts: 57

Re: python-progress 1.5 breaks pip?

Is it safe to revert to python-progress-1.4-2?

Offline

#5 2019-03-08 10:44:33

Haystack
Member
Registered: 2019-01-16
Posts: 6

Re: python-progress 1.5 breaks pip?

charlie wrote:

Is it safe to revert to python-progress-1.4-2?

Yes, worked fine for me. You can do it from your local cache as shown on the wiki, or as MaddyBoo did from the archives. I've done both ways on 3 different machines because I installed one machine the same day this bugged update came out.

Offline

#6 2019-03-08 10:49:20

stepovic
Member
Registered: 2016-05-09
Posts: 3

Re: python-progress 1.5 breaks pip?

python-pip 18.1-2 is available containing a hotfix: https://git.archlinux.org/svntogit/pack … 9e07e63324

Offline

#7 2019-03-18 11:23:39

wis
Member
Registered: 2019-02-15
Posts: 14

Re: python-progress 1.5 breaks pip?

stepovic wrote:

python-pip 18.1-2 is available containing a hotfix: https://git.archlinux.org/svntogit/pack … 9e07e63324

thanks, that worked.
I upgraded to it with this command:

sudo pacman -U https://archive.archlinux.org/packages/p/python-pip/python-pip-18.1-2-any.pkg.tar.xz

I shouldn't add it to ignored packages right?

Offline

#8 2019-03-18 11:36:10

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,489

Re: python-progress 1.5 breaks pip?

wis wrote:

thanks, that worked.
I upgraded to it with this command:

sudo pacman -U https://archive.archlinux.org/packages/p/python-pip/python-pip-18.1-2-any.pkg.tar.xz

I shouldn't add it to ignored packages right?

Why on earth did you do that, it's in the repos so just update your system normally to pull in the new version.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#9 2019-03-19 14:48:39

wis
Member
Registered: 2019-02-15
Posts: 14

Re: python-progress 1.5 breaks pip?

thanks, TIL that

sudo pacman -Syu

upgrades patches/minor version bumps.
I don't need to fix anything now, right?

Offline

Board footer

Powered by FluxBB