You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Click on "Publish release", which triggers PyPI workflow.
Error during PyPI workflow in Upload step as follows:
Traceback (most recent call last):
File "/home/runner/.local/share/virtualenvs/pyjpboatrace-cg8vEFYy/bin/twine", line 5, in<module>
from twine.__main__ import main
File "/home/runner/.local/share/virtualenvs/pyjpboatrace-cg8vEFYy/lib/python3.8/site-packages/twine/__init__.py", line 27, in<module>
import importlib_metadata
ModuleNotFoundError: No module named 'importlib_metadata'
Error: Process completed with exit code 1.
Expected behavior
Twine succeeds in uploading .whl and .tar.gz to pypi server.
If this bug is not fixed, we can not upload this package to pypi automatically, that is, manual operation is required when uploading.
Reasons (Optional)
Checking the log, I found pipenv uses python 3.8.10 as follows:
Creating a virtualenv for this project...
Pipfile: /home/runner/work/pyjpboatrace/pyjpboatrace/Pipfile
Using /usr/bin/python3.8 (3.8.10) to create virtualenv...
created virtual environment CPython3.8.10.final.0-64 in 694ms
Describe the bug
PyPI workflow in actions, which runs when released, returns exit code 1 during uploading .whl and .tar.gz with twine.
https://github.com/hmasdev/pyjpboatrace/actions/runs/1103843756
Environment
To Reproduce (Probabily)
Steps to reproduce the behavior:
Expected behavior
Twine succeeds in uploading .whl and .tar.gz to pypi server.
Problems
If this bug is not fixed, we can not upload this package to pypi automatically, that is, manual operation is required when uploading.
Reasons (Optional)
Checking the log, I found pipenv uses python 3.8.10 as follows:
This is probably a reason for this bug.
See https://stackoverflow.com/a/59734959/16567832
The text was updated successfully, but these errors were encountered: