From: Ivan Zakharyaschev <imz@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Обновление numpy и matplotlib
Date: Mon, 17 Apr 2017 11:58:59 +0300 (MSK)
Message-ID: <alpine.LFD.2.20.1704171152450.1081@imap.altlinux.org> (raw)
In-Reply-To: <da5ace2b-2958-0786-0147-a48ca667fa87@ya.ru>
[-- Attachment #1: Type: text/plain, Size: 2888 bytes --]
On Mon, 17 Apr 2017, Антон Мидюков wrote:
> 17.04.2017 15:14, Ivan Zakharyaschev пишет:
>> On Mon, 17 Apr 2017, Ivan Zakharyaschev wrote:
>>
>> > С новой сборкой проверка не проходит немного с другой ошибкой. Возможно,
>> > дело в зависимости от того, что попало в другой подпакет:
>> >
>> > [builder@localhost .in]$ /usr/lib/rpm/check-python3-provs-importable.sh
>> > python3-module-matplotlib; echo $?
>> > matplotlib.pylab
>> > matplotlib.pyplot
>> > pylab
>> > 123
>> > [builder@localhost .in]$ python3 -c 'import matplotlib.pyplot'
>> > Traceback (most recent call last):
>> > File "<string>", line 1, in <module>
>> > File "/usr/lib64/python3/site-packages/matplotlib/pyplot.py", line
>> > 115, in <module>
>> > _backend_mod, new_figure_manager, draw_if_interactive, _show =
>> > pylab_setup()
>> > File "/usr/lib64/python3/site-packages/matplotlib/backends/__init__.py",
>> > line 32, in pylab_setup
>> > globals(),locals(),[backend_name],0)
>> > ImportError: No module named 'matplotlib.backends.backend_gtk3cairo'
>> > [builder@localhost .in]$ python3 -c 'import matplotlib.pylab'
>> > Traceback (most recent call last):
>> > File "<string>", line 1, in <module>
>> > File "/usr/lib64/python3/site-packages/matplotlib/pylab.py", line
>> > 257, in <module>
>> > from matplotlib import cbook, mlab, pyplot as plt
>> > File "/usr/lib64/python3/site-packages/matplotlib/pyplot.py", line 115,
>> > in <module>
>> > _backend_mod, new_figure_manager, draw_if_interactive, _show =
>> > pylab_setup()
>> > File "/usr/lib64/python3/site-packages/matplotlib/backends/__init__.py",
>> > line 32, in pylab_setup
>> > globals(),locals(),[backend_name],0)
>> > ImportError: No module named 'matplotlib.backends.backend_gtk3cairo'
>> > [builder@localhost .in]$
>>
>> [builder@localhost .in]$ rpm -qa '*gtk3*'
>> [builder@localhost .in]$ rpm -qa '*gtk*'
>> gtk+3-themes-incompatible-3.20-alt3.noarch
>> libgtk+4-3.90.0-alt1.x86_64
>> libgtk+4-gir-3.90.0-alt1.x86_64
>> gtk-update-icon-cache-2.24.31-alt1.x86_64
>> [builder@localhost .in]$
> И почему зависимость:
> Requires: typelib(Gtk) = 3.0
> может не вытягивать libgtk+3-gir ?
Дело не в этой зависимости. Я-то инсталлирую пакет
python3-module-matplotlib . И когда импортирую модуль pylab или pyplot из
него, он пытается загрузить backend, связанный с gtk, и не может.
По списку установленных пакетов с подстрокой gtk у меня в хешере (приводил
выше) видно, что подпакета с backend-ом gtk не вытянулось.
Я не разбираюсь во всех внутренностях пакета. Что там для чего нужно.
Нужны ли модули pylab и pyplot в главном пакете? Обязательно ли для них
backend gtk? Можно ли поменять для них дефолтный backend на тот, который
поставляется вместе с главным пакетом? Всех ли устроит, если у главного
пакета будет зависимость на backend gtk3?
--
Best regards,
Ivan
next prev parent reply other threads:[~2017-04-17 8:58 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-13 14:00 Антон Мидюков
2017-04-14 10:00 ` Ivan Zakharyaschev
2017-04-16 1:58 ` Антон Мидюков
2017-04-16 7:01 ` Ivan Zakharyaschev
2017-04-16 7:48 ` Антон Мидюков
2017-04-16 8:30 ` Ivan Zakharyaschev
2017-04-16 8:43 ` Ivan Zakharyaschev
2017-04-16 13:32 ` Vladimir D. Seleznev
2017-04-16 14:49 ` Ivan Zakharyaschev
2017-04-16 15:26 ` Антон Мидюков
2017-04-16 16:42 ` Yuri Sedunov
2017-04-16 16:46 ` Ivan Zakharyaschev
2017-04-16 16:50 ` Dmitry V. Levin
2017-04-17 1:35 ` Антон Мидюков
2017-04-16 16:55 ` Ivan Zakharyaschev
2017-04-17 1:39 ` Антон Мидюков
2017-04-17 8:13 ` Ivan Zakharyaschev
2017-04-17 8:14 ` Ivan Zakharyaschev
2017-04-17 8:49 ` Антон Мидюков
2017-04-17 8:58 ` Ivan Zakharyaschev [this message]
2017-04-17 9:00 ` Антон Мидюков
2017-04-17 9:12 ` Ivan Zakharyaschev
2017-04-28 12:31 ` Антон Мидюков
2017-04-14 15:13 ` Michael Shigorin
2017-04-14 16:32 ` Ivan Zakharyaschev
2017-04-14 17:03 ` Michael Shigorin
2017-04-14 17:23 ` Ivan Zakharyaschev
2017-04-14 20:31 ` Ivan Zakharyaschev
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=alpine.LFD.2.20.1704171152450.1081@imap.altlinux.org \
--to=imz@altlinux.org \
--cc=devel@lists.altlinux.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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git