ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Python 3: unicode error
@ 2012-07-10  4:40 REAL
  2012-07-10  5:22 ` Ildar Mulyukov
  0 siblings, 1 reply; 4+ messages in thread
From: REAL @ 2012-07-10  4:40 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Привет!

Что-то изменилось в Python 3 по сравнению с Python 2, как вылечить вот 
такое?

File 
"/usr/src/tmp/python-module-pygraphviz-buildroot/usr/lib64/python3.2/site-packages/pygraphviz/agraph.py", 
line 1740
     default='\N'
                ^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes 
in position 0-1: malformed \N character escape

-- 

REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ



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

* Re: [devel] Python 3: unicode error
  2012-07-10  4:40 [devel] Python 3: unicode error REAL
@ 2012-07-10  5:22 ` Ildar Mulyukov
  2012-07-10  5:30   ` REAL
  0 siblings, 1 reply; 4+ messages in thread
From: Ildar Mulyukov @ 2012-07-10  5:22 UTC (permalink / raw)
  To: devel

On 10.07.2012 10:40:11, REAL wrote:
> Привет!
> 
> Что-то изменилось в Python 3 по сравнению с Python 2, как вылечить  
> вот такое?
> 
> File  
> "/usr/src/tmp/python-module-pygraphviz-buildroot/usr/lib64/python3.2/site-packages/pygraphviz/agraph.py",  
> line 1740
>     default='\N'
>                ^
> SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes  
> in position 0-1: malformed \N character escape

двойную обратную косую пробовали?
-- 
Ildar

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

* Re: [devel] Python 3: unicode error
  2012-07-10  5:22 ` Ildar Mulyukov
@ 2012-07-10  5:30   ` REAL
  2012-07-11  3:57     ` Ivan A. Melnikov
  0 siblings, 1 reply; 4+ messages in thread
From: REAL @ 2012-07-10  5:30 UTC (permalink / raw)
  To: ALT Linux Team development discussions

10.07.2012 12:22, Ildar Mulyukov пишет:
>> default='\N'
>> ^
>> SyntaxError: (unicode error) 'unicodeescape' codec can't decode
>> bytes in position 0-1: malformed \N character escape
>
> двойную обратную косую пробовали?

Сначала бы понять, что означает это \N ... Вдруг какая-то 
esc-конструкция, которая в новом питоне упразднена (вот только чем 
заменена)?

-- 

REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ



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

* Re: [devel] Python 3: unicode error
  2012-07-10  5:30   ` REAL
@ 2012-07-11  3:57     ` Ivan A. Melnikov
  0 siblings, 0 replies; 4+ messages in thread
From: Ivan A. Melnikov @ 2012-07-11  3:57 UTC (permalink / raw)
  To: devel

On Tue, 10 Jul 2012 12:30:42 +0700
REAL <real@kemsu.ru> wrote:

> 10.07.2012 12:22, Ildar Mulyukov пишет:
> >> default='\N'
> >> ^
> >> SyntaxError: (unicode error) 'unicodeescape' codec can't decode
> >> bytes in position 0-1: malformed \N character escape
> >
> > двойную обратную косую пробовали?
> 
> Сначала бы понять, что означает это \N ... Вдруг какая-то 
> esc-конструкция, которая в новом питоне упразднена (вот только чем 
> заменена)?
> 

Это вряд ли, если только авторы не ошиблись регистром:

$ python2
Python 2.7.3 (default, Apr 19 2012, 11:28:12) 
[GCC 4.5.3 20120403 (ALT Linux 4.5.3-alt3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> '\N'
'\\N'

-- 
WBR,
Ivan A. Melnikov


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

end of thread, other threads:[~2012-07-11  3:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-10  4:40 [devel] Python 3: unicode error REAL
2012-07-10  5:22 ` Ildar Mulyukov
2012-07-10  5:30   ` REAL
2012-07-11  3:57     ` Ivan A. Melnikov

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