unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Formbi via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 64803@debbugs.gnu.org
Subject: bug#64803: python-shiboken-6 fails
Date: Sun, 23 Jul 2023 11:26:11 +0000	[thread overview]
Message-ID: <Obvvt39na5TXQwz0aZbllgleESldUEzvy5uotAWhyZzwdYQmY0RJ7O1bEMH0mX_EMqhBxDz8Z6t3JouxvYyiF2218yARf_YqnUmAKdA-9cg=@protonmail.com> (raw)

Hi!

The package python-shiboken-6 fails with this error:

*** Error compiling 'signature_bootstrap.py'...
Sorry: IndentationError: unexpected indent (signature_bootstrap.py, line 64)

The line in question (and the neighboring ones for context) looks like this:

import base64
import importlib
        import importlib.machinery as imachi
import io
import sys
import traceback
import zipfile

I tried adding this to the package definition, but it didn't help:
(add-before 'build 'remove-indent
	    (lambda _
	      (substitute* "sources/shiboken6/libshiboken/embed/signature_bootstrap.py"
			   (("        import importlib.machinery as imachi")
			    "import importlib.machinery as imachi"))))

Someone on IRC suggested to use this, but it didn't work either:
(add-before 'build 'remove-indent
			(lambda _
			  (substitute* "libshiboken/embed/signature_bootstrap.py"
				       (("[ \t]*(import
	       importlib\\.machinery.*)" _ suffix) suffix))))

How should I go about fixing this?

Kind regards




             reply	other threads:[~2023-07-24  6:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-23 11:26 Formbi via Bug reports for GNU Guix [this message]
2023-07-25  0:21 ` bug#64803: python-shiboken-6 fails Hilton Chain via Bug reports for GNU Guix
2023-07-26 15:06   ` bug#64803: Close: " Hilton Chain via Bug reports for GNU Guix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='Obvvt39na5TXQwz0aZbllgleESldUEzvy5uotAWhyZzwdYQmY0RJ7O1bEMH0mX_EMqhBxDz8Z6t3JouxvYyiF2218yARf_YqnUmAKdA-9cg=@protonmail.com' \
    --to=bug-guix@gnu.org \
    --cc=64803@debbugs.gnu.org \
    --cc=formbi@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).