bicarlsen / easy-biologic

Python library for communicating with Biologic devices.
GNU General Public License v3.0
18 stars 11 forks source link

Failing on python 3.11 #27

Closed ramav87 closed 5 months ago

ramav87 commented 10 months ago

Package is incompatible with python 3.11.4. This is because asyncio does not have a coroutine attribute (was deprecated previously and now removed).

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[3], line 3
      1 import sys
      2 sys.path.insert(0, r'C:\Users\rvv\Github\easy-biologic')
----> 3 import easy_biologic as ebl
      4 import easy_biologic.base_programs as blp
      7 # create device

File ~\Github\easy-biologic\easy_biologic\__init__.py:8
      4     raise OSError( 'easy_biologic can only be used on Windows.' )
      6 from ._version import __version__, __version_info__
----> 8 from .device import BiologicDevice
      9 from .program import BiologicProgram
     10 from .program import ProgramRunner

File ~\Github\easy-biologic\easy_biologic\device.py:12
      9 import ctypes as c
     10 from collections import namedtuple
---> 12 from .lib.ec_errors import EcError
     13 from .lib import ec_find as ecf
     14 from .lib import ec_lib  as ecl

File ~\Github\easy-biologic\easy_biologic\lib\__init__.py:1
----> 1 from . import data_parser
      2 from . import ec_errors
      3 from . import ec_find

File ~\Github\easy-biologic\easy_biologic\lib\data_parser.py:30
     27 import math
     28 from collections import namedtuple
---> 30 from . import ec_lib as ecl
     33 # # Parser
     36 def parse( data, info, fields = None, device = None ):

File ~\Github\easy-biologic\easy_biologic\lib\ec_lib.py:565
    563 for method in methods:
    564     async_name = method.__name__ + '_async'
--> 565     globals()[ async_name ] = @asyncio.coroutine( method )
    566 
    567 

AttributeError: module 'asyncio' has no attribute 'coroutine'
bicarlsen commented 10 months ago

Thanks for pointing this out. I likely won't have time to address this in the near future, but would welcome a PR.