pipupgrade icon indicating copy to clipboard operation
pipupgrade copied to clipboard

Skip distutils installed packages?

Open moba opened this issue 5 years ago • 21 comments

When I run pipupgrade to upgrade system packages, the first package that comes from my distribution (Debian) breaks the process. Pipupgrade does not skip it and continue, it instead exits, and I don't see any option to ignore such packages. Even in interactive mode, when it tries to upgrade such a package it just exits after, and I have to manually restart it and learn which packages to manually avoid.

Updating X of Y packages: pycairo
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
  ERROR: Complete output from command /usr/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-eFmxQW/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-BWdFwU --python-tag cp27:
  ERROR: running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/cairo
  copying cairo/__init__.py -> build/lib.linux-x86_64-2.7/cairo
  copying cairo/__init__.pyi -> build/lib.linux-x86_64-2.7/cairo
  copying cairo/py.typed -> build/lib.linux-x86_64-2.7/cairo
  running build_ext
  Package cairo was not found in the pkg-config search path.
  Perhaps you should add the directory containing `cairo.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'cairo' found
  Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.13.1']' returned non-zero exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pycairo
ERROR: Cannot uninstall 'pycairo'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Traceback (most recent call last):
  File "/usr/local/bin/pipupgrade", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/pipupgrade/cli/__init__.py", line 14, in wrapper
    return fn(**params)
  File "/usr/local/lib/python2.7/dist-packages/pipupgrade/commands/__init__.py", line 204, in command
    _pip.install(package.name, pip_exec = pip_path, user = user, quiet = not verbose, no_cache_dir = True, upgrade = True)
  File "/usr/local/lib/python2.7/dist-packages/pipupgrade/_pip.py", line 63, in install
    popen(*params)
  File "/usr/local/lib/python2.7/dist-packages/pipupgrade/util/system.py", line 59, in popen
    raise sp.CalledProcessError(code, command)
subprocess.CalledProcessError: Command '/usr/local/bin/pip install --upgrade --quiet --no-cache-dir pycairo' returned non-zero exit status 1

moba avatar May 06 '19 02:05 moba

Try updating using pipupgrade --self and let me know if that helps!

achillesrasquinha avatar Jun 06 '19 08:06 achillesrasquinha

Still an issue.

Updating 2 of 43 packages: httplib2
Traceback (most recent call last):
  File "/usr/bin/pipupgrade", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python3.6/site-packages/pipupgrade/cli/__init__.py", line 14, in wrapper
    return fn(**params)
  File "/usr/lib/python3.6/site-packages/pipupgrade/commands/__init__.py", line 260, in command
    _pip.call("install", package.name, pip_exec = package.source, user = user, quiet = not verbose, no_cache_dir = True, upgrade = True)
  File "/usr/lib/python3.6/site-packages/pipupgrade/_pip.py", line 69, in call
    return popen(*params, output = True)
  File "/usr/lib/python3.6/site-packages/pipupgrade/util/system.py", line 70, in popen
    raise sp.CalledProcessError(code, command)
subprocess.CalledProcessError: Command '/usr/bin/pip install httplib2 --quiet --no-cache-dir --upgrade' returned non-zero exit status 1.
(env) root@$# pipupgrade --self
Checking...
pipupgrade upto date.

FeralBytes avatar Aug 29 '19 17:08 FeralBytes

Yea, I confirmed this behavior. Very annoying when you're working with either beautifulsoup4 or numpy python packages.

espressobeanies avatar Sep 06 '19 07:09 espressobeanies

root@bohyat14:~# pip list --outdated

Package Version Latest Type
ConfigArgParse 0.13.0 0.15.2 sdist
decorator 4.3.0 4.4.1 wheel
distro 1.3.0 1.4.0 wheel

the sdist type will fail updating, and if pip-review could present the type info, one could at least answer "n" in interactive mode.

(later: apologies - it seems only some of them may fail to update)

roydenyates avatar Dec 29 '19 02:12 roydenyates

confirm the issue with the latest version

metya avatar Jan 13 '20 17:01 metya

Released 1.6.7 with a new flag --ignore-error for this case.

$ pipupgrade --ignore-error

Will attempt to install packages and silently fail in case of any error.

achillesrasquinha avatar Jan 16 '20 02:01 achillesrasquinha

Now it's just failed with

BrokenPipeError: [Errno 32] Broken pipe on just pipupgrade or with TypeError: can only concatenate str (not "datetime.timedelta") to str with flag --ignore-error

metya avatar Jan 16 '20 15:01 metya

@metya Try rm -rf ~/.pipupgrade and try again?

achillesrasquinha avatar Jan 16 '20 15:01 achillesrasquinha

nope. the same behaviour

metya avatar Jan 16 '20 16:01 metya

Could you paste your log as follows?

$ pipupgrade --verbose

achillesrasquinha avatar Jan 16 '20 16:01 achillesrasquinha

logs
sudo pipupgrade --verbose
[sudo] пароль для metya: 
2020-01-16 19:22:45,271 | INFO | Environment: {'python_version': '3.8.1', 'os': 'Linux-5.4.6-2-MANJARO-x86_64-with-glibc2.2.5'}
2020-01-16 19:22:45,271 | INFO | Arguments Passed: {'packages': [], 'pip_path': None, 'requirements': None, 'pipfile': None, 'project': None, 'pull_request': False, 'git_username': None, 'git_email': None, 'github_access_token': None, 'github_reponame': None, 'github_username': None, 'target_branch': 'master', 'latest': 0, 'format': 'table', 'all': 0, 'pip': 0, 'self': False, 'jobs': 6, 'user': 0, 'check': 0, 'interactive': 0, 'yes': 0, 'no_included_requirements': 0, 'no_cache': 0, 'no_color': 0, 'output': None, 'ignore_error': 0, 'force': 0, 'verbose': True}
Checking...
2020-01-16 19:22:45,273 | INFO | `pip` executables found: ['/usr/bin/pip', '/usr/bin/pip3']
2020-01-16 19:22:45,273 | INFO | Using 6 jobs...
2020-01-16 19:22:45,281 | INFO | Fetching installed packages for /usr/bin/pip...
2020-01-16 19:22:45,281 | INFO | Fetching installed packages for /usr/bin/pip3...
2020-01-16 19:22:45,281 | INFO | Executing command: /usr/bin/pip list --outdated --format json
2020-01-16 19:22:45,281 | INFO | Executing command: /usr/bin/pip3 list --outdated --format json
2020-01-16 19:23:11,429 | INFO | 28 packages found for /usr/bin/pip.
2020-01-16 19:23:11,429 | INFO | 28 packages found for /usr/bin/pip3.
2020-01-16 19:23:11,454 | INFO | Initializing Package {'name': 'awscli', 'version': '1.17.1', 'latest_version': '1.17.3', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,454 | INFO | Initializing Package {'name': 'boto3', 'version': '1.11.1', 'latest_version': '1.11.3', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,455 | INFO | Initializing Package {'name': 'botocore', 'version': '1.14.1', 'latest_version': '1.14.3', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,454 | INFO | Initializing Package {'name': 'botocore', 'version': '1.14.1', 'latest_version': '1.14.3', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,455 | INFO | Fetching package awscli information from DB...
2020-01-16 19:23:11,455 | INFO | Initializing Package {'name': 'cachetools', 'version': '3.1.1', 'latest_version': '4.0.0', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,455 | INFO | Fetching package botocore information from DB...
2020-01-16 19:23:11,455 | INFO | Fetching package boto3 information from DB...
2020-01-16 19:23:11,455 | INFO | Fetching package botocore information from DB...
2020-01-16 19:23:11,455 | INFO | Fetching package cachetools information from DB...
2020-01-16 19:23:11,455 | INFO | Initializing Package {'name': 'contextlib2', 'version': '0.6.0', 'latest_version': '0.6.0.post1', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,455 | INFO | Initializing Package {'name': 'evdev', 'version': '1.2.0', 'latest_version': '1.3.0', 'latest_filetype': 'sdist'} of type <class 'dict'>...
2020-01-16 19:23:11,456 | INFO | Fetching package contextlib2 information from DB...
2020-01-16 19:23:11,457 | INFO | Fetching package evdev information from DB...
2020-01-16 19:23:11,457 | INFO | Initializing Package {'name': 'cachetools', 'version': '3.1.1', 'latest_version': '4.0.0', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,455 | INFO | Initializing Package {'name': 'awscli', 'version': '1.17.1', 'latest_version': '1.17.3', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,458 | INFO | Initializing Package {'name': 'nbformat', 'version': '4.4.0', 'latest_version': '5.0.3', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,458 | INFO | Fetching package nbformat information from DB...
2020-01-16 19:23:11,458 | INFO | Fetching package awscli information from DB...
2020-01-16 19:23:11,458 | INFO | Initializing Package {'name': 'numpy', 'version': '1.17.4', 'latest_version': '1.18.1', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,458 | INFO | Fetching package numpy information from DB...
multiprocessing.pool.RemoteTraceback: 

multiprocessing.pool.RemoteTraceback: 

Traceback (most recent call last):
File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
File "/usr/lib/python3.8/site-packages/pipupgrade/model/package.py", line 108, in __init__
    time_difference	= res["_updated_at"] + timedelta(seconds = cache_timeout)
TypeError: can only concatenate str (not "datetime.timedelta") to str
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
File "/usr/lib/python3.8/site-packages/pipupgrade/commands/helper.py", line 317, in get_registry_from_pip
    registry     = Registry(source = pip_path, packages = packages,
File "/usr/lib/python3.8/site-packages/pipupgrade/model/registry.py", line 108, in __init__
    for package in pool.imap_unordered(partial(Package, **args), packages):
File "/usr/lib/python3.8/multiprocessing/pool.py", line 865, in next
    raise value
TypeError: can only concatenate str (not "datetime.timedelta") to str
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/bin/pipupgrade", line 8, in <module>
2020-01-16 19:23:11,459 | INFO | Initializing Package {'name': 'pep517', 'version': '0.6.0', 'latest_version': '0.8.1', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,455 | INFO | Initializing Package {'name': 'boto3', 'version': '1.11.1', 'latest_version': '1.11.3', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,457 | INFO | Initializing Package {'name': 'google-auth', 'version': '1.10.0', 'latest_version': '1.10.1', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,457 | INFO | Initializing Package {'name': 'jupyterlab-code-formatter', 'version': '0.6.1', 'latest_version': '1.0.3', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,457 | INFO | Initializing Package {'name': 'contextlib2', 'version': '0.6.0', 'latest_version': '0.6.0.post1', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,458 | INFO | Fetching package cachetools information from DB...
2020-01-16 19:23:11,464 | INFO | Fetching package google-auth information from DB...
2020-01-16 19:23:11,458 | INFO | Initializing Package {'name': 'evdev', 'version': '1.2.0', 'latest_version': '1.3.0', 'latest_filetype': 'sdist'} of type <class 'dict'>...
    sys.exit(main())
File "/usr/lib/python3.8/site-packages/pipupgrade/cli/__init__.py", line 15, in wrapper
    return fn(**params)
File "/usr/lib/python3.8/site-packages/pipupgrade/commands/__init__.py", line 159, in command
2020-01-16 19:23:11,465 | INFO | Fetching package evdev information from DB...
    for registry in pool.imap_unordered(
File "/usr/lib/python3.8/multiprocessing/pool.py", line 865, in next
    raise value
TypeError: can only concatenate str (not "datetime.timedelta") to str
2020-01-16 19:23:11,473 | INFO | Initializing Package {'name': 'prompt-toolkit', 'version': '2.0.10', 'latest_version': '3.0.2', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,473 | INFO | Initializing Package {'name': 'nbformat', 'version': '4.4.0', 'latest_version': '5.0.3', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,474 | INFO | Fetching package nbformat information from DB...
2020-01-16 19:23:11,474 | INFO | Fetching package prompt-toolkit information from DB...
2020-01-16 19:23:11,475 | INFO | Initializing Package {'name': 'numpy', 'version': '1.17.4', 'latest_version': '1.18.1', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,475 | INFO | Fetching package numpy information from DB...
2020-01-16 19:23:11,475 | INFO | Initializing Package {'name': 'protobuf', 'version': '3.11.1', 'latest_version': '3.11.2', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,475 | INFO | Fetching package protobuf information from DB...
2020-01-16 19:23:11,476 | INFO | Initializing Package {'name': 'pep517', 'version': '0.6.0', 'latest_version': '0.8.1', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,476 | INFO | Initializing Package {'name': 'pyasn1-modules', 'version': '0.2.7', 'latest_version': '0.2.8', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,476 | INFO | Fetching package pep517 information from DB...
2020-01-16 19:23:11,476 | INFO | Fetching package pyasn1-modules information from DB...
2020-01-16 19:23:11,476 | INFO | Initializing Package {'name': 'Pillow', 'version': '6.2.1', 'latest_version': '7.0.0', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,476 | INFO | Fetching package Pillow information from DB...
2020-01-16 19:23:11,477 | INFO | Initializing Package {'name': 'pycurl', 'version': '7.43.0.3', 'latest_version': '7.43.0.4', 'latest_filetype': 'sdist'} of type <class 'dict'>...
2020-01-16 19:23:11,477 | INFO | Fetching package pycurl information from DB...
2020-01-16 19:23:11,477 | INFO | Initializing Package {'name': 'pip', 'version': '19.3', 'latest_version': '19.3.1', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,477 | INFO | Initializing Package {'name': 'powerline-status', 'version': '2.7.dev9999-git.b-d498f29261afa0799aaa95924744dbf55b6960d5-', 'latest_version': '2.7', 'latest_filetype': 'sdist'} of type <class 'dict'>...
2020-01-16 19:23:11,477 | INFO | Fetching package pip information from DB...
2020-01-16 19:23:11,477 | INFO | Fetching package powerline-status information from DB...
2020-01-16 19:23:11,477 | INFO | Initializing Package {'name': 'pyrsistent', 'version': '0.15.6', 'latest_version': '0.15.7', 'latest_filetype': 'sdist'} of type <class 'dict'>...
2020-01-16 19:23:11,477 | INFO | Fetching package pyrsistent information from DB...
2020-01-16 19:23:11,477 | INFO | Initializing Package {'name': 'prompt-toolkit', 'version': '2.0.10', 'latest_version': '3.0.2', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,478 | INFO | Fetching package prompt-toolkit information from DB...
2020-01-16 19:23:11,478 | INFO | Initializing Package {'name': 'PyYAML', 'version': '5.1.2', 'latest_version': '5.3', 'latest_filetype': 'sdist'} of type <class 'dict'>...
2020-01-16 19:23:11,478 | INFO | Fetching package PyYAML information from DB...
2020-01-16 19:23:11,478 | INFO | Initializing Package {'name': 'protobuf', 'version': '3.11.1', 'latest_version': '3.11.2', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,478 | INFO | Fetching package protobuf information from DB...
2020-01-16 19:23:11,478 | INFO | Initializing Package {'name': 'reportlab', 'version': '3.5.32', 'latest_version': '3.5.34', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,478 | INFO | Fetching package reportlab information from DB...
2020-01-16 19:23:11,478 | INFO | Initializing Package {'name': 'pyasn1-modules', 'version': '0.2.7', 'latest_version': '0.2.8', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,478 | INFO | Fetching package pyasn1-modules information from DB...
2020-01-16 19:23:11,479 | INFO | Initializing Package {'name': 'rsa', 'version': '3.4.2', 'latest_version': '4.0', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,479 | INFO | Fetching package rsa information from DB...
2020-01-16 19:23:11,479 | INFO | Initializing Package {'name': 'pycurl', 'version': '7.43.0.3', 'latest_version': '7.43.0.4', 'latest_filetype': 'sdist'} of type <class 'dict'>...
2020-01-16 19:23:11,480 | INFO | Fetching package pycurl information from DB...
2020-01-16 19:23:11,483 | INFO | Initializing Package {'name': 'setuptools', 'version': '44.0.0', 'latest_version': '45.0.0', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,484 | INFO | Fetching package setuptools information from DB...
2020-01-16 19:23:11,484 | INFO | Initializing Package {'name': 'pyrsistent', 'version': '0.15.6', 'latest_version': '0.15.7', 'latest_filetype': 'sdist'} of type <class 'dict'>...
2020-01-16 19:23:11,484 | INFO | Fetching package pyrsistent information from DB...
2020-01-16 19:23:11,461 | INFO | Initializing Package {'name': 'Pillow', 'version': '6.2.1', 'latest_version': '7.0.0', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,460 | INFO | Initializing Package {'name': 'google-auth', 'version': '1.10.0', 'latest_version': '1.10.1', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,462 | INFO | Initializing Package {'name': 'jupyterlab-code-formatter', 'version': '0.6.1', 'latest_version': '1.0.3', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,487 | INFO | Fetching package jupyterlab-code-formatter information from DB...
2020-01-16 19:23:11,487 | INFO | Fetching package Pillow information from DB...
2020-01-16 19:23:11,487 | INFO | Fetching package google-auth information from DB...
2020-01-16 19:23:11,489 | INFO | Initializing Package {'name': 'reportlab', 'version': '3.5.32', 'latest_version': '3.5.34', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,489 | INFO | Fetching package reportlab information from DB...
2020-01-16 19:23:11,489 | INFO | Initializing Package {'name': 'six', 'version': '1.13.0', 'latest_version': '1.14.0', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,489 | INFO | Fetching package six information from DB...
2020-01-16 19:23:11,489 | INFO | Initializing Package {'name': 'swifter', 'version': '0.297', 'latest_version': '0.300', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,489 | INFO | Fetching package swifter information from DB...
2020-01-16 19:23:11,489 | INFO | Initializing Package {'name': 'rsa', 'version': '3.4.2', 'latest_version': '4.0', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,489 | INFO | Fetching package rsa information from DB...
2020-01-16 19:23:11,490 | INFO | Initializing Package {'name': 'setuptools', 'version': '44.0.0', 'latest_version': '45.0.0', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,490 | INFO | Fetching package setuptools information from DB...
2020-01-16 19:23:11,490 | INFO | Initializing Package {'name': 'virtualenv', 'version': '16.7.8', 'latest_version': '16.7.9', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,490 | INFO | Fetching package virtualenv information from DB...
2020-01-16 19:23:11,490 | INFO | Initializing Package {'name': 'six', 'version': '1.13.0', 'latest_version': '1.14.0', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,490 | INFO | Fetching package six information from DB...
2020-01-16 19:23:11,490 | INFO | Initializing Package {'name': 'PyYAML', 'version': '5.1.2', 'latest_version': '5.3', 'latest_filetype': 'sdist'} of type <class 'dict'>...
2020-01-16 19:23:11,490 | INFO | Fetching package PyYAML information from DB...
2020-01-16 19:23:11,492 | INFO | Initializing Package {'name': 'wcwidth', 'version': '0.1.7', 'latest_version': '0.1.8', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,463 | INFO | Initializing Package {'name': 'pip', 'version': '19.3', 'latest_version': '19.3.1', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,493 | INFO | Fetching package wcwidth information from DB...
2020-01-16 19:23:11,493 | INFO | Initializing Package {'name': 'swifter', 'version': '0.297', 'latest_version': '0.300', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,494 | INFO | Fetching package swifter information from DB...
2020-01-16 19:23:11,464 | INFO | Fetching package boto3 information from DB...
2020-01-16 19:23:11,464 | INFO | Fetching package contextlib2 information from DB...
2020-01-16 19:23:11,497 | INFO | Initializing Package {'name': 'zipp', 'version': '0.6.0', 'latest_version': '1.0.0', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,498 | INFO | Fetching package zipp information from DB...
2020-01-16 19:23:11,497 | INFO | Initializing Package {'name': 'virtualenv', 'version': '16.7.8', 'latest_version': '16.7.9', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,499 | INFO | Fetching package virtualenv information from DB...
2020-01-16 19:23:11,502 | INFO | Initializing Package {'name': 'wcwidth', 'version': '0.1.7', 'latest_version': '0.1.8', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,502 | INFO | Fetching package wcwidth information from DB...
2020-01-16 19:23:11,464 | INFO | Fetching package pep517 information from DB...
2020-01-16 19:23:11,464 | INFO | Fetching package jupyterlab-code-formatter information from DB...
2020-01-16 19:23:11,465 | INFO | Initializing Package {'name': 'powerline-status', 'version': '2.7.dev9999-git.b-d498f29261afa0799aaa95924744dbf55b6960d5-', 'latest_version': '2.7', 'latest_filetype': 'sdist'} of type <class 'dict'>...
2020-01-16 19:23:11,502 | INFO | Initializing Package {'name': 'zipp', 'version': '0.6.0', 'latest_version': '1.0.0', 'latest_filetype': 'wheel'} of type <class 'dict'>...
2020-01-16 19:23:11,503 | INFO | Fetching package zipp information from DB...
2020-01-16 19:23:11,503 | INFO | Fetching package powerline-status information from DB...
2020-01-16 19:23:11,503 | INFO | Fetching package pip information from DB...
```

