From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: bug#23780: guix import pypi jedi: weird backtrace, no proper error message Date: Fri, 17 Jun 2016 14:41:14 +1000 Message-ID: <57637F6A.3010706@uq.edu.au> References: <20160617061639.666c57c6@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDlbc-0002J2-SZ for bug-guix@gnu.org; Fri, 17 Jun 2016 00:42:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDlbW-00016H-RR for bug-guix@gnu.org; Fri, 17 Jun 2016 00:42:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDlbW-00015k-Ms for bug-guix@gnu.org; Fri, 17 Jun 2016 00:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bDlbW-0004aj-Fb for bug-guix@gnu.org; Fri, 17 Jun 2016 00:42:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20160617061639.666c57c6@scratchpost.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Danny Milosavljevic , 23780@debbugs.gnu.org On 17/06/16 14:16, Danny Milosavljevic wrote: > $ guix import pypi jedi > > Starting download of /tmp/guix-file.n01KoB > From https://pypi.python.org/packages/3a/37/629080b92b87bc65e3b1b4f5d5= 39e22aa5dc45637eab0dd4b0cd8cf236c2/jedi-0.9.0.tar.gz... > =E2=80=A6.0.tar.gz 326KiB 402KiB/s 00:01 [##########= ##########] 100.0% > > Starting download of /tmp/guix-file.CbhRLk > From https://pypi.python.org/packages/c4/59/e48a369168a84c8aef9127c227= fc3b9f53bc9c528b24c2cda20487bc2deb/jedi-0.9.0-py2.py3-none-any.whl... > =E2=80=A6py3-none-any.whl 154KiB 291KiB/s 00:01 [##########= ##########] 100.0% > Backtrace: > In ice-9/boot-9.scm: > 157: 19 [catch srfi-34 # ...] > In ice-9/r4rs.scm: > 90: 18 [dynamic-wind # ...] > In ice-9/eval.scm: > 387: 17 [eval # #] > 387: 16 [eval # #] > 387: 15 [eval # #] > 387: 14 [eval # #] > 387: 13 [eval # #] > 387: 12 [eval # #] > 387: 11 [eval # #] > 387: 10 [eval # #] > 387: 9 [eval # #] > 387: 8 [eval # #] > 387: 7 [eval # #] > 411: 6 [eval # #] > In ice-9/r4rs.scm: > 90: 5 [dynamic-wind #= ...] > 90: 4 [dynamic-wind # ...] > In ice-9/boot-9.scm: > 867: 3 [call-with-input-file "jedi-0.9.0.dist-info/metadata.json" ...= ] > In ice-9/eval.scm: > 411: 2 [eval # #] > 387: 1 [eval # #] > In unknown file: > ?: 0 [list-ref #f 0] > > This stacktrace is ... unhelpful. I think there was a post somewhere wh= ere it detailed how to debug that but I can't find it again :( > > $ cat metadata.json > {"classifiers": ["Development Status :: 4 - Beta", "Environment :: Plug= ins", "Intended Audience :: Developers", "License :: OSI Approved :: MIT = License", "Operating System :: OS Independent", "Programming Language :: = Python :: 2", "Programming Language :: Python :: 2.6", "Programming Langu= age :: Python :: 2.7", "Programming Language :: Python :: 3", "Programmin= g Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "P= rogramming Language :: Python :: 3.4", "Topic :: Software Development :: = Libraries :: Python Modules", "Topic :: Text Editors :: Integrated Develo= pment Environments (IDE)", "Topic :: Utilities"], "summary": "An autocomp= letion tool for Python that can be used for text editors.", "platform": "= any", "generator": "bdist_wheel (0.24.0)", "metadata_version": "2.0", "ve= rsion": "0.9.0", "extensions": {"python.details": {"contacts": [{"role": = "author", "email": "davidhalter88@gmail.com", "name": "David Halter"}], "= project_urls": {"Home": "https://github.com/davidhalter/jedi"}, "document= _names": {"description": "DESCRIPTION.rst"}}}, "license": "MIT", "keyword= s": ["python", "completion", "refactoring", "vim"], "name": "jedi"} I can confirm this. Running from the git repo gives a better stack trace = (below). I think this might be due to the lack of "run_requires" in the=20 json file. Do you think the solution might be to not require one? If so=20 do you want to have a go at fixing this? Thanks. $ ./pre-inst-env guix import pypi jedi Starting download of /tmp/guix-file.ohIhq3 =46rom=20 https://pypi.python.org/packages/3a/37/629080b92b87bc65e3b1b4f5d539e22aa5= dc45637eab0dd4b0cd8cf236c2/jedi-0.9.0.tar.gz... =E2=80=A6.0.tar.gz 326KiB 175KiB/s 00:02=20 [####################] 100.0% Starting download of /tmp/guix-file.nXlt3z =46rom=20 https://pypi.python.org/packages/c4/59/e48a369168a84c8aef9127c227fc3b9f53= bc9c528b24c2cda20487bc2deb/jedi-0.9.0-py2.py3-none-any.whl... =E2=80=A6py3-none-any.whl 154KiB 161KiB/s 00:01=20 [####################] 100.0% Backtrace: In ice-9/boot-9.scm: 63: 19 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 432: 18 [eval # #] In ice-9/boot-9.scm: 2401: 17 [save-module-excursion #] 4050: 16 [#] 1724: 15 [%start-stack load-stack ...] 1729: 14 [#] In unknown file: ?: 13 [primitive-load "/home/ben/git/guix/scripts/guix"] In guix/ui.scm: 1209: 12 [run-guix-command import "pypi" "jedi"] In guix/scripts/import.scm: 110: 11 [guix-import "pypi" "jedi"] In guix/scripts/import/pypi.scm: 84: 10 [guix-import-pypi "jedi"] In ice-9/boot-9.scm: 157: 9 [catch srfi-34 # ...] In ice-9/r4rs.scm: 90: 8 [dynamic-wind # .= =2E.] In guix/import/pypi.scm: 267: 7 [# = "/tmp/guix-file.ohIhq3" ...] 236: 6 [compute-inputs=20 "https://pypi.python.org/packages/3a/37/629080b92b87bc65e3b1b4f5d539e22aa= 5dc45637eab0dd4b0cd8cf236c2/jedi-0.9.0.tar.gz"=20 =2E..] 223: 5 [guess-requirements=20 "https://pypi.python.org/packages/3a/37/629080b92b87bc65e3b1b4f5d539e22aa= 5dc45637eab0dd4b0cd8cf236c2/jedi-0.9.0.tar.gz"=20 =2E..] In ice-9/r4rs.scm: 90: 4 [dynamic-wind # .= =2E.] In guix/import/pypi.scm: 174: 3 [# = "/tmp/guix-file.nXlt3z" ...] In ice-9/boot-9.scm: 867: 2 [call-with-input-file "jedi-0.9.0.dist-info/metadata.json" ...] In guix/import/pypi.scm: 178: 1 [#=20 #] In unknown file: ?: 0 [list-ref #f 0] ERROR: In procedure list-ref: ERROR: In procedure list-ref: Wrong type argument in position 1: #f