package python-requests 2.18.4-2 failed to install/upgrade: new python-requests package pre-removal script subprocess returned error exit status 1

Bug #1798437 reported by Buddy Lodder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
requests (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Preconfiguring packages ...
(Reading database ... 209169 files and directories currently installed.)
Preparing to unpack .../python-requests_2.18.4-2ubuntu0.1_all.deb ...
Traceback (most recent call last):
  File "/usr/bin/pyclean", line 32, in <module>
    from debpython.namespace import add_namespace_files
  File "/usr/share/python/debpython/namespace.py", line 28, in <module>
    from debpython.pydist import PUBLIC_DIR_RE
  File "/usr/share/python/debpython/pydist.py", line 29, in <module>
    from debpython.version import vrepr, getver, get_requested_versions
  File "/usr/share/python/debpython/version.py", line 46, in <module>
    _default = _config.get('DEFAULT', 'default-version')[6:]
  File "/usr/lib/python2.7/ConfigParser.py", line 618, in get
    raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option 'default-version' in section: 'DEFAULT'
dpkg: warning: old python-requests package pre-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
Traceback (most recent call last):
  File "/usr/bin/pyclean", line 32, in <module>
    from debpython.namespace import add_namespace_files
  File "/usr/share/python/debpython/namespace.py", line 28, in <module>
    from debpython.pydist import PUBLIC_DIR_RE
  File "/usr/share/python/debpython/pydist.py", line 29, in <module>
    from debpython.version import vrepr, getver, get_requested_versions
  File "/usr/share/python/debpython/version.py", line 46, in <module>
    _default = _config.get('DEFAULT', 'default-version')[6:]
  File "/usr/lib/python2.7/ConfigParser.py", line 618, in get
    raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option 'default-version' in section: 'DEFAULT'
dpkg: error processing archive /var/cache/apt/archives/python-requests_2.18.4-2ubuntu0.1_all.deb (--unpack):
 new python-requests package pre-removal script subprocess returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 46, in <module>
    _default = _config.get('DEFAULT', 'default-version')[6:]
  File "/usr/lib/python2.7/ConfigParser.py", line 618, in get
    raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option 'default-version' in section: 'DEFAULT'
dpkg: error while cleaning up:
 installed python-requests package post-installation script subprocess returned error exit status 1
Preparing to unpack .../bsdutils_1%3a2.31.1-0.4ubuntu3.2_amd64.deb ...
Unpacking bsdutils (1:2.31.1-0.4ubuntu3.2) over (1:2.31.1-0.4ubuntu3.1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/python-requests_2.18.4-2ubuntu0.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: python-requests 2.18.4-2
ProcVersionSignature: Ubuntu 4.15.0-36.39-generic 4.15.18
Uname: Linux 4.15.0-36-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.4
AptOrdering:
 libsnmp-base:amd64: Install
 libsnmp30:amd64: Install
 python-requests:amd64: Install
 python3-requests:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
Date: Mon Oct 15 23:01:11 2018
ErrorMessage: new python-requests package pre-removal script subprocess returned error exit status 1
InstallationDate: Installed on 2018-10-07 (10 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
PackageArchitecture: all
Python3Details: /usr/bin/python3.6, Python 3.6.6, python3-minimal, 3.6.5-3ubuntu1
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2
 apt 1.6.3ubuntu0.1
SourcePackage: requests
Title: package python-requests 2.18.4-2 failed to install/upgrade: new python-requests package pre-removal script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Buddy Lodder (blodder) wrote :
Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

I wasn't able to reproduce your problem. Installing python-requests on Bionic works fine for me in a test container.

Since there isn't enough information in your report to differentiate between a local configuration problem and a bug in Ubuntu, I'm marking this bug as Incomplete.

If indeed this is a local configuration problem, you can find pointers to get help for this sort of problem here: http://www.ubuntu.com/support/community

Or if you believe that this is really a bug, then you may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem, explain why you believe this is a bug in Ubuntu rather than a problem specific to your system, and then change the bug status back to New.

Changed in requests (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for requests (Ubuntu) because there has been no activity for 60 days.]

Changed in requests (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.