has2k1 / plydata

A grammar for data manipulation in Python
https://plydata.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
276 stars 11 forks source link

TypeError: '>' not supported between instances of 'NoneType' and 'sys.version_info' #33

Open kistlin opened 1 year ago

kistlin commented 1 year ago

I tried to use it with Python 3.11 and get an error now. Maybe it's package version issues. It doesn't work on Linux with fixed package versions I used previously nor with the latest package versions. On macOS I had similar issues, but an older Python version and fixed package versions still worked.

Exception has occurred: TypeError       (note: full exception trace is shown but execution is paused at: _run_module_as_main)
'>' not supported between instances of 'NoneType' and 'sys.version_info'
  File "env/lib/python3.11/site-packages/plydata/eval.py", line 17, in _all_future_flags
    if feature.getMandatoryRelease() > sys.version_info:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "env/lib/python3.11/site-packages/plydata/eval.py", line 22, in <module>
    _ALL_FUTURE_FLAGS = _all_future_flags()
                        ^^^^^^^^^^^^^^^^^^^
  File "env/lib/python3.11/site-packages/plydata/operators.py", line 6, in <module>
    from .eval import EvalEnvironment
  File "env/lib/python3.11/site-packages/plydata/one_table_verbs.py", line 6, in <module>
    from .operators import DataOperator
  File "env/lib/python3.11/site-packages/plydata/__init__.py", line 1, in <module>
    from .one_table_verbs import *  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "experience.py", line 11, in <module>
    import plydata as pld
  File "/usr/lib/python3.11/runpy.py", line 88, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.11/runpy.py", line 198, in _run_module_as_main (Current frame)
    return _run_code(code, main_globals, None,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '>' not supported between instances of 'NoneType' and 'sys.version_info'