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

Trouble following packaging libraries tutorial #355

Closed
ghost opened this issue May 12, 2020 · 10 comments
Closed

Trouble following packaging libraries tutorial #355

ghost opened this issue May 12, 2020 · 10 comments

Comments

@ghost
Copy link

ghost commented May 12, 2020

Thank you for providing feedback on Python packaging!

To help us help you, please fill out as much of the following as you can. If a question is not relevant, feel free to skip it.

  1. OS- Windows 10 Home, Version -10.0.18362 Build 18362

  2. Python 3.8.2

  3. pip 20.1

  4. https://packaging.python.org/guides/distributing-packages-using-setuptools/#create-an-account

  5. I followed this tutorial and created a packaging_tutorial folder with all the required files. However, when I tried to upload the file using the API token (as directed in the tutorial), it gave me an error saying 403 Client Error invalid or non-existent authentication information used. I even tried using it without the API token onto the actual pypi website and the test pypi website (i.e by manually filling in the actual username and password) I got the same error.

image

@merwok
Copy link

merwok commented May 13, 2020

Have you created an account and an API token on TestPyPI? No data is shared with real PyPI.

@ghost
Copy link
Author

ghost commented May 13, 2020

Have you created an account and an API token on TestPyPI? No data is shared with real PyPI.

Yes I created an account both in testpypi and pypi. I used the API token on testpypi

@merwok
Copy link

merwok commented May 13, 2020

Are you pasting the whole token including pypi- prefix?

@ghost
Copy link
Author

ghost commented May 14, 2020

Yes, I am

@ghost
Copy link
Author

ghost commented May 14, 2020

It's still showing the error

@merwok
Copy link

merwok commented May 14, 2020

Can you add --verbose to see more info?

@ghost
Copy link
Author

ghost commented May 14, 2020

image

@ghost
Copy link
Author

ghost commented May 14, 2020

I added it and the above message showed up

@merwok
Copy link

merwok commented May 15, 2020

Well you haven’t added it to the twine command, you wrote it by itself and that does not do anything 🙂

Type your whole twine command again, but add --verbose just after twine upload

@bhrutledge
Copy link
Contributor

@hchgee15 It looks like there's an issue with pasting passwords in Windows. I wrote up the details at pypa/twine#671 (comment). Can you read that, and confirm that one of the workarounds works for you?

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

No branches or pull requests

3 participants