Hello,
I'm trying to run the example custom_m_codes.py found in the github repo for dsf-python.
However I'm running into this issue so the example is obviously not up to date.
Any idea how to fix it?
Traceback (most recent call last):
File "custom_m_codes.py", line 11, in <module>
from dsf.connections import InterceptConnection, InterceptionMode
File "/usr/local/lib/python3.7/dist-packages/dsf/__init__.py", line 10, in <module>
from . import commands, connections, http, object_model
File "/usr/local/lib/python3.7/dist-packages/dsf/connections/__init__.py", line 47, in <module>
from .base_command_connection import BaseCommandConnection
File "/usr/local/lib/python3.7/dist-packages/dsf/connections/base_command_connection.py", line 3, in <module>
from .base_connection import BaseConnection
File "/usr/local/lib/python3.7/dist-packages/dsf/connections/base_connection.py", line 6, in <module>
from .init_messages import client_init_messages, server_init_message
File "/usr/local/lib/python3.7/dist-packages/dsf/connections/init_messages/__init__.py", line 1, in <module>
from . import client_init_messages, server_init_message
File "/usr/local/lib/python3.7/dist-packages/dsf/connections/init_messages/client_init_messages.py", line 43, in <module>
auto_flush: bool = True):
TypeError: 'type' object is not subscriptable
Edit: This also effects DSF_ExecOnMcode_Plugin. Same error.