From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Sturmfels Subject: bug#30189: Retux game halts after preloading levels (missing ucd.sqlite uniseg database) Date: Sun, 21 Jan 2018 18:56:05 +1100 Message-ID: <87tvvfmyqy.fsf@sturm.com.au> References: <87vafvnaan.fsf@sturm.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edAV0-00016o-C7 for bug-guix@gnu.org; Sun, 21 Jan 2018 02:57:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edAUx-0005bX-9q for bug-guix@gnu.org; Sun, 21 Jan 2018 02:57:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:56857) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edAUx-0005az-1D for bug-guix@gnu.org; Sun, 21 Jan 2018 02:57:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1edAUv-0001Sd-Ne for bug-guix@gnu.org; Sun, 21 Jan 2018 02:57:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: 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: =?UTF-8?Q?G=C3=A1bor?= Boskovits Cc: 30189@debbugs.gnu.org, Kei Kebreau --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks G=C3=A1bor, adding zipfile fixes the build and Retux now runs. Patch attached and CC'd to guix-patches. Regards, Ben On Sun, 21 Jan 2018, G=C3=A1bor Boskovits wrote: > I think unzip should be added to native-inputs. Can you try that? > > 2018-01-21 4:46 GMT+01:00 Ben Sturmfels : > > Hi Folks, > > I'd like to play the Retux game, but while the game starts up it > crashes > on me after the "preloading levels" screen. > > There's no useful console output, but when running in the debugger, I > see that the python-uniseg package is looking for a file called > ucd.sqlite3 that doesn't exist, some kind of Unicode letter spacing > database that's not present in the BitBucket repository. > > python3 -m pdb -c continue \ > "/gnu/store/57psnlgdyri8phkxzasaf6q0gb8nskpz-retux-1.3.5/bin/.retux-real" >=20=20 > > See uniseg/db.py:107 and 21. Since it's also looking in the current > directory, I tried downloading ucd.sqlite3 from the PyPI zip package - > that fixes the issue. > > The python-uniseg package downloads the source from BitBucket, so > I > tried changing that to PyPI: > > (uri (pypi-uri "uniseg" version ".zip")) > > which downloads ok, but fails but the fails at the unpack phase > without > any details. Should Guix know how to unpack a .zip? Or maybe I > should > coerce the maintainer to publish a .tar.gz? > > Currently Retux is the only program that uses python-uniseg (via > python-sge-pygame dependency). > > Regards, > Ben --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-python-uniseg-Switch-to-PyPi-source-to-get-missi.patch Content-Transfer-Encoding: quoted-printable From=2042c1e69526ec9781e3f7290fb74e2a561131e3be Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Sun, 21 Jan 2018 18:43:07 +1100 Subject: [PATCH] gnu: python-uniseg: Switch to PyPi source to get missing ucd.sqlite3. * gnu/packages/python.scm (python-uniseg): Use PyPI, add zipfile dependency= to unpack. =2D-- gnu/packages/python.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 0b582e6b7..2f1c20e31 100644 =2D-- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -773,15 +773,15 @@ Python 3 support.") (source (origin (method url-fetch) =2D (uri (string-append "https://bitbucket.org/emptypage/uniseg-pytho= n/" =2D "get/rel-" version ".tar.gz")) =2D (file-name (string-append name "-" version ".tar.gz")) + (uri (pypi-uri "uniseg" version ".zip")) (sha256 (base32 =2D "1df4gddnj2a0v8z35wb2ra5vvh1f1qyxs8fgd25c8g64031mna6x")))) + "05jsazvz6nbmh6l3v1rph5ydkqn1hzx1pyggdyvgp2qgmgrnmiz2")))) (build-system python-build-system) (arguments '(#:tests? #f)) ; The test suite requires network access. + (native-inputs + `(("unzip" ,unzip))) (home-page "https://bitbucket.org/emptypage/uniseg-python") (synopsis =2D-=20 2.15.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEPn825zvdanEG+SAhAjwF4snAaPAFAlpkR5UACgkQAjwF4snA aPAS4A//d/0Ry2uMJj7byMF+1PPNpIaZFKOpVUnISfrBa2o87/lN6HHbYvyG6DcZ 4zObcZRk8XOWjJMjBrYZAy0JDmvuG3s3mKvHFjSkFUPU+QRYBncWW3Due7XXAil2 9G+8cry6i6zkrhhNEYL9cjVp5kEddeIfq3sLqTbno471vjaWLxf6s/DUYAFKIr/G oUIgqoy8yafhOJwubqdS1w3rBHBrz/W7ZSFKBksX/CyPk693CE/ZiFgMuSXnWe2Y Hz+bC27At3Mhw21x1NL7rBZSwWqrtRGocWl/c96snyRA6xBTTGNtIUAzN72aIvyG WSBBUMK4KaPAiMxq7HHNLKGdEMy+mq1lCuE0n9RMWb33+g/PLrfxglhAccYz8E9r P+ZBtIGY97pVW73W7avAamJ3TNChO3ACzpclcRN0UObnGMaseXzCD/UpEFmeQOUd yWa6cyp0LfSuFSkgX4Qro8DmUVpjPrJ8xldwvzwz3+4kqP60fT0DdzDJelkuISgu rXB6WsTDf/1hSN2Gky/rVdbRvbYdjQQtWC1wVMpfqMqUUzvbeoYtg/gnoD0WRJz6 gmHgue7NQ0QJktAD/WyIjZwI18LspDM8IE+GsZiAE6LCJ1yyf6AegjtZmixyRHi3 Pud1Cy29tBdNwLfsCAd9rh9GKdhyxeh2RtiydGcnhT8W+yABSeQ= =w8Ri -----END PGP SIGNATURE----- --==-=-=--