[Distutils] PyPi upload fails with TypeError

Chris Jerdonek chris.jerdonek at gmail.com
Wed Jun 1 16:03:03 EDT 2016


On Wed, Jun 1, 2016 at 10:10 AM, Luí­s de Sousa
<distutils-sig at python.org> wrote:
> $ twine upload dist/hex-utils-0.2.sdist
> Uploading distributions to https://pypi.python.org/pypi
> ValueError: Cannot find file (or expand pattern): 'dist/hex-utils-0.2.sdist'
>
> $ ls -la dist
> total 12
> drwxrwxrwx 1 root root  176 Jun  1 19:04 .
> drwxrwxrwx 1 root root 4096 Jun  1 19:04 ..
> -rwxrwxrwx 1 root root 6091 Jun  1 19:04 hex-utils-0.2.tar.gz

It looks like you are telling it "dist/hex-utils-0.2.sdist" but the
directory contains "hex-utils-0.2.tar.gz".

--Chris

>
>
>
> Sent from ProtonMail, encrypted email based in Switzerland.
>
>
> -------- Original Message --------
> Subject: Re: [Distutils] PyPi upload fails with TypeError
> Local Time: 24 May 2016 8:16 PM
> UTC Time: 24 May 2016 18:16
> From: graffatcolmingov at gmail.com
> To: luis.de.sousa at protonmail.ch
> CC: berker.peksag at gmail.com,Distutils-Sig at python.org
>
> Luis, it looks like you're running twine on Python 3 and setuptools is
> installed for Python 2. Try doing:
>
> python3 -m pip install setuptools
>
> or
>
> apt-get install -y python3-setuptools
>
>
>
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>


More information about the Distutils-SIG mailing list