lettuce is incompatible with colorama 0.2.5 #328

Open
kaporzhu opened this Issue Feb 27, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@kaporzhu

colorama 0.2.4 works.
but colorama 0.2.5 failed.
error message as follows:

Given I access url "/admin/"

Traceback (most recent call last):
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\lettuce\registry.p
y", line 88, in call_hook
callback(_args, *_kw)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\lettuce\plugins\co
lored_shell_output.py", line 113, in print_step_ran
write_out("%s%s%s" % (prefix, color, string))
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\lettuce\plugins\co
lored_shell_output.py", line 55, in write_out
wrt(wp(what))
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\lettuce\plugins\co
lored_shell_output.py", line 32, in wrt
sys.stdout.write(what)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\colorama\ansitowin
32.py", line 34, in write
self.__convertor.write(text)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\colorama\ansitowin
32.py", line 115, in write
self.write_and_convert(text)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\colorama\ansitowin
32.py", line 140, in write_and_convert
self.convert_ansi(*match.groups())
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\colorama\ansitowin
32.py", line 154, in convert_ansi
self.call_win32(command, params)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\colorama\ansitowin
32.py", line 188, in call_win32
func(num_rows, on_stderr=self.on_stderr)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\colorama\winterm.p
y", line 95, in cursor_up
self.set_cursor_position(adjusted_position, on_stderr)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\colorama\winterm.p
y", line 85, in set_cursor_position
win32.SetConsoleCursorPosition(handle, position)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\colorama\win32.py"
, line 88, in SetConsoleCursorPosition
return windll.kernel32.SetConsoleCursorPosition(handle, adjusted_position)
ArgumentError: argument 2: <type 'exceptions.TypeError'>: wrong type

Died with argument 2: <type 'exceptions.TypeError'>: wrong type
Traceback (most recent call last):
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\lettuce__init__.p
y", line 165, in run
failfast=self.failfast))
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\lettuce\core.py",
line 1216, in run
scenarios_ran.extend(scenario.run(ignore_case, failfast=failfast))
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\lettuce\core.py",
line 726, in run
results.append(run_scenario(self, run_callbacks=True))
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\lettuce\core.py",
line 699, in run_scenario
all_steps, steps_passed, steps_failed, steps_undefined, reasons_to_fail = St
ep.run_all(self.steps, outline, run_callbacks, ignore_case, failfast=failfast)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\lettuce\core.py",
line 471, in run_all
call_hook('after_each', 'step', step)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\lettuce\registry.p
y", line 88, in call_hook
callback(_args, *_kw)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\lettuce\plugins\co
lored_shell_output.py", line 113, in print_step_ran
write_out("%s%s%s" % (prefix, color, string))
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\lettuce\plugins\co
lored_shell_output.py", line 55, in write_out
wrt(wp(what))
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\lettuce\plugins\co
lored_shell_output.py", line 32, in wrt
sys.stdout.write(what)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\colorama\ansitowin
32.py", line 34, in write
self.__convertor.write(text)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\colorama\ansitowin
32.py", line 115, in write
self.write_and_convert(text)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\colorama\ansitowin
32.py", line 140, in write_and_convert
self.convert_ansi(*match.groups())
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\colorama\ansitowin
32.py", line 154, in convert_ansi
self.call_win32(command, params)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\colorama\ansitowin
32.py", line 188, in call_win32
func(num_rows, on_stderr=self.on_stderr)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\colorama\winterm.p
y", line 95, in cursor_up
self.set_cursor_position(adjusted_position, on_stderr)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\colorama\winterm.p
y", line 85, in set_cursor_position
win32.SetConsoleCursorPosition(handle, position)
File "D:\projects\python\envs\aquasys-www\Lib\site-packages\colorama\win32.py"
, line 88, in SetConsoleCursorPosition
return windll.kernel32.SetConsoleCursorPosition(handle, adjusted_position)
ArgumentError: argument 2: <type 'exceptions.TypeError'>: wrong type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment