unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: ng0@we.make.ritual.n0.is
Cc: guix-devel@gnu.org
Subject: Re: pybitmessage, python2-pyqt-4 - strace and packages
Date: Sun, 03 Jul 2016 09:09:45 +0200	[thread overview]
Message-ID: <8737nrfb9i.fsf@elephly.net> (raw)
In-Reply-To: <87twg86iwe.fsf@we.make.ritual.n0.is>


ng0@we.make.ritual.n0.is writes:

> The strace output is very long, but I hope someone can help me
> with more experience with python.
> The visible error is that pyqt-4 is not found, but strace throws
> many more.
[…]

> insert-file: (pybitmessage) in gnu/packages/python.scm:

It would be easier for others to test this if this were simply a patch
that we could apply on master.  Much easier than following manual
instructions.

> (define-public python-pyqt-4
>   (package (inherit python-pyqt)
>     (name "python-pyqt")
>     (version "4.11.4")
>     (source
>       (origin
>         (method url-fetch)
>         (uri
>           (string-append "mirror://sourceforge/pyqt/PyQt4/"
>                          "PyQt-" version "/PyQt-x11-gpl-"
>                          version ".tar.gz"))
>         (sha256
>          (base32
>           "01zlviy5lq8g6db84wnvvpsrfnip9lbcpxagsyqa6as3jmsff7zw"))))
>     (native-inputs
>      `(("python-sip" ,python-sip)
>        ("qt" ,qt-4)))
>     (arguments
>      `(#:tests? #f ; no check target
>        #:modules ((srfi srfi-1)
>                   ,@%gnu-build-system-modules)
>        #:phases
>          (alist-replace
>          'configure
>          (lambda* (#:key inputs outputs #:allow-other-keys)
>            (let* ((out (assoc-ref outputs "out"))
>                   (bin (string-append out "/bin"))
>                   (sip (string-append out "/share/sip"))
>                   (python (assoc-ref inputs "python"))
>                   (python-version
>                     (last (string-split python #\-)))
>                   (python-major+minor
>                     (string-join
>                       (take (string-split python-version #\.) 2)
>                       "."))
>                   (lib (string-append out "/lib/python"
>                                       python-major+minor
>                                       "/site-packages")))
>              (zero? (system* "python" "configure.py"
>                              "--confirm-license"
>                              "--bindir" bin
>                              "--destdir" lib
>                              "--sipdir" sip))))
>          %standard-phases)))
>     (license (list gpl2 gpl3)))) ; choice of either license
>
> (define-public python2-pyqt-4
>   (package (inherit python-pyqt-4)
>     (name "python2-pyqt-4")
>     (native-inputs
>      `(("python-sip" ,python2-sip)
>        ("qt" ,qt-4)))
>     (inputs
>      `(("python" ,python-2)))))

[…]
> open("/gnu/store/2mz84alls2i314x4506wdw15zwmz82n8-python-2.7.10/lib/python2.7/site-packages/PyQt4.so", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/gnu/store/2mz84alls2i314x4506wdw15zwmz82n8-python-2.7.10/lib/python2.7/site-packages/PyQt4module.so", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/gnu/store/2mz84alls2i314x4506wdw15zwmz82n8-python-2.7.10/lib/python2.7/site-packages/PyQt4.py", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/gnu/store/2mz84alls2i314x4506wdw15zwmz82n8-python-2.7.10/lib/python2.7/site-packages/PyQt4.pyc", O_RDONLY) = -1 ENOENT (No such file or directory)
> write(1, "ERROR: The PyQt4 package is not "..., 104ERROR: The PyQt4 package is not available. PyBitmessage requires PyQt 4.8 or later and Qt 4.7 or later.

Have you checked what files are installed by your pyqt-4 package?  Do
any of the files that are searched for appear in the output of that
package?

> write(1, "ERROR: The curses interface can "..., 88ERROR: The curses interface can not be used. The pythondialog package is not available.

You haven’t finished packaging all dependencies.  The “pythondialog”
package is also required.

The fact that it searches for libraries or packages in so many paths is
normal, because it only has a list of search paths.  It would be nice to
fix this in a general fashion one day (because all this searching takes
up time), but it’s harmless.  If the needed file is on a search path it
will eventually be found.

~~ Ricardo

  reply	other threads:[~2016-07-03  7:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-02 17:37 pybitmessage, python2-pyqt-4 - strace and packages ng0
2016-07-03  7:09 ` Ricardo Wurmus [this message]
2016-07-03 21:56   ` ng
2016-07-05 13:51     ` Ricardo Wurmus
2016-07-05 21:08       ` ng0
2016-07-06  4:59         ` Ricardo Wurmus
2016-07-06 17:29           ` ng0
2016-07-07  7:16             ` Ricardo Wurmus

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=8737nrfb9i.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@gnu.org \
    --cc=ng0@we.make.ritual.n0.is \
    /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).