ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Anton Farygin <rider@altlinux.com>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] python encodings
Date: Sat, 17 Nov 2007 10:38:27 +0300
Message-ID: <473E9A73.2000300@altlinux.com> (raw)
In-Reply-To: <20071117050109.GJ31452@solemn.turbinal>

Alexey Tourbin пишет:
> On Sat, Nov 17, 2007 at 12:29:59AM +0300, Anton Farygin wrote:
>> Люди добрые, поможите кто чем может... что делать с этим MemoryError.
>>
>> x86_64, hasher, branch-4.0
>>
>> Error while parsing 
>> "/usr/src/tmp/mythplugins-buildroot/usr/share/mythtv/mythvideo/scripts/fetch_poster.py"
>> Traceback (most recent call last):
>>    File "/usr/lib/rpm/python.req.py", line 133, in ?
>>      lis = 
>> parser.suite(open(src).read().replace("\r\n","\n")).tolist(line_info=1)
>> MemoryError
>> error: /bin/sh failed
>> error: Failed to find Requires
> 
> http://google.com/codesearch?q=file%3afetch_poster.py
> 
> Там написано:
> # -*- coding: utf8 -*-
> 
> это является нестандартным обозначением кодировки, лучше писать
> # -*- coding: utf-8 -*-
> 
> тогда не потребуется разрешения алиаса через python-modules-encodings.

Мне кажется, что достаточно было бы вывести вменяемую диагностику. По 
крайней мере в моём случае.

> 
> Думаю, захачить на эту тему python-base или нет.  То есть чтобы он
> понимал побольше настандартных алиасов для стандартных кодировок,
> без заглядывания в encodings.

Если нестантартные алиасы являются стандартом де-факто (т.е. - 
значительно распространены), то видимо стоит хачить питон. В обратном 
случаае - выводить вменяемую диагностику и патчить приложения.


  reply	other threads:[~2007-11-17  7:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-16 21:29 [devel] help me! python.req! Anton Farygin
2007-11-16 21:46 ` Anton Farygin
2007-11-16 22:04 ` Alexey Tourbin
2007-11-16 22:04   ` Anton Farygin
2007-11-17  5:01 ` [devel] python encodings Alexey Tourbin
2007-11-17  7:38   ` Anton Farygin [this message]
2007-11-18  0:41     ` Alexey Tourbin
2007-11-18  1:52       ` Alexey Tourbin

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=473E9A73.2000300@altlinux.com \
    --to=rider@altlinux.com \
    --cc=devel@lists.altlinux.org \
    /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