[Distutils] PyPi upload fails with TypeError

Luí­s de Sousa luis.de.sousa at protonmail.ch
Fri May 20 10:57:42 EDT 2016

Dear all,

I am trying to upload a new package to PyPi with this command:

$ python3 setup.py sdist upload

The process seems to go on well until the running upload bit, at which point I get this exception:

Traceback (most recent call last):
File "setup.py", line 33, in <module>
"Topic :: Scientific/Engineering :: GIS",
File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
File "/usr/lib/python3.4/distutils/command/upload.py", line 65, in run
self.upload_file(command, pyversion, filename)
File "/usr/lib/python3.4/distutils/command/upload.py", line 139, in upload_file
user_pass = (self.username + ":" + self.password).encode('ascii')
TypeError: Can't convert 'NoneType' object to str implicitly

I verified that Topic :: Scientific/Engineering :: GIS is a valid topic. What else am I missing?

Thank you,


Sent from [ProtonMail](https://protonmail.ch), encrypted email based in Switzerland.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20160520/3d509ddf/attachment.html>

More information about the Distutils-SIG mailing list