[issue12427] packaging register fails because "POST data should be bytes"
Vinay Sajip
report at bugs.python.org
Tue Jun 28 11:14:10 CEST 2011
New submission from Vinay Sajip <vinay_sajip at yahoo.co.uk>:
vinay at eta-natty:~/projects/nemo$ pysetup3 run register
running register
Registering nemo to http://pypi.python.org/pypi
Traceback (most recent call last):
File "/usr/local/bin/pysetup3", line 4, in <module>
sys.exit(main())
File "/usr/local/lib/python3.3/packaging/run.py", line 678, in main
return dispatcher()
File "/usr/local/lib/python3.3/packaging/run.py", line 667, in __call__
return func(self, self.args)
File "/usr/local/lib/python3.3/packaging/run.py", line 204, in wrapper
return f(*args, **kwargs)
File "/usr/local/lib/python3.3/packaging/run.py", line 344, in _run
dist.run_command(cmd, dispatcher.command_options[cmd])
File "/usr/local/lib/python3.3/packaging/dist.py", line 761, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.3/packaging/command/register.py", line 63, in run
self.send_metadata()
File "/usr/local/lib/python3.3/packaging/command/register.py", line 167, in send_metadata
auth)
File "/usr/local/lib/python3.3/packaging/command/register.py", line 267, in post_to_server
result = opener.open(req)
File "/usr/local/lib/python3.3/urllib/request.py", line 367, in open
req = meth(req)
File "/usr/local/lib/python3.3/urllib/request.py", line 1075, in do_request_
raise TypeError("POST data should be bytes"
TypeError: POST data should be bytes or an iterable of bytes. It cannot be str.
vinay at eta-natty:~/projects/nemo$
----------
assignee: tarek
components: Distutils2, Library (Lib)
messages: 139352
nosy: alexis, eric.araujo, tarek, vinay.sajip
priority: high
severity: normal
status: open
title: packaging register fails because "POST data should be bytes"
type: behavior
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12427>
_______________________________________
More information about the Python-bugs-list
mailing list