Opened 12 years ago

Last modified 11 years ago

#3314 new defect

POTgenerator problem with pydebug

Reported by: cjl Owned by: ghunt
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: PyDebug Version: Unspecified
Severity: Unspecified Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

The potgenerator corn job is detecting some sort fo effor at line 205 of /IPython/core/inputsplitter.py

http://git.sugarlabs.org/pydebug/mainline/blobs/master/IPython/core/inputsplitter.py#line205

####### Checking POT for pydebug (master) ######

Already up-to-date.
xgettext: Non-ASCII string at IPython/core/inputsplitter.py:205.

Please specify the source encoding through --from-code.

ERROR - xgettext failed with return code 1.

200 # The compiler module does not like unicode. We need to convert
201 # it encode it:
202 if isinstance(python, unicode):
203 # Use the utf-8-sig BOM so the compiler detects this a UTF-8
204 # encode string.
205 python = '\xef\xbb\xbf' + python.encode('utf-8')

Change History (6)

comment:1 Changed 12 years ago by cjl

Can someone from the Activity Team look at this bug please?

comment:2 Changed 12 years ago by walter

adding
# -*- coding: utf-8 -*-
to the top of the file should be enough to inform potgenerator of everything it needs.

comment:3 Changed 12 years ago by walter

Just to be clear, I meant, adding to the top of IPython_core_inputsplitter.py

comment:4 Changed 12 years ago by cjl

Ok, waiting for merge request to be accepted by maintainer of PyDebug.

http://git.sugarlabs.org/pydebug/mainline/merge_requests

comment:5 Changed 12 years ago by cjl

Now we are seeing a similar (but different) error.

xgettext: Non-ASCII string at IPython/external/configobj.py:40.

Please specify the source encoding through --from-code.

ERROR - xgettext failed with return code 1.

Georgem would you consider making the addition to IPython/external/configobj.py ?

comment:6 Changed 11 years ago by cjl

This is the latest set of errors being thrown by pydebug:

###### Checking POT for pydebug (master) ######

IPython/external/argparse.py:1047: warning: 'msgid' format string with unnamed arguments cannot be properly localized:
The translator cannot reorder the arguments.
Please consider using a format string with named arguments, and a mapping instead of a tuple for the arguments.

IPython/external/argparse.py:1962: warning: 'msgid' format string with unnamed arguments cannot be properly localized:
The translator cannot reorder the arguments.
Please consider using a format string with named arguments, and a mapping instead of a tuple for the arguments.

IPython/external/argparse.py:2127: warning: 'msgid' format string with unnamed arguments cannot be properly localized:
The translator cannot reorder the arguments.
Please consider using a format string with named arguments, and a mapping instead of a tuple for the arguments.

IPython/external/argparse.py:2137: warning: 'msgid' format string with unnamed arguments cannot be properly localized:
The translator cannot reorder the arguments.
Please consider using a format string with named arguments, and a mapping instead of a tuple for the arguments.

IPython/external/argparse.py:2216: warning: 'msgid' format string with unnamed arguments cannot be properly localized:
The translator cannot reorder the arguments.
Please consider using a format string with named arguments,and a mapping instead of a tuple for the arguments.

xgettext: Non-ASCII string at IPython/external/configobj.py:40.

Please specify the source encoding through --from-code.

ERROR - xgettext failed with return code 1.

I'm going to open this up as a GCI task and request a patch submitted here.

Note: See TracTickets for help on using tickets.