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 > lis = parser.suite('\n'.join(lines)+'\n').tolist(line_info=1) > File "", 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 ()