[issue12427] packaging register fails because POST data should be bytes

2011-10-09 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Can’t reproduce.

--
assignee: tarek - eric.araujo
resolution:  - out of date
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12427
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12427] packaging register fails because POST data should be bytes

2011-06-28 Thread Vinay Sajip

New submission from Vinay Sajip vinay_sa...@yahoo.co.uk:

vinay@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@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 rep...@bugs.python.org
http://bugs.python.org/issue12427
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com