There is no bzrlib.user_encoding

Bug #434998 reported by Neil Martinsen-Burrell
48
This bug affects 10 people
Affects Status Importance Assigned to Milestone
bzr-xmloutput
High
Guillermo Gonzalez

Bug Description

Trying to run bzr-xmloutput with the latest bzr.dev (r4708) gives the following traceback, due to a mis-accessing of the user_encoding:

nmb@guttle[~/src/bzr/bzr-xmloutput]$ bzr xmlversion [09-09-22 21:28]
bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute 'user_encoding'

Traceback (most recent call last):
  File "/Users/nmb/src/bzr/bzr.dev/bzrlib/commands.py", line 842, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Users/nmb/src/bzr/bzr.dev/bzrlib/commands.py", line 1037, in run_bzr
    ret = run(*run_argv)
  File "/Users/nmb/src/bzr/bzr.dev/bzrlib/commands.py", line 654, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Users/nmb/src/bzr/bzr.dev/bzrlib/commands.py", line 1052, in ignore_pipe
    result = func(*args, **kwargs)
  File "/Users/nmb/.bazaar/plugins/xmloutput/xml_errors.py", line 70, in xml_error_handling
    exitcode = report_exception(sys.exc_info(), sys.stderr)
  File "/Users/nmb/.bazaar/plugins/xmloutput/xml_errors.py", line 57, in report_exception
    err_file.write(str(XMLError(exc_object)))
  File "/Users/nmb/.bazaar/plugins/xmloutput/xml_errors.py", line 23, in __str__
    xml = '<?xml version="1.0" encoding="%s"?>' % bzrlib.user_encoding
  File "/Users/nmb/src/bzr/bzr.dev/bzrlib/lazy_import.py", line 109, in __getattribute__
    return getattr(obj, attr)
AttributeError: 'module' object has no attribute 'user_encoding'

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Thanks for reporting this issue.

I'll fix this ASAP.

Changed in bzr-xmloutput:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Guillermo Gonzalez (verterok)
Changed in bzr-xmloutput:
status: Confirmed → Fix Committed
Changed in bzr-xmloutput:
milestone: none → 0.8.6
Changed in bzr-xmloutput:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers