Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using upload with twine 1.4.0 #85

Closed
felipevolpone opened this issue Dec 28, 2014 · 11 comments · Fixed by #86
Closed

Error using upload with twine 1.4.0 #85

felipevolpone opened this issue Dec 28, 2014 · 11 comments · Fixed by #86

Comments

@felipevolpone
Copy link

I tried this command

$ twine upload dist/*

using twine 1.4.0 but I got this error:

$ twine upload dist/
usage: twine [-h] [--version] {}
twine: error: argument command: invalid choice: 'upload' (choose from )

@sigmavirus24
Copy link
Member

How did you install twine?

@sigmavirus24 sigmavirus24 added the incomplete Work in progress label Dec 29, 2014
@felipevolpone
Copy link
Author

$ pip install twine

I've installed the 1.3.0 version and everything worked well.

@sigmavirus24
Copy link
Member

@felipevolpone in a virtualenv? Globally as root? That does not give me enough information to help you

@sigmavirus24
Copy link
Member

May as well give me the version of pip too

@felipevolpone
Copy link
Author

Hey, I'm just trying to help the project.
I ran as root, using $sudo pip install twine. My version of pip is: pip 1.5.6 from /Library/Python/2.7/site-packages/pip-1.5.6-py2.7.egg (python 2.7), and I'm not using virtualenv.

@sigmavirus24
Copy link
Member

One last question, can you do python -c 'import setuptools; print(setuptools.__version__)' please?

@felipevolpone
Copy link
Author

$ python -c 'import setuptools; print(setuptools.version)'

0.6c12

@sigmavirus24
Copy link
Member

I'll test with that version. For your information @felipevolpone setuptools is now up to v11. So that's a very old version. I'll see how twine behaves with it and if there's anything we can do to support it though.

@sigmavirus24 sigmavirus24 removed the incomplete Work in progress label Jan 4, 2015
@sigmavirus24
Copy link
Member

$ pip install --force-reinstall 'setuptools==0.6c12'
Downloading/unpacking setuptools==0.6c12
  Could not find a version that satisfies the requirement setuptools==0.6c12 (from versions: 0.9.8, 1.1.6, 1.2, 1.3, 1.3.1, 1.3.2, 1.4, 1.4.1, 1.4.2, 2.0, 2.1.2, 10.0, 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, 5.0.2, 5.0.2, 5.0, 5.0, 5.1, 5.1, 5.2, 5.2, 5.3, 5.3, 5.4.1, 5.4.1, 5.4.2, 5.4.2, 5.4, 5.4, 5.5.1, 5.5.1, 5.5, 5.5, 5.6, 5.6, 5.7, 5.7, 5.8, 5.8, 6.0.1, 6.0.1, 6.0.2, 6.0.2, 6.1, 6.1, 7.0, 7.0, 8.0.1, 8.0.1, 8.0.2, 8.0.2, 8.0.3, 8.0.3, 8.0.4, 8.0.4, 8.0, 8.0, 8.1, 8.1, 8.2.1, 8.2.1, 8.2, 8.2, 8.3, 8.3, 9.0.1, 9.0.1, 9.0, 9.0, 9.1, 9.1)
Cleaning up...
No distributions matching the version for setuptools==0.6c12

So I'll be testing with 0.6c11 then

@sigmavirus24
Copy link
Member

So I don't have the time (or interest) to test each version of setuptools but this seems to be something exclusive to the 0.6 series of setuptools. Upgrading to 0.7.x allows twine to operate perfectly.

Action items from this:

  • Add minimum version requirement on setuptools: setuptools>=0.7 to setup.py (since it is a run-time dependency)
  • Add setuptools version information to twine --version

sigmavirus24 added a commit to sigmavirus24/twine that referenced this issue Jan 4, 2015
Avoid 0.6 series of setuptools - pkg_resources is broken on those versions

Fixes pypa#85
@georgesamy
Copy link

I had this same issue, uninstalling as root and reinstalling as user did the trick for me
That is,
sudo pip uninstall twine
pip install --user twine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants