Skip to content

ModuleNotFoundError: No module named 'typing_extensions' #99

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

Closed
Shkarlatov opened this issue Jul 11, 2022 · 1 comment
Closed

ModuleNotFoundError: No module named 'typing_extensions' #99

Shkarlatov opened this issue Jul 11, 2022 · 1 comment

Comments

@Shkarlatov
Copy link

Shkarlatov commented Jul 11, 2022

Cant publish package

/usr/bin/docker run --name cd[98](https://github.com/Shkarlatov/python_test/runs/7284458255?check_suite_focus=true#step:4:99)f5dcfcd33f1cf4178b3c4feb1f275fc10_bfe2c1 --label 4cd98f --workdir /github/workspace --rm -e INPUT_USER -e INPUT_PASSWORD -e INPUT_REPOSITORY_URL -e INPUT_PACKAGES_DIR -e INPUT_VERIFY_METADATA -e INPUT_SKIP_EXISTING -e INPUT_VERBOSE -e INPUT_PRINT_HASH -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_DEBUG -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/python_test/python_test":"/github/workspace" 4cd98f:5dcfcd33f1cf4178b3c4feb1f275fc10  "__token__" "***" "" "dist" "true" "false" "false" "false"
Traceback (most recent call last):
  File "/usr/local/bin/twine", line 5, in <module>
    from twine.__main__ import main
  File "/usr/local/lib/python3.9/site-packages/twine/__main__.py", line 22, in <module>
    from twine import cli
  File "/usr/local/lib/python3.9/site-packages/twine/cli.py", line 21, in <module>
    import rich.logging
  File "/usr/local/lib/python3.9/site-packages/rich/logging.py", line 13, in <module>
    from .traceback import Traceback
  File "/usr/local/lib/python3.9/site-packages/rich/traceback.py", line 26, in <module>
    from .syntax import Syntax
  File "/usr/local/lib/python3.9/site-packages/rich/syntax.py", line 52, in <module>
    from typing_extensions import TypeAlias
ModuleNotFoundError: No module named 'typing_extensions'

My workflow

name: Python CI
jobs:
  build:
     ... build package and upload-artifacts
  publish:
    environment: CI
    needs: build
    runs-on: ubuntu-latest
    if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
    steps:
      - name: Deploying artifacts
        uses: actions/download-artifact@v3
        with:
          name: dist
          path: dist/

      - name:  Publish a Python distribution to PyPI
        uses: pypa/gh-action-pypi-publish@release/v1
        with:
          user: __token__
          password: ${{ secrets.PYPI_API_TOKEN }}
@Shkarlatov
Copy link
Author

I remove cache: pip in actions/setup-python@v4 and error is gone

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

1 participant