Не собираются пакеты pyKDE, PyQt [solved]

Не собираются пакеты, связанные с питоном. Сам питон собран

[I] dev-lang/python
Available versions:
(2.4) 2.4.4-r5 2.4.4-r6 2.4.4-r14 ~2.4.4-r15
(2.5) 2.5.2-r7 ~2.5.2-r8
(2.6) [M]~2.6-r5
{berkdb bootstrap build cxx doc elibc_uclibc examples gdbm ipv6 ncurses nocxx nothreads readline sqlite ssl threads tk ucs2 wininst}
Installed versions: 2.5.2-r7(2.5)(01:13:53 29.11.2008)(berkdb gdbm ncurses readline ssl threads tk -build -doc -elibc_uclibc -examples -ipv6 -sqlite -ucs2 -wininst)

>>> Emerging (1 of 3) dev-python/pykde-3.16.0-r1
* PyKDE-3.16.0.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking PyKDE-3.16.0.tar.gz to /mnt/FILE/tmp/portage/portage/dev-python/pykde-3.16.0-r1/work
* Applying PyKDE-3.16.0-sip-4.7.patch ... [ ok ]
>>> Source unpacked.
>>> Compiling source in /mnt/FILE/tmp/portage/portage/dev-python/pykde-3.16.0-r1/work/PyKDE-3.16.0 ...
Can't find sipconfig.py (expected in sys.path)
Have you built the correct version of sip?
make -j3
make: *** Не заданы цели и не найден make-файл. Останов.
*
* ERROR: dev-python/pykde-3.16.0-r1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2386: Called die
* The specific snippet of code:
* emake || die "emake install failed"
* The die message:
* emake install failed
*

При этом sip собран (и пересобрано после ошибки. не помогло)
comp ~ # eix -e sip
[I] dev-python/sip
Available versions: 4.2.1 (~)4.2.1-r1 (~)4.6 4.7.1 4.7.3 (~)4.7.5 (~)4.7.6 (~)4.7.7 (~)4.7.9 {debug doc}
Installed versions: 4.7.9(08:54:11 01.12.2008)(-debug)

Кроме того,

>>> Emerging (1 of 1) dev-python/PyQt-3.17.4
* PyQt-x11-gpl-3.17.4.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking PyQt-x11-gpl-3.17.4.tar.gz to /mnt/FILE/tmp/portage/portage/dev-python/PyQt-3.17.4/work
>>> Source unpacked.
>>> Compiling source in /mnt/FILE/tmp/portage/portage/dev-python/PyQt-3.17.4/work/PyQt-x11-gpl-3.17.4 ...
Traceback (most recent call last):
File "configure.py", line 31, in
import sipconfig
ImportError: No module named sipconfig
make -j3
make: *** Не заданы цели и не найден make-файл. Останов.
*
* ERROR: dev-python/PyQt-3.17.4 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2375: Called die
* The specific snippet of code:
* emake || die "emake failed"
* The die message:
* emake failed

>>> Emerging (1 of 1) dev-python/PyQt4-4.4.4-r1
* PyQt-x11-gpl-4.4.4.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking PyQt-x11-gpl-4.4.4.tar.gz to /mnt/FILE/tmp/portage/portage/dev-python/PyQt4-4.4.4-r1/work
>>> Source unpacked.
>>> Compiling source in /mnt/FILE/tmp/portage/portage/dev-python/PyQt4-4.4.4-r1/work/PyQt-x11-gpl-4.4.4 ...
Traceback (most recent call last):
File "configure.py", line 43, in
import sipconfig
ImportError: No module named sipconfig
make -j3
make: *** Не заданы цели и не найден make-файл. Останов.
*
* ERROR: dev-python/PyQt4-4.4.4-r1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2859: Called die
* The specific snippet of code:
* emake || die "emake failed"
* The die message:
* emake failed

python-updater делал, revdep-rebuild делал. Не помогло.

Что с этим можно сделать?

.

Мысль такая: у тебя ругается "Can't find sipconfig.py (expected in sys.path)"

Сделай sip.py (см. ниже) и покажи нам то же самое:

$ cat sip.py
import sys
for dir in sys.path: print dir
$ python sip.py | grep lib
/usr/lib/portage/pym
/usr/lib/python25.zip
/usr/lib/python2.5
/usr/lib/python2.5/plat-linux2
/usr/lib/python2.5/lib-tk
/usr/lib/python2.5/lib-dynload
/usr/lib/python2.5/site-packages
/usr/lib/python2.5/site-packages/Numeric
/usr/lib/python2.5/site-packages/PIL
/usr/lib/python2.5/site-packages/gtk-2.0
$ equery files sip | grep \\.py
/usr/lib/python2.5/site-packages/sipconfig.py
/usr/lib/python2.5/site-packages/sipdistutils.py

