#πŸ”’ python package authentication nonexistent

48 messages Β· Page 1 of 1 (latest)

fallow goblet
#

I'm using github to deploy my python package but im having a publishing error telling me that my pypi token is non existent

mild onyxBOT
#

@fallow goblet

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

fallow goblet
analog salmon
#

did u get the pypi upload token and if so did u add it to the secrets section of repo settings for workflows?

nova juniper
#
  1. Ensure that your API Token is valid and has not been revoked.
  2. Ensure that your API Token is properly formatted and does not contain any trailing characters such as newlines.
  3. Ensure that the username you are using is __token__.

Remember that PyPI and TestPyPI each require you to create an account, so your credentials may be different.

If you're using Windows and trying to paste your token in the Command Prompt or PowerShell, note that Ctrl-V and Shift+Insert won't work. Instead, you can use "Edit > Paste" from the window menu, or enable "Use Ctrl+Shift+C/V as Copy/Paste" in "Properties". This is a known issue with Python's getpass module.

analog salmon
nova juniper
#

because you are parsing in an api token

#

(& that's what pypi wants you to do)

analog salmon
#

pypi just needs the token afaik no username

nova juniper
#

i copied that directly from pypi's docs

analog salmon
#

hmm

nova juniper
#

CB_shrug i'm just saying what the docs say

analog salmon
#

fair

fallow goblet
#

i think i put it in the right place but i dont really know

analog salmon
#

are u using the same name in your action also?

fallow goblet
fallow goblet
analog salmon
#

yes

fallow goblet
#

one second

analog salmon
#

${{ secrets.BYFRON }}

fallow goblet
analog salmon
#
    - name: Publish package
      uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
      with:
        password: ${{ secrets.BYFRON }}
#

user is not needed

analog salmon
#

wrong identation

fallow goblet
analog salmon
#

remove user: __token__

fallow goblet
#

ok

#

can i pay you for you to do it @analog salmon

analog salmon
#

!rule paid

mild onyxBOT
#

9. Do not offer or ask for paid work of any kind.

analog salmon
#

is ur token a valid pypi token?

#

hmm the code is obfuscated dosent seem like a good sign

#

@marsh loom

fallow goblet
analog salmon
#

with streaming across sockets?

#

eitherways just make sure u have the correct pypi token regarding ur package from pypi

fallow goblet
analog salmon
#

yep

#

action then repository secret

mild onyxBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.