Skip to content

Packaged code for PyPI by nagannhh #26

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

harshithn31
Copy link

PyPI_screen_shot

##Issues Faced:
I was not able to import the package after installing it locally with pip.
I uploaded the package to TestPyPI but was not able to update it, as it was throwing an error. The detailed error is as shown below

Error uploading

(diffusion2D_venv) PS E:\Simulation_Software_Engineering\packaging\diffusion2D> twine upload dist/* --verbose
Uploading distributions to https://upload.pypi.org/legacy/
INFO dist\nagannhh_packages-0.0.1-py3-none-any.whl (9.3 KB)
INFO dist\nagannhh_packages-0.0.1.tar.gz (8.6 KB)
INFO password set by command options
INFO username: token
INFO password:
Uploading nagannhh_packages-0.0.1-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.5/12.5 kB • 00:00 • ?
INFO Response from https://upload.pypi.org/legacy/:
403 Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.
INFO

<title>403 Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.</title>


403 Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.


Access was denied to this resource.


Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.

      </body>
     </html>

ERROR HTTPError: 403 Forbidden from https://upload.pypi.org/legacy/
Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.

Solutions tried:

  1. Regenerated the API token and tried re-uploading.
  2. Deleted the previously uploaded package completely and tried from scratch.
  3. Changed the package name to avoid conflicts.

@harshithn31 harshithn31 reopened this Nov 25, 2024
@IshaanDesai
Copy link
Member

It is not immediately clear why the package uploading failed. One thing to try would be to use a single pyproject.toml to describe the packaging setup. Right now the setup instructions are distributed across many files, which is prone to error.

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

Successfully merging this pull request may close these issues.

2 participants