alex@comp ~ $ cat sip.pycat:

alex@comp ~ $ cat sip.py
cat: sip.py: Нет такого файла или каталога

alex@comp ~ $ python sip.py | grep lib
python: can't open file 'sip.py': [Errno 2] No such file or directory

alex@comp ~ $ equery files sip | grep \\.py
/usr/lib/python2.5/site-packages/sipconfig.py
/usr/lib/python2.5/site-packages/sipdistutils.py

comp ~ # qfile sip.py
dev-python/twisted (/usr/lib/python2.5/site-packages/twisted/protocols/sip.py)
Пересобрал twisted. Не помогло.

.

Файла sip.py у тебя в home и не могло быть, я имел в виду "сделай его сам".
Имя я выбрал произвольно, к twisted оно отношения не имеет.

cd ~
echo "import sys" > sip.py
echo "for dir in sys.path: print dir" >> sip.py

я хотел увидеть, в чём проблема.
Ты уже показал, что не в sip - он у тебя установился куда надо.
Осталось увидеть твой sys.path
Вот sip.py его и покажет.

нипанятна

alex@comp ~ $ python sip.py | grep lib
/usr/local/lib/python25.zip
/usr/local/lib/python2.5
/usr/local/lib/python2.5/plat-linux2
/usr/local/lib/python2.5/lib-tk
/usr/local/lib/python2.5/lib-dynload
/usr/local/lib/python2.5/site-packages
/usr/local/lib/python2.5/site-packages/Numeric
/usr/local/lib/python2.5/site-packages/PIL

Отличия в /usr/local/lib вместо /usr/lib
Как бы это исправить?

.

нужно смотреть в момент пересборки питона ( emerge python 2>&1 | tee /tmp/python.log )
на строки типа --prefix и --exec-prefix
и увидеть, откуда они берутся. В ebuild-ы тоже заглянуть полезно.
Кратко: "найти --prefix и --exec-prefix и, если надо, подправить"
Перед правкой жОстко погуглить на тему, правил ли кто-то раньше,
и на какие подводные камни наткнулся
(ведь для Gentoo пакет python поважнее, чем в других дистрибах, AFAIK)

продолжаем разговор

После некоторого шаманства, получил

comp ~ # python sip.py | grep lib
/usr/lib/python25.zip
/usr/lib/python2.5
/usr/lib/python2.5/plat-linux2
/usr/lib/python2.5/lib-tk
/usr/lib/python2.5/lib-dynload
/usr/lib/portage/pym
/usr/lib/python2.5/site-packages
/usr/lib/python2.5/site-packages/gst-0.10
/usr/lib/python2.5/site-packages/gtk-2.0
/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode

Теперь сборка пакетов умирает подальше

>>> Emerging (1 of 3) dev-python/pykde-3.16.0-r1
* PyKDE-3.16.0.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking PyKDE-3.16.0.tar.gz to /mnt/FILE/tmp/portage/portage/dev-python/py
kde-3.16.0-r1/work
* Applying PyKDE-3.16.0-sip-4.7.patch ... [ ok ]
>>> Source unpacked.
>>> Compiling source in /mnt/FILE/tmp/portage/portage/dev-python/pykde-3.16.0-r1
/work/PyKDE-3.16.0 ...

PyKDE version 3.16.0
-------

Python include directory is /usr/include/python2.5
Python version is 2.5.2

sip version is 4.7.9 (4.7.9)

Qt directory is /usr/qt/3
Qt version is 3.3.8

PyQt directory is /usr/share/sip
PyQt version is 3.17.4 (3.17.4)

gcc version 4.1.2
no concatenation

KDE base directory is /usr/kde/3.5
KDE include directory is /usr/kde/3.5/include
KDE lib directory is /usr/kde/3.5/lib
lib directory is lib

*** True KDE version is 0x30509 -- building for KDE 0x30503 ***

KDE version is 3.5.3 (0x30503)

PyKDE modules will be installed in /usr/lib/python2.5/site-packages
PyKDE .sip files will be installed in /usr/share/sip

PyKDE modules to be built:
dcop kdecore kdefx kdeui kio kresources kabc kutils kfile kparts khtml kspell kdeprint kmdi