and so on

metya avatar Jan 16 '20 16:01 metya

@metya What's the output for the following?

$ python -c "from pipupgrade.config import PATH;print(PATH['CACHE']);"

achillesrasquinha avatar Jan 17 '20 16:01 achillesrasquinha

>>>python -c "from pipupgrade.config import PATH;print(PATH['CACHE']);"

/home/metya/.pipupgrade

metya avatar Jan 20 '20 09:01 metya

$ rm -rf /home/metya/.pipupgrade

and try again?

achillesrasquinha avatar Jan 21 '20 00:01 achillesrasquinha

sorry for silence the same error.

metya avatar Jan 21 '20 15:01 metya

Hi, @metya I'll dispatch a fix soon.

achillesrasquinha avatar Jan 21 '20 16:01 achillesrasquinha

Hi @metya could you please try with 1.6.8.?

achillesrasquinha avatar Feb 13 '20 18:02 achillesrasquinha

hello! sorry for the long answer.

uff. the same problem.

then I did even sudo pip upgrade -c nothing work.

Checking...
multiprocessing.pool.RemoteTraceback: 
"""
multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib/python3.8/site-packages/pipupgrade/model/package.py", line 113, in __init__
    time_difference	= res["_updated_at"] + timedelta(seconds = cache_timeout)
TypeError: can only concatenate str (not "datetime.timedelta") to str
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib/python3.8/site-packages/pipupgrade/commands/helper.py", line 320, in get_registry_from_pip
    registry     = Registry(source = pip_path, packages = packages,
  File "/usr/lib/python3.8/site-packages/pipupgrade/model/registry.py", line 111, in __init__
    for package in pool.imap_unordered(partial(Package, **args), packages):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 865, in next
    raise value
TypeError: can only concatenate str (not "datetime.timedelta") to str
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/bin/pipupgrade", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.8/site-packages/pipupgrade/cli/__init__.py", line 15, in wrapper
    return fn(**params)
  File "/usr/lib/python3.8/site-packages/pipupgrade/commands/__init__.py", line 161, in command
    for registry in pool.imap_unordered(
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 865, in next
    raise value
TypeError: can only concatenate str (not "datetime.timedelta") to str
Process ForkPoolWorker-2:3:
Process ForkPoolWorker-2:1:
Traceback (most recent call last):
Process ForkPoolWorker-2:6:
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 131, in worker
    put((job, i, result))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 136, in worker
    put((job, i, (False, wrapped)))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 131, in worker
    put((job, i, result))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 136, in worker
    put((job, i, (False, wrapped)))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe
Process ForkPoolWorker-2:4:
Process ForkPoolWorker-2:2:
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 131, in worker
    put((job, i, result))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 136, in worker
    put((job, i, (False, wrapped)))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 131, in worker
    put((job, i, result))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 136, in worker
    put((job, i, (False, wrapped)))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 131, in worker
    put((job, i, result))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 136, in worker
    put((job, i, (False, wrapped)))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe
Process ForkPoolWorker-1:4:
Process ForkPoolWorker-1:5:
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 131, in worker
    put((job, i, result))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 136, in worker
    put((job, i, (False, wrapped)))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 131, in worker
    put((job, i, result))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 136, in worker
    put((job, i, (False, wrapped)))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe
Process ForkPoolWorker-1:6:
Process ForkPoolWorker-1:1:
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 131, in worker
    put((job, i, result))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 136, in worker
    put((job, i, (False, wrapped)))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 131, in worker
    put((job, i, result))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 136, in worker
    put((job, i, (False, wrapped)))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe
Process ForkPoolWorker-1:3:
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 131, in worker
    put((job, i, result))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 136, in worker
    put((job, i, (False, wrapped)))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe
Process ForkPoolWorker-1:2:
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 131, in worker
    put((job, i, result))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 136, in worker
    put((job, i, (False, wrapped)))
  File "/usr/lib/python3.8/multiprocessing/queues.py", line 368, in put
    self._writer.send_bytes(obj)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 411, in _send_bytes
    self._send(header + buf)
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 368, in _send
    n = write(self._handle, buf)
BrokenPipeError: [Errno 32] Broken pipe

I even reinstall pipupgrade from scratch. and after that sudo pipupgrade trace that

sudo pipupgrade 
Checking...
multiprocessing.pool.RemoteTraceback: 
"""
multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib/python3.8/site-packages/pipupgrade/model/package.py", line 113, in __init__
    time_difference	= res["_updated_at"] + timedelta(seconds = cache_timeout)
