Comment 2 for bug 152811

Revision history for this message
Marius Kruger (amanica) wrote :

One of my colleagues got the same error when trying to remove a binary file.
It seems to be the same problem.

Note that both are runing python 2.4.
Do we have any unit tests for removing a binary file?
I'm pretty sure we have tests for removing directories though.
Is PQM running python 2.5?

==
bzr: ERROR: exceptions.TypeError: expected string or buffer

Traceback (most recent call last):
 File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 800, in run_bzr_catch_errors
   return run_bzr(argv)
 File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 758, in run_bzr
   ret = run(*run_argv)
 File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
   return self.run(**all_cmd_args)
 File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 1121, in run
   force=file_deletion_strategy=='force')
 File "/usr/lib/python2.4/site-packages/bzrlib/mutabletree.py", line 50, in tree_write_locked
   return unbound(self, *args, **kwargs)
 File "/usr/lib/python2.4/site-packages/bzrlib/workingtree.py", line 1847, in remove
   if not self.is_ignored(path[1]) and (
 File "/usr/lib/python2.4/site-packages/bzrlib/workingtree.py", line 1604, in is_ignored
   return self._ignoreglobster.match(filename)
 File "/usr/lib/python2.4/site-packages/bzrlib/globbing.py", line 213, in match
   match = regex.match(filename)
TypeError: expected string or buffer

bzr 0.91.0 on python 2.4.3.final.0 (linux2)
arguments: ['/usr/local/bin/bzr', 'remove', 'src/za/co/enerweb/enerbench/client/images/action/back.gif', 'src/za/co/enerweb/enerbench/client/images/action/fastforward.gif', 'src/za/co/enerweb/enerbench/client/images/action/find.gif', 'src/za/co/enerweb/enerbench/client/images/action/forward.gif', 'src/za/co/enerweb/enerbench/client/images/action/rewind.gif']

** please send this report to <email address hidden>