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

FoxDot does not support Python 3.11 #256

Open
astrojuanlu opened this issue Nov 1, 2022 · 5 comments
Open

FoxDot does not support Python 3.11 #256

astrojuanlu opened this issue Nov 1, 2022 · 5 comments

Comments

@astrojuanlu
Copy link

$ python -m FoxDot
Traceback (most recent call last):
  File "<frozen runpy>", line 189, in _run_module_as_main
  File "<frozen runpy>", line 148, in _get_module_details
  File "<frozen runpy>", line 112, in _get_module_details
  File "/home/juanlu/Projects/Other/foxdot-live-coding-workshop/.venv/lib/python3.11/site-packages/FoxDot/__init__.py", line 106, in <module>
    from .lib import *
  File "/home/juanlu/Projects/Other/foxdot-live-coding-workshop/.venv/lib/python3.11/site-packages/FoxDot/lib/__init__.py", line 12, in <module>
    from .TempoClock import *
  File "/home/juanlu/Projects/Other/foxdot-live-coding-workshop/.venv/lib/python3.11/site-packages/FoxDot/lib/TempoClock.py", line 53, in <module>
    from .Players import Player
  File "/home/juanlu/Projects/Other/foxdot-live-coding-workshop/.venv/lib/python3.11/site-packages/FoxDot/lib/Players.py", line 141, in <module>
    from .Key import *
  File "/home/juanlu/Projects/Other/foxdot-live-coding-workshop/.venv/lib/python3.11/site-packages/FoxDot/lib/Key.py", line 3, in <module>
    from .Patterns import *
  File "/home/juanlu/Projects/Other/foxdot-live-coding-workshop/.venv/lib/python3.11/site-packages/FoxDot/lib/Patterns/__init__.py", line 72, in <module>
    from .Main       import *
  File "/home/juanlu/Projects/Other/foxdot-live-coding-workshop/.venv/lib/python3.11/site-packages/FoxDot/lib/Patterns/Main.py", line 81, in <module>
    class metaPattern(object):
  File "/home/juanlu/Projects/Other/foxdot-live-coding-workshop/.venv/lib/python3.11/site-packages/FoxDot/lib/Patterns/Main.py", line 632, in metaPattern
    @loop_pattern_method
     ^^^^^^^^^^^^^^^^^^^
  File "/home/juanlu/Projects/Other/foxdot-live-coding-workshop/.venv/lib/python3.11/site-packages/FoxDot/lib/Patterns/Main.py", line 61, in loop_pattern_method
    new_function.argspec = inspect.getargspec(f)
                           ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?

I know that this project is not actively maintained anymore (gh-255), but putting this here for the record.

@TheNuSan
Copy link

I have the same issue, I managed to get something running by replacing in the source code every "getargspec" by "getfullargspec" and replacing "keywords" by "varkw" in lib\TempoClock.py
but I don't know if that fixes everything

@TonyIvanova
Copy link

I have the same issue, I managed to get something running by replacing in the source code every "getargspec" by "getfullargspec" and replacing "keywords" by "varkw" in lib\TempoClock.py but I don't know if that fixes everything

It is running without errors now, but doesn't produce sound.

@TheNuSan
Copy link

I have the same issue, I managed to get something running by replacing in the source code every "getargspec" by "getfullargspec" and replacing "keywords" by "varkw" in lib\TempoClock.py but I don't know if that fixes everything

It is running without errors now, but doesn't produce sound.

I made a fix in my fork if you want to check, I have proper sound and everything seems to work:
https://github.com/TheNuSan/FoxDot
if it doesn't work, maybe check all the other steps (launching supercollider before, starting foxdot plugin in supercollider ...)

@felipebastos
Copy link

I have the same issue, I managed to get something running by replacing in the source code every "getargspec" by "getfullargspec" and replacing "keywords" by "varkw" in lib\TempoClock.py but I don't know if that fixes everything

Fixing getargspec for getfullargspec will be needed on Repeat module too.

My tests are running under:

  • Windows 11:
  • Python 3.11
  • Poetry
  • SuperCollider 3.13.0-RC1
  • FoxDot from PyPI 0.8.12
  • No Jack nor ASIO driver for now
  • Presonus Studio 26C and its official drivers

No special config was needed on this except for the code fix.

@henriquesebastiao
Copy link

I have the same problems when trying to run it with python 3.12.3, however it works perfectly with python 3.10.

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

5 participants