ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Сборка system-config-printer для p5
@ 2010-06-11 13:10 Денис Корявов
  2010-06-11 14:26 ` Alexey Tourbin
  0 siblings, 1 reply; 4+ messages in thread
From: Денис Корявов @ 2010-06-11 13:10 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Всем привет,

Пытаюсь собрать system-config-printer для p5, собрал все необходимые
пакеты, но при сборке system-config-printer'a findreq падает с
ошибкой:

python.req: ERROR:
/usr/src/tmp/system-config-printer-buildroot/usr/share/system-config-printer/asyncpk1.py:
invalid syntax (line 82)
Traceback (most recent call last):
  File "/usr/lib/rpm/python.req.py", line 199, in <module>
    lis = parser.suite('\n'.join(lines)+'\n').tolist(line_info=1)
  File "<string>", line 82
    reply_handler=self._pk_reply_handler,
                      ^
SyntaxError: invalid syntax
find-requires: ERROR: /usr/lib/rpm/python.req failed
error: /bin/sh failed
error: Failed to find Requires

Никто не подскажет в чем может быть проблема? Я что-то никак не пойму.
Спасибо.

-- 
WBR, Denis Koryavov.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel] Сборка system-config-printer для p5
  2010-06-11 13:10 [devel] Сборка system-config-printer для p5 Денис Корявов
@ 2010-06-11 14:26 ` Alexey Tourbin
  2010-06-11 14:38   ` Andrey Rahmatullin
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Tourbin @ 2010-06-11 14:26 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- Attachment #1: Type: text/plain, Size: 1919 bytes --]

On Fri, Jun 11, 2010 at 05:10:24PM +0400, Денис Корявов wrote:
> Всем привет,
> 
> Пытаюсь собрать system-config-printer для p5, собрал все необходимые
> пакеты, но при сборке system-config-printer'a findreq падает с
> ошибкой:
> 
> python.req: ERROR:
> /usr/src/tmp/system-config-printer-buildroot/usr/share/system-config-printer/asyncpk1.py:
> invalid syntax (line 82)
> Traceback (most recent call last):
>   File "/usr/lib/rpm/python.req.py", line 199, in <module>
>     lis = parser.suite('\n'.join(lines)+'\n').tolist(line_info=1)
>   File "<string>", line 82
>     reply_handler=self._pk_reply_handler,
>                       ^
> SyntaxError: invalid syntax
> find-requires: ERROR: /usr/lib/rpm/python.req failed
> error: /bin/sh failed
> error: Failed to find Requires

Indeed.
http://git.altlinux.org/tasks/25598/task/log

> Никто не подскажет в чем может быть проблема? Я что-то никак не пойму.
> Спасибо.

Note that p5 has python-2.5, and sisyphus has python-2.6.
Also, note that the problem is not specific to find-requires -
the interpreter itself fails to parse the file as well.

[builder@apiary system-config-printer-1.1.17]$ rpm -q python-base
python-base-2.5.4-alt7
[builder@apiary system-config-printer-1.1.17]$ python ./asyncpk1.py
  File "./asyncpk1.py", line 78
    reply_handler=self._pk_reply_handler,
                ^
SyntaxError: invalid syntax
[builder@apiary system-config-printer-1.1.17]$ 

Just for the record, here's the piece of code:
    76          try:
    77              pk_method (*self._pk_args,
    78                          reply_handler=self._pk_reply_handler,
    79                          error_handler=self._pk_error_handler,
    80                          timeout=3600)
    81          except TypeError, e:
    82              debugprint ("Type error in PK call: %s" % e)
    83              self.call_fallback_fn ()

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel] Сборка system-config-printer для p5
  2010-06-11 14:26 ` Alexey Tourbin
@ 2010-06-11 14:38   ` Andrey Rahmatullin
  2010-06-15  6:47     ` Денис Корявов
  0 siblings, 1 reply; 4+ messages in thread
From: Andrey Rahmatullin @ 2010-06-11 14:38 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 916 bytes --]

On Fri, Jun 11, 2010 at 06:26:04PM +0400, Alexey Tourbin wrote:
> Note that p5 has python-2.5, and sisyphus has python-2.6.

>     reply_handler=self._pk_reply_handler,
>                 ^
> SyntaxError: invalid syntax

>     77              pk_method (*self._pk_args,
>     78                          reply_handler=self._pk_reply_handler,
>     79                          error_handler=self._pk_error_handler,
>     80                          timeout=3600)

http://docs.python.org/whatsnew/2.6.html#other-language-changes
It's also become legal to provide keyword arguments after a *args
argument to a function call.

Решение: переместить *self._pk_args в конец списка аргументов.


-- 
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(6):

<evyscr> О! Кто задавался вопросами минимизации трафика при использовании git?
<roman> evyscr: у меня минимально - не пользуюсь вообще

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [devel] Сборка system-config-printer для p5
  2010-06-11 14:38   ` Andrey Rahmatullin
@ 2010-06-15  6:47     ` Денис Корявов
  0 siblings, 0 replies; 4+ messages in thread
From: Денис Корявов @ 2010-06-15  6:47 UTC (permalink / raw)
  To: ALT Linux Team development discussions

11 июня 2010 г. 18:38 пользователь Andrey Rahmatullin
<wrar@altlinux.org> написал:
> Решение: переместить *self._pk_args в конец списка аргументов.

Работает. Спасибо!

-- 
WBR, Denis Koryavov.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-15  6:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-11 13:10 [devel] Сборка system-config-printer для p5 Денис Корявов
2010-06-11 14:26 ` Alexey Tourbin
2010-06-11 14:38   ` Andrey Rahmatullin
2010-06-15  6:47     ` Денис Корявов

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