Non-ASCII character '\xc3' in file

Bug #332275 reported by Gioele Barabucci
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Fast Import
Fix Released
Undecided
Unassigned

Bug Description

I get the following error using bzr fast-export (using Python 2.5.2):

bzr: ERROR: exceptions.SyntaxError: Non-ASCII character '\xc3' in file /home/gioele/.bazaar/plugins/fastimport/bzr_exporter.py on line 17, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (bzr_exporter.py, line 17)

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 896, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 842, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 542, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/gioele/.bazaar/plugins/fastimport/__init__.py", line 395, in run
    from bzrlib.plugins.fastimport import bzr_exporter
  File "/home/gioele/.bazaar/plugins/fastimport/bzr_exporter.py", line 17
 SyntaxError: Non-ASCII character '\xc3' in file /home/gioele/.bazaar/plugins/fastimport/bzr_exporter.py on line 17, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details(bzr_exporter.py, line 17)

Revision history for this message
Teemu Likonen (dtw) wrote :

Yes. There must be "coding" header in the python source file. The attached patch fixes the issue.

Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

Teemu's patch applied in rev 128.

Changed in bzr-fastimport:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.