victorlei / smop

Small Matlab to Python compiler
MIT License
1.08k stars 409 forks source link

TypeError: '<' not supported between instances of 'NoneType' and 'NoneType' #184

Open KamiDuck opened 2 years ago

KamiDuck commented 2 years ago

While trying to convert several matlab files to python I got the following error. I cannot for the life of me figure out where it is going wrong.

c:\users\balun\anaconda3\lib\site-packages\ply\lex.py:760: FutureWarning: Possible nested set at position 65 c = re.compile('(?P<%s>%s)' % (fname, _get_regex(f)), self.reflags) c:\users\balun\anaconda3\lib\site-packages\ply\lex.py:498: FutureWarning: Possible nested set at position 118 lexre = re.compile(regex, reflags) Traceback (most recent call last): File "c:\users\balun\anaconda3\lib\site-packages\smop\main.py", line 66, in main G = resolve.resolve(stmt_list) File "c:\users\balun\anaconda3\lib\site-packages\smop\resolve.py", line 51, in resolve G = as_networkx(t) File "c:\users\balun\anaconda3\lib\site-packages\smop\resolve.py", line 39, in as_networkx if u.lexpos < v.lexpos: TypeError: '<' not supported between instances of 'NoneType' and 'NoneType' Errors: 1

Rohanjos97 commented 10 months ago

I'm also facing the same issue. @KamiDuck, did you find any workaround for this?