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

build error at python3.11 ImportError: cannot import name 'formatargspec' from 'inspect' (/usr/local/lib/python3.11/inspect.py) #107

Closed
sinlov opened this issue Nov 22, 2022 · 1 comment · Fixed by #108
Assignees
Labels
dependencies Pull requests that update a dependency file maintenance Maintenance Work

Comments

@sinlov
Copy link

sinlov commented Nov 22, 2022

  • see the error log below
Run athul/[email protected]
/usr/bin/docker run --name d27a53[9](https://github.com/sinlov/sinlov/actions/runs/3520145281/jobs/5900787108#step:4:10)b6254e76ab7748e0172a64e7_a26893 --label 290506 --workdir /github/workspace --rm -e "INPUT_WAKATIME_API_KEY" -e "INPUT_GH_TOKEN" -e "INPUT_REPOSITORY" -e "INPUT_SHOW_TITLE" -e "INPUT_COMMIT_MESSAGE" -e "INPUT_BLOCKS" -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_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_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_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/sinlov/sinlov":"/github/workspace" 290506:9d27a539b6254e76ab7748e0172a64e7
Traceback (most recent call last):
  File "/main.py", line 11, in <module>
    from github import Github, GithubException
  File "/usr/local/lib/python3.11/site-packages/github/__init__.py", line 58, in <module>
    from github.MainClass import Github, GithubIntegration
  File "/usr/local/lib/python3.11/site-packages/github/MainClass.py", line 59, in <module>
    import github.Event
  File "/usr/local/lib/python3.11/site-packages/github/Event.py", line 34, in <module>
    import github.NamedUser
  File "/usr/local/lib/python3.11/site-packages/github/NamedUser.py", line 46, in <module>
    import github.Organization
  File "/usr/local/lib/python3.11/site-packages/github/Organization.py", line 52, in <module>
    import github.Repository
  File "/usr/local/lib/python3.11/site-packages/github/Repository.py", line 93, in <module>
    from deprecated import deprecated
  File "/usr/local/lib/python3.11/site-packages/deprecated/__init__.py", line 13, in <module>
    from deprecated.classic import deprecated
  File "/usr/local/lib/python3.11/site-packages/deprecated/classic.py", line 15, in <module>
    import wrapt
  File "/usr/local/lib/python3.11/site-packages/wrapt/__init__.py", line [10](https://github.com/sinlov/sinlov/actions/runs/3520145281/jobs/5900787108#step:4:11), in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "/usr/local/lib/python3.[11](https://github.com/sinlov/sinlov/actions/runs/3520145281/jobs/5900787108#step:4:12)/site-packages/wrapt/decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (/usr/local/lib/python3.11/inspect.py)
@yozachar yozachar added maintenance Maintenance Work dependencies Pull requests that update a dependency file labels Nov 22, 2022
@yozachar
Copy link
Collaborator

ref: python/cpython#28618

@yozachar yozachar linked a pull request Nov 22, 2022 that will close this issue
@yozachar yozachar self-assigned this Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file maintenance Maintenance Work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants