stack trace on import with python3.6

Bug #1704024 reported by Scott Moser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-json-patch (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

$ dpkg-query --show python3
python3 3.6.1-0ubuntu1~py36default1
$ dpkg-query --show python3-jsonpatch
python3-jsonpatch 1.19-4
$ python3 -c 'import jsonpatch'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/jsonpatch.py", line 114, in <module>
    json.load = get_loadjson()
  File "/usr/lib/python3/dist-packages/jsonpatch.py", line 108, in get_loadjson
    argspec = inspect.getargspec(json.load)
  File "/usr/lib/python3.6/inspect.py", line 1072, in getargspec
    raise ValueError("Function has keyword-only parameters or annotations"
ValueError: Function has keyword-only parameters or annotations, use getfullargspec() API which can support them

Related bugs:
 * bug 1703697 cloud-init tox fails under python 3.6
 * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839779 python-jsonpatch has wrong version

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: python3-jsonpatch 1.19-4
ProcVersionSignature: Ubuntu 4.4.0-83.106-generic 4.4.70
Uname: Linux 4.4.0-83-generic x86_64
ApportVersion: 2.20.5-0ubuntu5
Architecture: amd64
Date: Thu Jul 13 00:36:26 2017
Dependencies: python3-json-pointer 1.10-1
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=C.UTF-8
SourcePackage: python-json-patch
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

This is fixed with current python-json-patch from upstream (1.16)

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

The only blocker here is figuring out how to align the version number of the new python-json-patch upload with Debian. I guess something like 1.19+really1.16 invites future pain a bit less than an epoch bump.

Revision history for this message
Scott Moser (smoser) wrote :
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-json-patch - 1.19+really1.16-0ubuntu1

---------------
python-json-patch (1.19+really1.16-0ubuntu1) artful; urgency=medium

  * New upstream release (the previously packaged version is really 1.10
    despite what the version number says). (LP: #1704024)

 -- Michael Hudson-Doyle <email address hidden> Mon, 17 Jul 2017 11:49:41 +1200

Changed in python-json-patch (Ubuntu):
status: New → Fix Released
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.