From: Mikhail Zabaluev <mhz@altlinux.org>
To: devel@altlinux.ru
Subject: [devel] Re: Прога на python
Date: Fri, 28 Mar 2003 02:22:29 +0300
Message-ID: <20030327232229.GC2082@mhz.mikhail.zabaluev.name> (raw)
In-Reply-To: <200303271252.13240.ilar@altlinux.ru>
[-- Attachment #1: Type: text/plain, Size: 1300 bytes --]
Hello Igor,
On Thu, Mar 27, 2003 at 12:51:56PM +0200, Igor Tertishny wrote:
>
Content-Description: signed data
> Люди, выручайте! Собираю прогу на питоне и возникла странная ситуация. Пакет
> собран, инсталлирован. При попытке запуска утверждает, что отсутствует
> библиотека PyQT:
>
> [ilar@yby quickrip-0.3]$ quickrip
> Couldn't load PyQT module! Check it's installed
>
> Проверяю:
>
> [root@yby athlon]# rpm -q PyQT
> warning: package PyQT is not installed
> [root@yby athlon]# rpm -q PyQt
> PyQt-3.5-alt2
>
> разница в написании PyQT и PyQt. Но нужна программа sip, которая точно
> имеется. Ниже кусок файла на питоне, отвечающего за проверку:
>
> import sys, os, re
> try:
> from qt import *
> except:
> print "Couldn't load PyQT module! Check it's installed"
> sys.exit(2)
> try:
> from guimain import MainWindow
> from ripdvd import RipDVD
>
> Как видно, срабатывает именно блок except. Прошу подсказать, как мне обойти
> эту байду.
Проверить то же самое в консоли python и посмотреть, почему вылезает
исключение. Я подозреваю, что "from qt import *" -- это плохой метод
проверки _наличия_ модуля. Можно было просто сделать "import qt"
--
Stay tuned,
MhZ JID: mhz@altlinux.org
___________
Breeding rabbits is a hare raising experience.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-03-27 23:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-27 10:51 [devel] " Igor Tertishny
2003-03-27 23:22 ` Mikhail Zabaluev [this message]
2003-03-28 8:14 ` [devel] " Serge
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=20030327232229.GC2082@mhz.mikhail.zabaluev.name \
--to=mhz@altlinux.org \
--cc=devel@altlinux.ru \
/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