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 On Tue, May 24, 2016 at 1:13 PM, Luís de Sousa <luis.de.so...@protonmail.ch> wrote: > Hi there Ian. Twine is also failling, apparently it can not find setup > tools, please check the log below. > > Cheers. > > $ twine upload dist/hex-utils-0.2.sdist > Traceback (most recent call last): > File "/usr/bin/twine", line 9, in <module> > load_entry_point('twine==1.5.0', 'console_scripts', 'twine')() > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, > in load_entry_point > return get_distribution(dist).load_entry_point(group, name) > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line > 2569, in load_entry_point > return ep.load() > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line > 2229, in load > return self.resolve() > File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line > 2235, in resolve > module = __import__(self.module_name, fromlist=['__name__'], level=0) > File "/usr/lib/python3/dist-packages/twine/__main__.py", line 20, in > <module> > from twine.cli import dispatch > File "/usr/lib/python3/dist-packages/twine/cli.py", line 19, in <module> > import setuptools > ImportError: No module named 'setuptools' > > $ pip install setuptoolsRequirement already satisfied (use --upgrade to > upgrade): setuptools in /usr/lib/python2.7/dist-packages > > $ dpkg -l | grep setuptools > ii python-setuptools 20.7.0-1 all Python Distutils Enhancements > > > > -------- Original Message -------- > Subject: Re: [Distutils] PyPi upload fails with TypeError > Local Time: 20 May 2016 8:22 PM > UTC Time: 20 May 2016 18:22 > From: graffatcolmin...@gmail.com > To: berker.pek...@gmail.com > CC: luis.de.so...@protonmail.ch,Distutils-Sig@python.org > > 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. > > _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig