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

AttributeError: module 'sys' has no attribute 'setcheckinterval'. Did you mean: 'setswitchinterval'? #6

Open
dieterdreist opened this issue Aug 31, 2022 · 3 comments

Comments

@dieterdreist
Copy link

dieterdreist commented Aug 31, 2022

% python3 --version
Python 3.10.6

% python3 ZebraTrace.pyw

Traceback (most recent call last):
  File "ZebraTrace/src/ZebraTrace.pyw", line 17, in <module>
    from zebratrace import zebratrace
  File "ZebraTrace/src/zebratrace/__init__.py", line 18, in <module>
    from .app import ZQApplication
  File "ZebraTrace/src/zebratrace/app.py", line 31, in <module>
    from .geom.funcplotter2 import FuncPlotter
  File "ZebraTrace/src/zebratrace/geom/funcplotter2.py", line 28, in <module>
    sys.setcheckinterval(0xfff)
AttributeError: module 'sys' has no attribute 'setcheckinterval'. Did you mean: 'setswitchinterval'?
@dieterdreist
Copy link
Author

dieterdreist commented Aug 31, 2022

it seems it was removed in python 3.9 and setswitchinterval should be used instead
https://bugs.python.org/issue37392

@dieterdreist
Copy link
Author

dieterdreist commented Aug 31, 2022

after commenting the line sys.setcheckinterval(0xfff) out, it runs

@aa022
Copy link

aa022 commented Feb 3, 2023

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