DES-Lab / AALpy

An Automata Learning Library Written in Python
https://github.com/DES-Lab/AALpy/wiki
Other
161 stars 20 forks source link

Python3.8.10 on Linux throws this, no other version does? #61

Open emuskardin opened 3 days ago

emuskardin commented 3 days ago
Traceback (most recent call last):
  File "git_learning.py", line 1, in <module>
    from aalpy.learning_algs import run_Lstar
  File "/mnt/c/Users/muskardine/PycharmProjects/git_learning/myvenv/lib/python3.8/site-packages/aalpy/__init__.py", line 1, in <module>
    from .automata import (
  File "/mnt/c/Users/muskardine/PycharmProjects/git_learning/myvenv/lib/python3.8/site-packages/aalpy/automata/__init__.py", line 8, in <module>
    from .Sevpa import Sevpa, SevpaState, SevpaAlphabet, SevpaTransition
  File "/mnt/c/Users/muskardine/PycharmProjects/git_learning/myvenv/lib/python3.8/site-packages/aalpy/automata/Sevpa.py", line 87, in <module>
    class Sevpa(Automaton):
  File "/mnt/c/Users/muskardine/PycharmProjects/git_learning/myvenv/lib/python3.8/site-packages/aalpy/automata/Sevpa.py", line 93, in Sevpa
    def __init__(self, initial_state: SevpaState, states: list[SevpaState]):
TypeError: 'type' object is not subscriptable
emuskardin commented 3 days ago

@zwergziege https://stackoverflow.com/questions/75202610/typeerror-type-object-is-not-subscriptable-python

You see, the absence of types would be superior to such trivial mistakes... well of course List[x] is fundamentally different to list[x]

zwergziege commented 3 days ago

This is why we should only support 3.10+ :p