TypeError: can only concatenate str (not "datetime.timedelta") to str
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib/python3.8/site-packages/pipupgrade/commands/helper.py", line 320, in get_registry_from_pip
    registry     = Registry(source = pip_path, packages = packages,
  File "/usr/lib/python3.8/site-packages/pipupgrade/model/registry.py", line 111, in __init__
    for package in pool.imap_unordered(partial(Package, **args), packages):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 865, in next
    raise value
TypeError: can only concatenate str (not "datetime.timedelta") to str
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/bin/pipupgrade", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.8/site-packages/pipupgrade/cli/__init__.py", line 15, in wrapper
    return fn(**params)
  File "/usr/lib/python3.8/site-packages/pipupgrade/commands/__init__.py", line 161, in command
    for registry in pool.imap_unordered(
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 865, in next
    raise value
TypeError: can only concatenate str (not "datetime.timedelta") to str


metya avatar Feb 25 '20 17:02 metya

Hello,

I'm also impacted by this issue. Maybe the solution could be to pass here the option --local to pip. This could be enabled optionally and it could avoid to try to upgrade many package installed by the system.

Josue-T avatar Apr 21 '20 14:04 Josue-T

Any updates on this issue? Am getting the following quite consistently now:

"DATE" | ERROR | Error executing command /usr/local/bin/pip install pipupgrade --no-cache --upgrade: DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future.

walksonair avatar Mar 18 '22 17:03 walksonair

Dear all, have you tried pipupgrade --ignore-error?

achillesrasquinha avatar Mar 30 '22 15:03 achillesrasquinha