mark2devel / mark2

Minecraft Multi Server Wrapper Written in Python with Twisted; Pull Requests HIGHLY Encouraged, Collaborators Needed Discord: https://discord.gg/zymJygHNpv
Other
205 stars 44 forks source link

AttributeError: module 'inspect' has no attribute 'getargspec' (Python 3.11 compatibility issue) #173

Closed Column01 closed 4 months ago

Column01 commented 4 months ago

As the title states, python 3.11 seems to not work with mark2. Will be looking into this asap

Traceback (most recent call last):
  File "/home/server/mark2/mk2/manager.py", line 38, in startup
    self.really_start()
  File "/home/server/mark2/mk2/manager.py", line 53, in really_start
    self.events.register(self.handle_server_output, events.ServerOutput,  priority=EventPriority.MONITOR, pattern="")
  File "/home/server/mark2/mk2/events/__init__.py", line 191, in register
    ok, errmsg = event_type._prefilter_argcheck(prefilter_args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/server/mark2/mk2/events/__init__.py", line 66, in _prefilter_argcheck
    spec = inspect.getargspec(cls.prefilter)
           ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'