ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] non-standard encoding: utf8
Date: Thu, 20 Dec 2007 23:13:03 +0300
Message-ID: <20071220201303.GB17166@solemn.turbinal> (raw)
In-Reply-To: <20071220131053.7ce23d89.zver@altlinux.org>

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

On Thu, Dec 20, 2007 at 01:10:53PM +0500, Denis Klimov wrote:
> Приветствую. такая проблема с пакетированием проекта Django. после того как в файл
> models.py было добавлно определение кодировки, чтобы не было варнинга,
> пакет перестал собираться, выходит следующее: 
> 
> find-requires: running scripts (files,lib,pam,perl,pkgconfig,pkgconfiglib,python,shebang,shell,static,symlinks)
> /usr/lib/rpm/python.req.py: /usr/src/tmp/katrin-web-buildroot/var/www/html/addon-modules/katrin-web/manage.py: line=4 IGNORE module=settings
> /usr/lib/rpm/python.req.py: /usr/src/tmp/katrin-web-buildroot/var/www/html/addon-modules/katrin-web/manage.py: line=6 IGNORE module=sys
> python.req: /usr/src/tmp/katrin-web-buildroot/var/www/html/addon-modules/katrin-web/stats/models.py: non-standard encoding: utf8
> python.req: ERROR: /usr/src/tmp/katrin-web-buildroot/var/www/html/addon-modules/katrin-web/stats/models.py:
> Traceback (most recent call last):
>   File "/usr/lib/rpm/python.req.py", line 195, in ?
>     lis = parser.suite('\n'.join(lines)+'\n').tolist(line_info=1)
> MemoryError
> error: /bin/sh failed
> error: Failed to find Requires

Тут должны были сказать, что не хватает python-modules-encodings,
но почему-то не сказали.

> в файл models.py была добавлена в начало строчка:
> # vim: set fileencoding=utf8 :
> 
> было подсмотрено по ссылке http://www.python.org/dev/peps/pep-0263/
> которая выдавалась при варнинге.
> 
> Кто нибудь может посоветовать как это можно пофиксить?

Лучше писать utf-8 через чёрточку, а не слитно (тогда не потребуется
python-modules-encodings).

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

      parent reply	other threads:[~2007-12-20 20:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-20  8:10 Denis Klimov
2007-12-20  8:14 ` Denis Klimov
2007-12-20 20:13 ` Alexey Tourbin [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=20071220201303.GB17166@solemn.turbinal \
    --to=at@altlinux.ru \
    --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