Importing deprecated method causes ImportError with bzr 2.5.0dev

Bug #911999 reported by Florian Rathgeber
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar Externals plugin
Fix Released
Undecided
Unassigned

Bug Description

The 'shlex_split_unicode' method in 'bzrlib.commands' used in bzr-externals is deprecated as of bzr 2.2.0 and has been removed in the recent development version of bzr, causing the plugin to crash with:

  bzr: ERROR: exceptions.ImportError: cannot import name shlex_split_unicode

The fix is simple: replace 'shlex_split_unicode' with 'cmdline.split' (also from 'bzrlib.commands').

Related branches

Changed in bzr-externals:
status: New → Fix Released
Revision history for this message
OB (y-cosey-n) wrote :

How do you do this? Where do you start?

bzr: ERROR: exceptions.ImportError: cannot import name shlex_split_unicode

The fix is simple: replace 'shlex_split_unicode' with 'cmdline.split' (also from 'bzrlib.commands').

Revision history for this message
OB (y-cosey-n) wrote :

Ok i read traceback and was able to find. It. Kill that question.

Revision history for this message
Florian Rathgeber (florian-rathgeber) wrote :

OB: Which revision of bzr-externals do you use? My fix was already merged in r49.

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.