This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: packaging register fails because "POST data should be bytes"
Type: behavior Stage: resolved
Components: Distutils2, Library (Lib) Versions: Python 3.3
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: eric.araujo Nosy List: alexis, eric.araujo, tarek, vinay.sajip
Priority: high Keywords:

Created on 2011-06-28 09:14 by vinay.sajip, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg139352 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2011-06-28 09:14
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$
msg145233 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-10-09 07:40
Can’t reproduce.
History
Date User Action Args
2022-04-11 14:57:19adminsetgithub: 56636
2011-10-09 07:40:04eric.araujosetstatus: open -> closed
messages: + msg145233

assignee: tarek -> eric.araujo
resolution: out of date
stage: resolved
2011-06-28 09:14:09vinay.sajipcreate