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

module 'inspect' has no attribute 'getargspec' when just start the program. #316

Closed
1332fb276 opened this issue Jan 12, 2023 · 1 comment · Fixed by #317
Closed

module 'inspect' has no attribute 'getargspec' when just start the program. #316

1332fb276 opened this issue Jan 12, 2023 · 1 comment · Fixed by #317
Labels

Comments

@1332fb276
Copy link

  • Python State Machine version:1.0.1
  • Python version:3.11
  • Operating System:Win10 64bits

Description

I am running the "class TrafficLightMachine(StateMachine)" example from https://github.com/fgmacedo/python-statemachine.
It shows "module 'inspect' has no attribute 'getargspec'" when it is creating an instance(traffic_light = TrafficLightMachine())

What I Did

Exception has occurred: AttributeError
module 'inspect' has no attribute 'getargspec'
  File "..........\Projects\trafficLight.py", line 31, in <module>
    traffic_light = TrafficLightMachine()
@fgmacedo fgmacedo added the bug label Jan 12, 2023
@fgmacedo
Copy link
Owner

Hi @1332fb276 , thanks for reporting this. A hotfix will come soon.

fgmacedo added a commit that referenced this issue Jan 13, 2023
*January 12, 2023*

StateMachine 1.0.2 fixes a regression bug blocking the library usage on
Python 3.11.

- Fixes
[#316](#316) a bad
  import of 'inspect.getargspec' that was removed on Python 3.11,
  still backwards compatible with older versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants