ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Serge <ssv@altlinux.ru>
To: devel@altlinux.ru
Subject: Re: [devel] Re: Прога на python
Date: Fri, 28 Mar 2003 11:14:39 +0300
Message-ID: <20030328111439.76332f03.ssv@altlinux.ru> (raw)
In-Reply-To: <20030327232229.GC2082@mhz.mikhail.zabaluev.name>

On Fri, 28 Mar 2003 02:22:29 +0300
Mikhail Zabaluev <mhz@altlinux.org> wrote:

> 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"
Из python-doc:
'Now what happens when the user writes from Sound.Effects import *? Ideally, one would hope that this somehow goes out to the filesystem, finds which submodules are present in the package, and imports them all. Unfortunately, this operation does not work very well on Mac and Windows platform ...' 
Мы не в Mac и не Windows...

[serge@lin01 serge]$ rpm -q PyQt
PyQt-3.5-alt2
[serge@lin01 serge]$ python
Python 2.2.2 (#1, Nov  6 2002, 18:18:06) 
[GCC 3.2.1 20020903 (ALT Linux, build 3.2.1-alt0.4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from qt import *
>>> 
Никаких проблем ...
Попробуйте ещё eric запустить - если работает - ковыряйте этот самый subj....
> 
> -- 
> Stay tuned,
>   MhZ                                     JID: mhz@altlinux.org
> ___________
> Breeding rabbits is a hare raising experience.
> 


      reply	other threads:[~2003-03-28  8:14 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 ` [devel] " Mikhail Zabaluev
2003-03-28  8:14   ` Serge [this message]

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=20030328111439.76332f03.ssv@altlinux.ru \
    --to=ssv@altlinux.ru \
    --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