Qirky / FoxDot

Python driven environment for Live Coding
http://foxdot.org
Other
1.03k stars 135 forks source link

FoxDot does not support Python 3.11 #256

Open astrojuanlu opened 1 year ago

astrojuanlu commented 1 year ago
$ 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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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:

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

henriquesebastiao commented 4 months ago

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