-
Notifications
You must be signed in to change notification settings - Fork 145
Closed
Description
Running in a python 3.3 virtualenv environ, with 0.4.0 installed from pip/pypi. It throws a TypeError if invoked with --help
~/dev$ bumpversion --help
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "./bumpversion/__init__.py", line 580, in main
args = parser3.parse_args(remaining_argv + positionals)
File "/usr/lib/python3.3/argparse.py", line 1714, in parse_args
args, argv = self.parse_known_args(args, namespace)
File "/usr/lib/python3.3/argparse.py", line 1746, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
File "/usr/lib/python3.3/argparse.py", line 1952, in _parse_known_args
start_index = consume_optional(start_index)
File "/usr/lib/python3.3/argparse.py", line 1892, in consume_optional
take_action(action, args, option_string)
File "/usr/lib/python3.3/argparse.py", line 1820, in take_action
action(self, namespace, argument_values, option_string)
File "/usr/lib/python3.3/argparse.py", line 1024, in __call__
parser.print_help()
File "/usr/lib/python3.3/argparse.py", line 2348, in print_help
self._print_message(self.format_help(), file)
File "/usr/lib/python3.3/argparse.py", line 2354, in _print_message
file.write(message)
File "/usr/lib/python3.3/codecs.py", line 356, in write
self.stream.write(data)
TypeError: must be str, not bytes
Same is true if I clone the repo and invoke directly
~/dev$ git clone -q https://github.com/peritus/bumpversion.git && cd bumpversion
~/dev/bumpversion (master)$ python3 -c 'import bumpversion;bumpversion.main()' --help
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "./bumpversion/__init__.py", line 580, in main
args = parser3.parse_args(remaining_argv + positionals)
File "/usr/lib/python3.3/argparse.py", line 1714, in parse_args
args, argv = self.parse_known_args(args, namespace)
File "/usr/lib/python3.3/argparse.py", line 1746, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
File "/usr/lib/python3.3/argparse.py", line 1952, in _parse_known_args
start_index = consume_optional(start_index)
File "/usr/lib/python3.3/argparse.py", line 1892, in consume_optional
take_action(action, args, option_string)
File "/usr/lib/python3.3/argparse.py", line 1820, in take_action
action(self, namespace, argument_values, option_string)
File "/usr/lib/python3.3/argparse.py", line 1024, in __call__
parser.print_help()
File "/usr/lib/python3.3/argparse.py", line 2348, in print_help
self._print_message(self.format_help(), file)
File "/usr/lib/python3.3/argparse.py", line 2354, in _print_message
file.write(message)
File "/home/alan/env/dev/lib/python3.3/codecs.py", line 356, in write
self.stream.write(data)
TypeError: must be str, not bytes
Metadata
Metadata
Assignees
Labels
No labels