From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: Re: guix import issue Date: Sat, 13 Jun 2015 21:26:08 +1000 Message-ID: <557C1350.1050108@uq.edu.au> References: <557B87A7.9040103@uq.edu.au> <878ubnkh6z.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3jZw-0008Om-R8 for guix-devel@gnu.org; Sat, 13 Jun 2015 07:26:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3jZr-0000kW-9J for guix-devel@gnu.org; Sat, 13 Jun 2015 07:26:24 -0400 Received: from mailhub2.soe.uq.edu.au ([130.102.132.209]:47371 helo=newmailhub.uq.edu.au) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3jZq-0000jp-Lb for guix-devel@gnu.org; Sat, 13 Jun 2015 07:26:19 -0400 In-Reply-To: <878ubnkh6z.fsf@elephly.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ricardo Wurmus Cc: guix-devel@gnu.org Hi, thanks for the reply. On 13/06/15 20:59, Ricardo Wurmus wrote: >> ERROR: In procedure scm-error: >> ERROR: no code for module (json) > This means that guile-json cannot be found. It is needed to parse the > JSON metadata for a given Python module. Hmm, installing didn't fix it though. The pythonpath thing was because I just installed python2 and is unrelated I think. Unclear to me from the output though, did it attempt to install it at that point? ben@u:~/guix/ben/packages$ guix package -i guile-json warning: failed to install locale: Invalid argument The following package will be installed: guile-json 0.4.0 /gnu/store/x1id8rf765mmjqiyr32chrma4ykx8qn5-guile-json-0.4.0 The following derivations will be built: /gnu/store/3qpy8fk7r68yd65ck2a80557qymay0sk-profile.drv /gnu/store/ahgxnsx70jpiz1xdhf5khs3kv155kpa3-ca-certificate-bundle.drv /gnu/store/qahkhjwf7chmik70k70rzr0kzzx0i03m-info-dir.drv 5 packages in profile The following environment variable definitions may be needed: export PYTHONPATH="/home/ben/.guix-profile/lib/python2.7/site-packages" ben@u:~/guix/ben/packages$ export PYTHONPATH="/home/ben/.guix-profile/lib/python2.7/site-packages" ben@u:~/guix/ben/packages$ guix package -i guile-json warning: failed to install locale: Invalid argument The following package will be upgraded: guile-json 0.4.0 -> 0.4.0 /gnu/store/x1id8rf765mmjqiyr32chrma4ykx8qn5-guile-json-0.4.0 nothing to be done ben@u:~/guix/ben/packages$ guix import pypi GroopM warning: failed to install locale: Invalid argument Backtrace: In ice-9/boot-9.scm: 2864: 19 [resolve-interface (guix scripts import ...) #:select ...] 2789: 18 [# # ...] 3065: 17 [try-module-autoload (guix scripts import pypi) #f] 2401: 16 [save-module-excursion #] 3085: 15 [#] In unknown file: ?: 14 [primitive-load-path "guix/scripts/import/pypi" ...] In guix/scripts/import/pypi.scm: 19: 13 [#] In ice-9/boot-9.scm: 2951: 12 [define-module* (guix scripts import ...) #:filename ...] 2926: 11 [resolve-imports (((guix ui)) ((guix utils)) ((guix import pypi)) ...)] 2864: 10 [resolve-interface (guix import pypi) #:select ...] 2789: 9 [# # ...] 3065: 8 [try-module-autoload (guix import pypi) #f] 2401: 7 [save-module-excursion #] 3085: 6 [#] In unknown file: ?: 5 [primitive-load-path "guix/import/pypi" ...] In guix/import/pypi.scm: 19: 4 [#] In ice-9/boot-9.scm: 2951: 3 [define-module* (guix import pypi) #:filename ...] 2926: 2 [resolve-imports ((#) (#) (#) (#) ...)] 2867: 1 [resolve-interface (json) #:select ...] In unknown file: ?: 0 [scm-error misc-error #f "~A ~S" ("no code for module" (json)) #f] ERROR: In procedure scm-error: ERROR: no code for module (json) Also, I have this problem on 2 boxes. The other box I did not have guile-json installed (I think): ben@ben:~/git/guix_ben/ben/packages$ guix package -I guile-json warning: failed to install locale: Invalid argument ben@ben:~/git/guix_ben/ben/packages$ > You initially installed guix with the binary tarball method, did you > not? Did it work before "guix pull" or is this the very first time you > are trying it? Correct. My install procedure was I think quite by the book, as you know at http://lists.open-bio.org/pipermail/bio-packaging/2015-June/000012.html import never worked but then I cannot remember if I tried it or not. I am running the daemon like so root@u:~# /root/.guix-profile/bin/guix-daemon --build-users-group=guix-builder --no-substitutes > (I do not know why guile-json would not be present when guix was > installed via tarball, nor why it would be missing after "guix pull", so > I'm hoping for someone else to comment on this.) ok.