dictation-toolbox / dragonfly

Speech recognition framework allowing powerful Python-based scripting and extension of Dragon NaturallySpeaking (DNS), Windows Speech Recognition (WSR), Kaldi and CMU Pocket Sphinx
GNU Lesser General Public License v3.0
388 stars 75 forks source link

Python 3.11 Debian dragonfly2 package broken #391

Open dwks opened 2 months ago

dwks commented 2 months ago

Hi, I see that this code supports multiple python versions https://github.com/dictation-toolbox/dragonfly/blob/master/dragonfly/grammar/context.py#L392

but the dragonfly2 package I got on Debian (python 3.11 pip) had this line instead:

        (args, _, varkw, defaults) = inspect.getargspec(self._function)

I hacked it with

        (args, _, varkw, defaults, _, _, _) = inspect.getfullargspec(self._function)

which also worked. I would appreciate if you can update the Debian package (not sure who's responsible for that).

drmfinlay commented 2 months ago

Hi David,

Good to hear from you! Thanks for opening this issue.

This problem with context.py has been reported previously in issue #377. I intend to release a new minor version (0.36.0) soon which will fix this. I should have done it sooner, admittedly.

I don't know about the Debian package. Distribution of dragonfly is a mess at the moment. Rest assured, this will be fixed by version 0.36.0.

On Sun, 08 Sep 2024 14:46:14 -0700 dwks @.***> wrote:

Hi, I see that this code supports multiple python versions https://github.com/dictation-toolbox/dragonfly/blob/master/dragonfly/grammar/context.py#L392

but the dragonfly2 package I got on Debian (python 3.11 pip) had this line instead:

        (args, _, varkw, defaults) = inspect.getargspec(self._function)

I hacked it with

        (args, _, varkw, defaults, _, _, _) = inspect.getfullargspec(self._function)

which also worked. I would appreciate if you can update the Debian package (not sure who's responsible for that).

-- Reply to this email directly or view it on GitHub: https://github.com/dictation-toolbox/dragonfly/issues/391 You are receiving this because you are subscribed to this thread.

Message ID: @.***>