all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Adonay Felipe Nogueira <adfeno@openmailbox.org>
Cc: 25035@debbugs.gnu.org
Subject: bug#25035: scribus: No module named _sysconfigdata_nd
Date: Mon, 28 Nov 2016 14:54:11 +0100	[thread overview]
Message-ID: <87zikjbth8.fsf@gnu.org> (raw)
In-Reply-To: <871sxw53ra.fsf@openmailbox.org> (Adonay Felipe Nogueira's message of "Mon, 28 Nov 2016 07:54:01 -0200")

Adonay Felipe Nogueira <adfeno@openmailbox.org> skribis:

> Note: Sorry friends, I pressed the wrong reply button (private reply). Now, I'm
> replyng to the bugs mailing list.
>
> I'm running Guix on a foreign distribution, and $PYTHONPATH is
> unset. The foreign distribution in question is Trisquel 7 (which is
> based on the Ubuntu 14.04).

The interesting thing is that it opens the right libpython:

  open("/gnu/store/7q9nn76r76hnxbfxyv6asishx58jc420-python-2.7.12/lib/libpython2.7.so.1.0", O_RDONLY|O_CLOEXEC) = 3

but then it does this:

--8<---------------cut here---------------start------------->8---
stat64("/home/adfeno/.guix-profile/bin/python", 0xbf868d1c) = -1 ENOENT (No such file or directory)
stat64("/usr/local/sbin/python", 0xbf868d1c) = -1 ENOENT (No such file or directory)
stat64("/usr/local/bin/python", 0xbf868d1c) = -1 ENOENT (No such file or directory)
stat64("/usr/sbin/python", 0xbf868d1c)  = -1 ENOENT (No such file or directory)
stat64("/usr/bin/python", {st_mode=S_IFREG|0755, st_size=3156448, ...}) = 0
readlink("/usr/bin/python", "python2.7", 4096) = 9
readlink("/usr/bin/python2.7", 0xbf868d1c, 4096) = -1 EINVAL (Invalid argument)
stat64("/usr/bin/Modules/Setup", 0xbf868d1c) = -1 ENOENT (No such file or directory)
stat64("/usr/bin/lib/python2.7/os.py", 0xbf868d1c) = -1 ENOENT (No such file or directory)
stat64("/usr/bin/lib/python2.7/os.pyc", 0xbf868d1c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/python2.7/os.py", {st_mode=S_IFREG|0644, st_size=25769, ...}) = 0
stat64("/usr/bin/pybuilddir.txt", 0xbf868d1c) = -1 ENOENT (No such file or directory)
stat64("/usr/bin/lib/python2.7/lib-dynload", 0xbf868d1c) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/python2.7/lib-dynload", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0

[...]

stat64("/usr/lib/python27.zip", 0xbf867a28) = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0755, st_size=36864, ...}) = 0
stat64("/usr/lib/python27.zip", 0xbf8689e0) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/python2.7/", {st_mode=S_IFDIR|0755, st_size=28672, ...}) = 0
stat64("/usr/lib/python2.7/", {st_mode=S_IFDIR|0755, st_size=28672, ...}) = 0
stat64("/usr/lib/python2.7/site", 0xbf868b40) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/site.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/sitemodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/site.py", O_RDONLY|O_LARGEFILE) = 16
fstat64(16, {st_mode=S_IFREG|0644, st_size=20388, ...}) = 0
open("/usr/lib/python2.7/site.pyc", O_RDONLY|O_LARGEFILE) = 17
fstat64(17, {st_mode=S_IFREG|0644, st_size=19727, ...}) = 0
read(17, "\3\363\r\ncZ\210Uc\0\0\0\0\0\0\0\0\3\0\0\0@\0\0\0sp\1\0\0d\0"..., 4096) = 4096
fstat64(17, {st_mode=S_IFREG|0644, st_size=19727, ...}) = 0
read(17, "\0(\0\0\0\0s\32\0\0\0/usr/lib/python2.7/si"..., 12288) = 12288
read(17, "\0\0aliasmbcs\333\1\0\0s\24\0\0\0\0\4\17\1\30\1\20\1\17\1\3\1"..., 4096) = 3343
read(17, "", 4096)                      = 0
mmap2(NULL, 262144, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xaf304000
close(17)                               = 0
stat64("/usr/lib/python2.7/os", 0xbf868750) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/os.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/osmodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.7/os.py", O_RDONLY|O_LARGEFILE) = 17
--8<---------------cut here---------------end--------------->8---

… and from there, chaos ensues.

I’m not sure where those /usr/lib file names come from though.

Note that Scribus hard-codes a whole bunch of program file names (not
that of ‘python’, though), which may lead to problems down the path, at
least on GuixSD:

--8<---------------cut here---------------start------------->8---
$ find -name \*.cpp |xargs grep --color /usr/ 
./scribus/ui/prefs_paths.cpp:   profileDirLineEdit->setToolTip( "<qt>" + tr( "Default ICC profiles directory. This cannot be changed with a document open. By default, Scribus will look in the System Directories under Mac OSX and Windows. On Linux and Unix, Scribus will search $home/.color/icc, $home/.local/share/color/icc, /usr/share/color/icc and /usr/local/share/color/icc" ) + "</qt>" );
./scribus/ui/prefs_externaltools.cpp:                                                           <<"/usr/local/texlive/2009/bin/universal-darwin/pdflatex"
./scribus/ui/prefs_externaltools.cpp:                                                           <<"/usr/local/texlive/2008/bin/universal-darwin/pdflatex";
./scribus/ui/prefs_externaltools.cpp:                           pdflatexPaths   <<"/usr/local/bin/pdflatex"
./scribus/ui/prefs_externaltools.cpp:                                                           <<"/usr/bin/pdflatex";
./scribus/scpaths.cpp:  QString linuxLocalPath("/usr/local/share/hunspell/");
./scribus/scpaths.cpp:  QString linuxHunspellPath("/usr/share/hunspell/");
./scribus/scpaths.cpp:  QString linuxMyspellPath("/usr/share/myspell/");
./scribus/scpaths.cpp:  QString linuxLocalPath("/usr/local/share/hunspell/");
./scribus/scpaths.cpp:  QString linuxHunspellPath("/usr/share/hunspell/");
./scribus/scpaths.cpp:  QString linuxMyspellPath("/usr/share/myspell/");
./scribus/scpaths.cpp:  QString linuxHyphen1Path("/usr/share/hyphen/");
./scribus/scpaths.cpp:  iccProfDirs.append("/usr/share/color/icc/");
./scribus/scpaths.cpp:  iccProfDirs.append("/usr/local/share/color/icc/");
./scribus/scpaths.cpp:  createDirs.append("/usr/share/create/swatches/");
./scribus/scpaths.cpp:  createDirs.append("/usr/local/share/create/swatches/");
./scribus/scfonts.cpp:          fs.setName("/usr/X11R6/lib/X11/fs/config");
./scribus/scfonts.cpp:                  fs.setName("/usr/X11/lib/X11/fs/config");
./scribus/util_ghostscript.cpp: gsPaths << "/usr/bin/gs" << "/usr/local/bin/gs" << "/opt/local/bin/gs" << "/sw/bin/gs";
--8<---------------cut here---------------end--------------->8---

HTH,
Ludo’.

  reply	other threads:[~2016-11-28 13:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-26 11:18 bug#25035: scribus: No module named _sysconfigdata_nd Adonay Felipe Nogueira
2016-11-28  8:13 ` Ricardo Wurmus
2016-11-28  9:54   ` Adonay Felipe Nogueira
2016-11-28 13:54     ` Ludovic Courtès [this message]
2016-11-28 15:42     ` Ricardo Wurmus
2016-12-09  8:59       ` Adonay Felipe Nogueira
2017-05-03 19:05 ` Adonay Felipe Nogueira
2017-12-01 14:41   ` Ludovic Courtès

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

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

  git send-email \
    --in-reply-to=87zikjbth8.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=25035@debbugs.gnu.org \
    --cc=adfeno@openmailbox.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.