ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Denis Klimov <zver@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] non-standard encoding: utf8
Date: Thu, 20 Dec 2007 13:14:35 +0500
Message-ID: <20071220131435.63769b70.zver@altlinux.org> (raw)
In-Reply-To: <20071220131053.7ce23d89.zver@altlinux.org>

On Thu, 20 Dec 2007 13:10:53 +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
> 
> в файл models.py была добавлена в начало строчка:
> # vim: set fileencoding=utf8 :
> 
> было подсмотрено по ссылке http://www.python.org/dev/peps/pep-0263/
> которая выдавалась при варнинге.
> 
> 
> Кто нибудь может посоветовать как это можно пофиксить?

Сорри, уже вместе с php-coder решил эту проблему.
необходимо было поменять на utf-8

--
Denis Klimov 
zver


  reply	other threads:[~2007-12-20  8:14 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 [this message]
2007-12-20 20:13 ` 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=20071220131435.63769b70.zver@altlinux.org \
    --to=zver@altlinux.org \
    --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