victorlei / smop

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

python 3.7 does not have module __builtin__ #135

Open micklexqg opened 5 years ago

micklexqg commented 5 years ago

module builtin (in libsmop.py) is for python 2.x. it has been builtins in python 3.x, so how to solve it? change "import builtin" to be "import builtins as builtin" ?

n-is commented 5 years ago

Dear micklexqg, You can change 'import builtin' at line 6 of libsmop.py to 'import builtins' and 'builtin.sort' at line 668 to 'builtins.sort'.

ooodragon94 commented 3 years ago

what happens if I pip installed smop?