Closed scottstanie closed 6 years ago
Thank you for reporting this bug. Could you attach test.m which reproduces the bug.
Thanks, Victor
hmm I actually can't get it to reproduce this bug now.. The "test.m" was actually a few different files that I swapped out, it seemed to be throwing this error for anything I tried.
I can close this if you'd like since I can't give you better directions right now.
I'm getting the same issue:
git clone https://github.com/victorlei/smop
cd smop && git checkout tags/0.41
python setup.py install
smop smop/solver.m
On Python 2.7.5, CentOS Linux release 7.5.1804
I got it to work by reverting to the old exec syntax at https://github.com/victorlei/smop/blob/master/smop/recipes.py#L128
exec(template, namespace
) -> exec template in namespace
@Victordmdb Thanks I was facing the same problem and making the change recommended by you fixed it. @victorlei can you reopen this ticket and see of the fix by @Victordmdb is good to go in the production code.
Just got this exact issue.
Freshly installed SMOP on CentOS7 through pip, tried to translate https://github.com/MrRedstoner/rp2019/blob/master/matlab/Cvicenie2/bisekcia.m and got the error repeatedly. Manually modifying /usr/lib/python2.7/site-packages/smop/recipes.py to perform the change mentioned by @Victordmdb did stop this error, instead I got 2 token unused warnings, a lot of str
in the console, and no new file has appeared in the directory
Error in running or importing smop with python 2.7.5
Anything weird about my setup? Or has this happened before?