Skip to content

error: /usr/local/bin/python: No module named src.main #104

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
p-galligan opened this issue May 28, 2024 · 1 comment
Open

error: /usr/local/bin/python: No module named src.main #104

p-galligan opened this issue May 28, 2024 · 1 comment

Comments

@p-galligan
Copy link

I've set up a very simple dependency action for our repository, and I'm running into an issue where the action's container builds as expected, but it fails to even start running.

name: update dependencies
on:

  schedule:
    - cron:  '0 0 1 * *'

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    permissions:
      contents: write
      pull-requests: write

    steps:
      - uses: actions/checkout@v4
        with:
          ref: development
          token: ${{ secrets.ACCESS_TOKEN }}

      - name: Run GitHub Actions Version Updater
        uses: saadmk11/github-actions-version-updater@main
        with:
          token: ${{ secrets.ACCESS_TOKEN }}
          update_version_with: 'release-tag'
          skip_pull_request: 'false'
          pull_request_branch: 'dependency-updates'
          ignore: 'saadmk11/github-actions-version-updater@main'

The raw logs aren't particularly helpful for this error:

2024-05-28T13:15:19.1271502Z ##[group]Run saadmk11/github-actions-version-updater@main
2024-05-28T13:15:19.1272160Z with:
2024-05-28T13:15:19.1272828Z   token: ***
2024-05-28T13:15:19.1273551Z   update_version_with: release-tag
2024-05-28T13:15:19.1274013Z   skip_pull_request: false
2024-05-28T13:15:19.1274385Z   pull_request_branch: dependency-updates
2024-05-28T13:15:19.1275045Z   ignore: saadmk11/github-actions-version-updater@main
2024-05-28T13:15:19.1275769Z   committer_username: github-actions[bot]
2024-05-28T13:15:19.1276319Z   committer_email: github-actions[bot]@users.noreply.github.com
2024-05-28T13:15:19.1276976Z   commit_message: Update GitHub Action Versions
2024-05-28T13:15:19.1277493Z   pull_request_title: Update GitHub Action Versions
2024-05-28T13:15:19.1277915Z   release_types: all
2024-05-28T13:15:19.1278335Z ##[endgroup]
2024-05-28T13:15:19.1487486Z ##[command]/usr/bin/docker run --name b3ee3925f723277b34a3fa955cabaa666bd3a_24bdb3 --label 0b3ee3 --workdir /github/workspace --rm -e "INPUT_TOKEN" -e "INPUT_UPDATE_VERSION_WITH" -e "INPUT_SKIP_PULL_REQUEST" -e "INPUT_PULL_REQUEST_BRANCH" -e "INPUT_IGNORE" -e "INPUT_COMMITTER_USERNAME" -e "INPUT_COMMITTER_EMAIL" -e "INPUT_COMMIT_MESSAGE" -e "INPUT_PULL_REQUEST_TITLE" -e "INPUT_RELEASE_TYPES" -e "INPUT_PULL_REQUEST_USER_REVIEWERS" -e "INPUT_PULL_REQUEST_TEAM_REVIEWERS" -e "INPUT_PULL_REQUEST_LABELS" -e "INPUT_EXTRA_WORKFLOW_LOCATIONS" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_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_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -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 "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_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/digitized_av_validation/digitized_av_validation":"/github/workspace" 0b3ee3:925f723277b34a3fa955cabaa666bd3a
2024-05-28T13:15:19.4484684Z /usr/local/bin/python: No module named src.main

I'm not sure what's going on, but it seems like the action can't find the correct module to actually run.

@charl3y15
Copy link

Same

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