Bug 23134 - не там ищет dbus/mainloop/__init__.py на х86_64
Summary: не там ищет dbus/mainloop/__init__.py на х86_64
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: python-module-PyQt4 (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Grigory Ustinov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-12 01:21 MSK by Artem Zolochevskiy
Modified: 2010-03-14 00:02 MSK (History)
22 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Zolochevskiy 2010-03-12 01:21:40 MSK
на x86_64 не работает, например,
import dbus.mainloop.qt

не там ищет dbus/mainloop/__init__.py на х86_64

python-module-PyQt4-4.7-alt2
Comment 1 swi 2010-03-12 11:02:51 MSK
morsov@alexey ~ $ bpython
>>> import dbus.mainloop.qt
>>>
morsov@alexey ~ $ rpm -q python-module-PyQt4
python-module-PyQt4-4.7-alt2
morsov@alexey ~ $ uname -m
x86_64
?
Comment 2 Artem Zolochevskiy 2010-03-12 11:19:50 MSK
(В ответ на комментарий №1)
> morsov@alexey ~ $ bpython
> >>> import dbus.mainloop.qt
> >>>
> morsov@alexey ~ $ rpm -q python-module-PyQt4
> python-module-PyQt4-4.7-alt2
> morsov@alexey ~ $ uname -m
> x86_64
> ?

[azol@people ~]$ hsh --init; hsh-install python-module-PyQt4; hsh-shell
[builder@people .in]$ rpm -q python-module-PyQt4
python-module-PyQt4-4.7-alt2
[builder@people .in]$ python
Python 2.6.4 (r264:75706, Jan 15 2010, 03:59:46) 
[GCC 4.4.2 20091222 (ALT Linux 4.4.2-alt4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus.mainloop.qt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named dbus.mainloop.qt
>>> 

[builder@people ~]$ uname -m
x86_64
Comment 3 swi 2010-03-12 11:40:09 MSK
morsov@alexey ~ $ hsh-install /tmp/.private/$USER/hasher python-module-dbus
<86>Mar 12 08:39:21 groupadd[20370]: new group: name=messagebus, gid=36
<86>Mar 12 08:39:21 useradd[20371]: new user: name=messagebus, uid=100, gid=36, home=/var/run/dbus, shell=/dev/null
<13>Mar 12 08:39:21 rpmi: dbus-1.2.16-alt3 installed
<13>Mar 12 08:39:21 rpmi: libgamin-fam-0.1.10-alt2.1 installed
<13>Mar 12 08:39:21 rpmi: libgio-2.22.4-alt1 installed
<13>Mar 12 08:39:21 rpmi: python-module-pygobject-2.20.0-alt2.1 installed
<13>Mar 12 08:39:21 rpmi: libdbus-glib-1:0.82-alt2 installed
<13>Mar 12 08:39:21 rpmi: python-module-dbus-0.83.0-alt2.1 installed
morsov@alexey ~ $ hsh-shell /tmp/.private/$USER/hasher
[builder@alexey .in]$ python
Python 2.6.4 (r264:75706, Jan 15 2010, 03:59:46)
[GCC 4.4.2 20091222 (ALT Linux 4.4.2-alt4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus.mainloop.qt
>>>

morsov@alexey ~ $ rpm -qf /usr/lib64/python2.6/site-packages/dbus/mainloop/__init__.py
python-module-dbus-0.83.0-alt2.1
Comment 4 Artem Zolochevskiy 2010-03-12 11:48:43 MSK
[azol@people ~]$ hsh --init; hsh-install python-module-PyQt4 python-module-dbus; hsh-shell
<86>Mar 12 08:43:59 userdel[5850]: delete user `rooter'
<86>Mar 12 08:43:59 userdel[5850]: remove group `rooter'
<86>Mar 12 08:43:59 groupadd[5851]: new group: name=rooter, gid=689
<86>Mar 12 08:43:59 useradd[5852]: new user: name=rooter, uid=689, gid=689, home=/root, shell=/bin/bash
<86>Mar 12 08:43:59 userdel[5854]: delete user `builder'
<86>Mar 12 08:43:59 userdel[5854]: remove group `builder'
<86>Mar 12 08:43:59 groupadd[5855]: new group: name=builder, gid=690
<86>Mar 12 08:43:59 useradd[5856]: new user: name=builder, uid=690, gid=690, home=/usr/src, shell=/bin/bash
<13>Mar 12 08:44:01 rpmi: libstdc++4.4-4.4.3-alt1 installed
<13>Mar 12 08:44:01 rpmi: qt4-common-4.6.2-alt2 installed
<13>Mar 12 08:44:01 rpmi: libqt4-core-4.6.2-alt2 installed
<13>Mar 12 08:44:01 rpmi: libdbus-1.2.20-alt2 installed
<13>Mar 12 08:44:01 rpmi: libexpat-2.0.1-alt3 installed
<13>Mar 12 08:44:01 rpmi: libqt4-xml-4.6.2-alt2 installed
<13>Mar 12 08:44:01 rpmi: libjpeg-1:6b-alt10 installed
<13>Mar 12 08:44:01 rpmi: libfreetype-2.3.12-alt1 installed
<13>Mar 12 08:44:01 rpmi: libqt4-dbus-4.6.2-alt2 installed
<13>Mar 12 08:44:01 rpmi: libqt4-script-4.6.2-alt2 installed
<13>Mar 12 08:44:01 rpmi: libqt4-sql-4.6.2-alt2 installed
<13>Mar 12 08:44:01 rpmi: libICE-1.0.6-alt1 installed
<13>Mar 12 08:44:01 rpmi: libSM-1.1.1-alt1 installed
<13>Mar 12 08:44:02 rpmi: fontconfig-2.8.0-alt4 installed
Updating fonts cache: [ DONE ]
<29>Mar 12 08:44:04 fontconfig: Updating fonts cache: succeeded
<13>Mar 12 08:44:04 rpmi: libtiff-3.8.2-alt5 installed
<13>Mar 12 08:44:04 rpmi: libdbus-glib-1:0.84-alt1 installed
<86>Mar 12 08:44:04 groupadd[6043]: new group: name=messagebus, gid=101
<86>Mar 12 08:44:04 useradd[6044]: new user: name=messagebus, uid=100, gid=101, home=/var/run/dbus, shell=/dev/null
<13>Mar 12 08:44:04 rpmi: dbus-1.2.20-alt2 installed
<13>Mar 12 08:44:04 rpmi: libqt4-clucene-4.6.2-alt2 installed
<13>Mar 12 08:44:04 rpmi: libqt4-test-4.6.2-alt2 installed
<13>Mar 12 08:44:04 rpmi: libalsa-1:1.0.22-alt1 installed
<13>Mar 12 08:44:04 rpmi: libpng12-1.2.43-alt1 installed
<13>Mar 12 08:44:04 rpmi: liblcms-1.19-alt1 installed
<13>Mar 12 08:44:04 rpmi: libmng-1.0.10-alt1.1 installed
<13>Mar 12 08:44:04 rpmi: libgamin-fam-0.1.10-alt2.1 installed
<13>Mar 12 08:44:04 rpmi: libgio-2.22.4-alt1 installed
<13>Mar 12 08:44:04 rpmi: libdrm-1:2.4.19-alt1 installed
<13>Mar 12 08:44:04 rpmi: libXdmcp-1.0.3-alt1 installed
<13>Mar 12 08:44:04 rpmi: libXau-1.0.5-alt1 installed
<13>Mar 12 08:44:04 rpmi: libxcb-1.5-alt1 installed
<13>Mar 12 08:44:04 rpmi: libX11-locales-3:1.3.3-alt1 installed
<13>Mar 12 08:44:04 rpmi: libX11-3:1.3.3-alt1 installed
<13>Mar 12 08:44:04 rpmi: libXext-1.0.5-alt1 installed
<13>Mar 12 08:44:04 rpmi: libXrender-0.9.5-alt1 installed
<13>Mar 12 08:44:04 rpmi: libXfixes-4.0.4-alt1 installed
<13>Mar 12 08:44:04 rpmi: libXcursor-1.1.10-alt1 installed
<13>Mar 12 08:44:04 rpmi: libXrandr-1.3.0-alt1 installed
<13>Mar 12 08:44:04 rpmi: libXi-1.2.1-alt1 installed
<13>Mar 12 08:44:04 rpmi: libXinerama-1.0.3-alt2 installed
<13>Mar 12 08:44:05 rpmi: libqt4-gui-4.6.2-alt2 installed
<13>Mar 12 08:44:05 rpmi: libphonon-4.3.80-alt1 installed
<13>Mar 12 08:44:05 rpmi: libqt4-designer-4.6.2-alt2 installed
<13>Mar 12 08:44:05 rpmi: libqt4-multimedia-4.6.2-alt2 installed
<13>Mar 12 08:44:05 rpmi: libqt4-scripttools-4.6.2-alt2 installed
<13>Mar 12 08:44:05 rpmi: libqt4-svg-4.6.2-alt2 installed
<13>Mar 12 08:44:05 rpmi: libXxf86vm-1.0.2-alt2 installed
<13>Mar 12 08:44:05 rpmi: libXdamage-1.1.2-alt1 installed
<13>Mar 12 08:44:06 rpmi: libGL-4:7.7.1-alt0.d5 installed
<13>Mar 12 08:44:06 rpmi: libqt4-opengl-4.6.2-alt2 installed
<13>Mar 12 08:44:06 rpmi: python-modules-curses-2.6.4-alt3 installed
<13>Mar 12 08:44:06 rpmi: libkeyutils-1.2-alt3 installed
<13>Mar 12 08:44:06 rpmi: libgdbm-1.8.3-alt7 installed
<13>Mar 12 08:44:06 rpmi: ca-certificates-2009.01.15-alt1 installed
<13>Mar 12 08:44:06 rpmi: libcrypto7-0.9.8l-alt6 installed
<13>Mar 12 08:44:06 rpmi: libkrb5-1.6.3-alt9 installed
<13>Mar 12 08:44:06 rpmi: libssl7-0.9.8l-alt6 installed
<13>Mar 12 08:44:06 rpmi: libqt4-network-4.6.2-alt2 installed
<13>Mar 12 08:44:06 rpmi: libqt4-xmlpatterns-4.6.2-alt2 installed
<13>Mar 12 08:44:07 rpmi: libqt4-webkit-4.6.2-alt2 installed
<13>Mar 12 08:44:07 rpmi: libqt4-assistant-4.6.2-alt2 installed
<13>Mar 12 08:44:07 rpmi: libqt4-help-4.6.2-alt2 installed
<13>Mar 12 08:44:07 rpmi: python-modules-email-2.6.4-alt3 installed
<13>Mar 12 08:44:07 rpmi: python-modules-compiler-2.6.4-alt3 installed
<13>Mar 12 08:44:07 rpmi: python-modules-2.6.4-alt3 installed
<13>Mar 12 08:44:07 rpmi: python-modules-xml-2.6.4-alt3 installed
<13>Mar 12 08:44:07 rpmi: python-modules-ctypes-2.6.4-alt3 installed
<13>Mar 12 08:44:07 rpmi: python-modules-encodings-2.6.4-alt3 installed
<13>Mar 12 08:44:08 rpmi: python-modules-multiprocessing-2.6.4-alt3 installed
<13>Mar 12 08:44:08 rpmi: python-modules-logging-2.6.4-alt3 installed
<13>Mar 12 08:44:08 rpmi: python-modules-hotshot-2.6.4-alt3 installed
<13>Mar 12 08:44:08 rpmi: python-modules-bsddb-2.6.4-alt3 installed
<13>Mar 12 08:44:08 rpmi: python-2.6.4-alt3 installed
<13>Mar 12 08:44:08 rpmi: python-strict-2.6.4-alt3 installed
<13>Mar 12 08:44:08 rpmi: python-module-pygobject-2.20.0-alt2.1 installed
<13>Mar 12 08:44:08 rpmi: python-dev-2.6.4-alt3 installed
<13>Mar 12 08:44:08 rpmi: python-module-sip-4.10-alt1 installed
<13>Mar 12 08:44:08 rpmi: python-module-PyQt4-4.7-alt2 installed
<13>Mar 12 08:44:08 rpmi: python-module-dbus-0.83.1-alt1 installed
<13>Mar 12 08:44:08 rpmi: python-module-dbus-data-0.83.1-alt1 installed
[builder@people .in]$ python
Python 2.6.4 (r264:75706, Jan 15 2010, 03:59:46) 
[GCC 4.4.2 20091222 (ALT Linux 4.4.2-alt4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus.mainloop.qt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named qt
>>> 

[builder@people .in]$ rpm -qf /usr/lib64/python2.6/site-packages/dbus/mainloop/__init__.py 
error: file /usr/lib64/python2.6/site-packages/dbus/mainloop/__init__.py: No such file or directory
[builder@people .in]$

aris@ сказал вешать на python-module-PyQt4
Comment 5 swi 2010-03-12 12:11:54 MSK
А.. ясно. у меня чуть более старый p-m-dbus.
Таки где должен быть *.py* dbus-а ? в p-m-dbus или в p-m-pyqt4?
Comment 6 Artem Zolochevskiy 2010-03-13 14:28:00 MSK
Как должно быть и задумано, я, увы, не знаю :(
Пока лишь понятно, что оно не работает.
Comment 7 swi 2010-03-13 15:46:17 MSK
(В ответ на комментарий №6)
> Как должно быть и задумано, я, увы, не знаю :(
> Пока лишь понятно, что оно не работает.

я просто пока не понимаю почему .py* файлы бывшие ранее в -dbus теперь там отсутствуют. если они должны быть в pyqt4 (как я понимаю dbus.mainloop.qt входит именно в pyqt4) то где же они там?
Может aris выскажется насчет этого?
Comment 8 Sergey Vlasov 2010-03-13 20:19:58 MSK
Исправление со стороны python-module-dbus (путём убирания оттуда noarch, что позволяет положить dbus/mainloop/qt.so рядом с dbus/mainloop/__init__.py в том месте, где это разрешено sisyphus_check):

http://git.altlinux.org/people/vsu/packages/?p=python-module-dbus.git;
a=commitdiff;h=c0331b645b03ef6ee787ea4623cacc5687858ac8

http://git.altlinux.org/tasks/21751/task/log (требуется подтверждение aris@)

Кстати, если сейчас пересобрать python-module-PyQt4 с неисправленным python-module-dbus, при сборке будет сделана попытка положить dbus/mainloop/qt.so в %python_sitelibdir_noarch (рядом с фактическим расположением dbus/mainloop/__init__.py во время сборки), и этот файл на x86_64 молча не попадёт в бинарный пакет (а при попытке добавить его в %files пакет не пройдёт sisyphus_check).
Comment 9 Repository Robot 2010-03-13 23:41:26 MSK
python-module-dbus-0.83.1-alt2 -> sisyphus:

* Sat Mar 13 2010 Sergey Vlasov <vsu@altlinux> 0.83.1-alt2

- Make the whole package arch-specific again to fix problems with the
  dbus.mainloop.qt module in python-module-PyQt4 on x86_64 (ALT#23134);
  remove and obsolete the python-module-dbus-data subpackage.
Comment 10 Artem Zolochevskiy 2010-03-14 00:02:46 MSK
спасибо, с обновлёным python-module-dbus проблем нет.