[Distutils] PyPi upload fails with TypeError

Ian Cordasco graffatcolmingov at gmail.com
Fri May 20 14:22:02 EDT 2016


Until then, try using twine (https://github.com/pypa/twine). You'll
have to make your sdist with `python setup.py sdist` and then upload
it with `twine upload dist/mypackage.sdist`. But twine will prompt you
when it can't find a credential for you instead of proceeding onward
nobly.

On Fri, May 20, 2016 at 1:18 PM, Berker Peksağ <berker.peksag at gmail.com> wrote:
> On Fri, May 20, 2016 at 9:12 PM, Berker Peksağ <berker.peksag at gmail.com> wrote:
>> On Fri, May 20, 2016 at 9:00 PM, Luí­s de Sousa
>> <distutils-sig at python.org> wrote:
>>>
>>> The TypeError is about the *last* line in the traceback: One of
>>> `self.username' or 'self.password' is set to 'None'.
>>>
>>>
>>> That being the case, how can I correct the bug? Must I upgrade setuptools?
>>> Or some other package?
>>
>> Is there a .pypirc file in your $HOME directory? If there is one, can
>> you compare its content with the example at
>> https://docs.python.org/3/distutils/packageindex.html#pypirc ?
>
> There is an open issue about this on bugs.python.org:
> http://bugs.python.org/issue18454
>
> I will try to fix it at PyCon US sprints.
>
> --Berker
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig


More information about the Distutils-SIG mailing list