Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using SMOP to convert file.m to file.py #163

Open
smoothli opened this issue May 29, 2020 · 4 comments
Open

Error using SMOP to convert file.m to file.py #163

smoothli opened this issue May 29, 2020 · 4 comments

Comments

@smoothli
Copy link

Hi, I have to run several Matlab codes in a program written in Python language, so I wanted to convert them in Phyton language (let Python read the MatLab code itself is too time consuming for my application).

I tried using SMOP, but when in the compiler I write smop file.m it appears this issue:
/opt/anaconda3/lib/python3.7/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)
/opt/anaconda3/lib/python3.7/site-packages/ply/lex.py:498: FutureWarning: Possible nested set at position 118
lexre = re.compile(regex, reflags)
str
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.7/site-packages/smop/main.py", line 66, in main
G = resolve.resolve(stmt_list)
File "/opt/anaconda3/lib/python3.7/site-packages/smop/resolve.py", line 54, in resolve
u = G.node[n]["ident"]
AttributeError: 'DiGraph' object has no attribute 'node'
Errors: 1

@smoothli
Copy link
Author

Does anyone have the same problem? And how to resolve it?
Maybe I missed something that must be installed in Python ?

Thanks

@neoteristis
Copy link

Hi ! I do have the same problem and can't find how to resolve it :/

@FL33TW00D
Copy link

See #153

@IsabellLehmann
Copy link

@smoothli @naxomi did you try pip install networkx==1.11 as mentioned in the issue ? For me this worked. If it worked for you too, please close the issue. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants