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: Upload failed (403): Forbidden #9

Open
gerardsimons opened this issue Nov 18, 2019 · 6 comments
Open

error: Upload failed (403): Forbidden #9

gerardsimons opened this issue Nov 18, 2019 · 6 comments

Comments

@gerardsimons
Copy link
Collaborator

gerardsimons commented Nov 18, 2019

It looks like the method of uploading a python package is deprecated. This is what I get when I run

python setup.py sdist upload -r local

Submitting dist/<package>.tar.gz to https://<PROJECT>.appspot.com/
Upload failed (403): Forbidden
WARNING: Uploading via this command is deprecated
error: Upload failed (403): Forbidden

I redacted URL and package

So the config.json should have the hashed password and the ~/pypirc the unhashed one right?

@gerardsimons gerardsimons changed the title error: Upload failed error: Upload failed (403): Forbidden Nov 18, 2019
@gerardsimons
Copy link
Collaborator Author

BUMP: Anybody?

@javdrher
Copy link
Member

Hi @gerardsimons , its been a while since we last looked at this package, though we stil use it succesfully internally.

I checked for you, config.json should contain hashed, pypirc the unhashed password. What happens if you navigate to the URL with your browser and complete the HTTP auth?

@gerardsimons
Copy link
Collaborator Author

@javdrher Thanks ! Everything is fine when I do that. I am on MacOS with Python 3.7. Not sure if that matters

@javdrher
Copy link
Member

javdrher commented Dec 4, 2019

Last version we checked was 3.6, I wonder if the behavior changed ...

@gerardsimons
Copy link
Collaborator Author

I'll give it a try on 3.6 on different platform and report back to you

@gerardsimons
Copy link
Collaborator Author

gerardsimons commented Dec 7, 2019

Nope, getting the same thing on a Linux machine with Python 3.6.8. see lsb release, python3 --version and upload command outputs below. It looks like it might be a twine deprecation issue.

My pypirc looks like this

[distutils]
index-servers =
        gcp

[gcp]
repository=https://pypi-***.appspot.com
username=gerardsimons
password=***
gerardsimons@c3po ~/G/ship-comm> lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.2 LTS
Release:	18.04
Codename:	bionic
gerardsimons@c3po ~/G/ship-comm> python3 --version
Python 3.6.8
gerardsimons@c3po ~/G/ship-comm> python3 setup.py sdist upload -r gcp
running sdist
running egg_info
writing ship_comm.egg-info/PKG-INFO
writing dependency_links to ship_comm.egg-info/dependency_links.txt
writing entry points to ship_comm.egg-info/entry_points.txt
writing requirements to ship_comm.egg-info/requires.txt
writing top-level names to ship_comm.egg-info/top_level.txt
package init file 'ship_comm/static/__init__.py' not found (or not a regular file)
package init file 'ship_comm/templates/__init__.py' not found (or not a regular file)
reading manifest file 'ship_comm.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
writing manifest file 'ship_comm.egg-info/SOURCES.txt'
running check
warning: check: missing required meta-data: url

creating ship-comm-0.1.2
creating ship-comm-0.1.2/ship_comm
creating ship-comm-0.1.2/ship_comm.egg-info
creating ship-comm-0.1.2/ship_comm/static
creating ship-comm-0.1.2/ship_comm/static/css
creating ship-comm-0.1.2/ship_comm/static/img
creating ship-comm-0.1.2/ship_comm/templates
copying files to ship-comm-0.1.2...
copying MANIFEST.in -> ship-comm-0.1.2
copying README.md -> ship-comm-0.1.2
copying setup.py -> ship-comm-0.1.2
copying ship_comm/__init__.py -> ship-comm-0.1.2/ship_comm
copying ship_comm/app.py -> ship-comm-0.1.2/ship_comm
copying ship_comm/config.py -> ship-comm-0.1.2/ship_comm
copying ship_comm/database.py -> ship-comm-0.1.2/ship_comm
copying ship_comm/db_models.py -> ship-comm-0.1.2/ship_comm
copying ship_comm/devices.py -> ship-comm-0.1.2/ship_comm
copying ship_comm/replay.py -> ship-comm-0.1.2/ship_comm
copying ship_comm/router.py -> ship-comm-0.1.2/ship_comm
copying ship_comm.egg-info/PKG-INFO -> ship-comm-0.1.2/ship_comm.egg-info
copying ship_comm.egg-info/SOURCES.txt -> ship-comm-0.1.2/ship_comm.egg-info
copying ship_comm.egg-info/dependency_links.txt -> ship-comm-0.1.2/ship_comm.egg-info
copying ship_comm.egg-info/entry_points.txt -> ship-comm-0.1.2/ship_comm.egg-info
copying ship_comm.egg-info/requires.txt -> ship-comm-0.1.2/ship_comm.egg-info
copying ship_comm.egg-info/top_level.txt -> ship-comm-0.1.2/ship_comm.egg-info
copying ship_comm/static/css/main.css -> ship-comm-0.1.2/ship_comm/static/css
copying ship_comm/static/img/captain-ai-logo-small.png -> ship-comm-0.1.2/ship_comm/static/img
copying ship_comm/static/img/captain-ai-logo-square.png -> ship-comm-0.1.2/ship_comm/static/img
copying ship_comm/static/img/favicon.ico -> ship-comm-0.1.2/ship_comm/static/img
copying ship_comm/static/img/screenshot.png -> ship-comm-0.1.2/ship_comm/static/img
copying ship_comm/templates/devices.html -> ship-comm-0.1.2/ship_comm/templates
copying ship_comm/templates/home.html -> ship-comm-0.1.2/ship_comm/templates
copying ship_comm/templates/layout.html -> ship-comm-0.1.2/ship_comm/templates
copying ship_comm/templates/messages.html -> ship-comm-0.1.2/ship_comm/templates
copying ship_comm/templates/new_route.html -> ship-comm-0.1.2/ship_comm/templates
copying ship_comm/templates/new_serial.html -> ship-comm-0.1.2/ship_comm/templates
copying ship_comm/templates/new_udp.html -> ship-comm-0.1.2/ship_comm/templates
copying ship_comm/templates/routes.html -> ship-comm-0.1.2/ship_comm/templates
Writing ship-comm-0.1.2/setup.cfg
Creating tar archive
removing 'ship-comm-0.1.2' (and everything under it)
running upload
Submitting dist/ship-comm-0.1.2.tar.gz to https://pypi-***.appspot.com
Upload failed (403): Forbidden
WARNING: Uploading via this command is deprecated, use twine to upload instead (https://pypi.org/p/twine/)
error: Upload failed (403): Forbidden

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

2 participants