Generating the C++ source for the dcop module...
sip: QApplication has ctors with the same Python signature
Error: Unable to create the C++ code.

If reporting errors, paste all of the output above into your
message and post to the PyKDE mailing list at:

mailto:

subscribe: http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

You can redirect the output into a file (> output.txt) if needed

make -j3
make: *** Не заданы цели и не найден make-файл. Останов.
*
* ERROR: dev-python/pykde-3.16.0-r1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2386: Called die
* The specific snippet of code:
* emake || die "emake install failed"
* The die message:
* emake install failed

>>> Emerging (1 of 1) dev-python/PyQt-3.17.4
* PyQt-x11-gpl-3.17.4.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking PyQt-x11-gpl-3.17.4.tar.gz to /mnt/FILE/tmp/portage/portage/dev-python/PyQt-3.17.4/work
>>> Source unpacked.
>>> Compiling source in /mnt/FILE/tmp/portage/portage/dev-python/PyQt-3.17.4/work/PyQt-x11-gpl-3.17.4 ...
qextscintillaglobal.h could not be found in /usr/include and so the qtext
module will not be built. If QScintilla is installed then use the -n argument
to explicitly specify the correct directory.
Checking to see if the qtcanvas module should be built...
Checking to see if the qtnetwork module should be built...
Checking to see if the qttable module should be built...
Checking to see if the qtxml module should be built...
Checking to see if the qtgl module should be built...
Checking to see if the qtui module should be built...
Checking to see if the qtsql module should be built...
Checking to see if the QAssistantClient class is available...
Creating features file...
Checking to see if the QCDEStyle class is built in...
Checking to see if the QInterlaceStyle class is built in...
cfgtest.cpp: In function ‘int main(int, char**)’:
cfgtest.cpp:5: ошибка: expected type-specifier before ‘QInterlaceStyle’
cfgtest.cpp:5: ошибка: expected `;' before ‘QInterlaceStyle’
Checking to see if the QMotifStyle class is built in...
Checking to see if the QMotifPlusStyle class is built in...
Checking to see if the QPlatinumStyle class is built in...
Checking to see if the QSGIStyle class is built in...
Checking to see if the QWindowsXPStyle class is built in...
cfgtest.cpp:1:29: error: qwindowsxpstyle.h: Нет такого файла или каталога
cfgtest.cpp: In function ‘int main(int, char**)’:
cfgtest.cpp:5: ошибка: expected type-specifier before ‘QWindowsXPStyle’
cfgtest.cpp:5: ошибка: expected `;' before ‘QWindowsXPStyle’
Checking to see if the QWindowsStyle class is built in...
Qt v3.3.8 free edition is being used.
SIP 4.7.9 is being used.
These PyQt modules will be built: qt qtcanvas qtnetwork qttable qtxml qtgl qtui
qtsql.
Support for these Qt classes has been disabled: QInterlaceStyle
QWindowsXPStyle.
The PyQt modules will be installed in /usr/lib/python2.5/site-packages.
The PyQt .sip files will be installed in /usr/share/sip.
The Qt header files are in /usr/qt/3/include.
The qt-mt Qt library is in /usr/qt/3/lib.
pyuic will be installed in /usr/bin.
pylupdate will be installed in /usr/bin.
Generating the C++ source for the qt module...
sip: QApplication has ctors with the same Python signature
Error: Unable to create the C++ code.
make -j3
make: *** Не заданы цели и не найден make-файл. Останов.
*
* ERROR: dev-python/PyQt-3.17.4 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2375: Called die
* The specific snippet of code:
* emake || die "emake failed"
* The die message:
* emake failed

Как бы это побороть?

.

Во-первых, строка "QApplication has ctors with the same Python signature"
в гугле даёт первую же ссылку с ответами:
http://bugs.gentoo.org/show_bug.cgi?id=248044
ответов там несколько - не поможет один, попробуй другой

Во-вторых, тема "После некоторого шаманства" не раскрыта:
представь, что гентушник с той же проблемой найдёт этот топик,
и вместо ответа прочитает, что нужно немного "пошаманить" :-(

.

Да, строчку гугла нашел. А шаманство заключалось в удалении фалйика /usr/local/bin/python
Видимо решения пока нет
http://bugs.gentoo.org/show_bug.cgi?id=249874

solved

Обновился

питон обновил? да какой

питон обновил? да какой версии?

Настройки просмотра комментариев

Выберите нужный метод показа комментариев и нажмите "Сохранить установки".