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

Is this supposed to be a port to Python 3.x? #2

Open
jski3 opened this issue Jun 8, 2022 · 1 comment
Open

Is this supposed to be a port to Python 3.x? #2

jski3 opened this issue Jun 8, 2022 · 1 comment

Comments

@jski3
Copy link

jski3 commented Jun 8, 2022

When I try running the 2.7 version using 3.x, it dies with:
python run.py ~/rainflow_function.m /home/jski/.local/lib/python3.9/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) /home/jski/.local/lib/python3.9/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 "/home/jski/smop/smop/main.py", line 66, in main G = resolve.resolve(stmt_list) File "/home/jski/smop/smop/resolve.py", line 54, in resolve u = G.node[n]["ident"] AttributeError: 'DiGraph' object has no attribute 'node' Errors: 1
The important part is: 'DiGraph' object has no attribute 'node'
That happens in resolve.py.
The only changes to resolve.py here are cosmetic?

@yangbo
Copy link

yangbo commented Feb 10, 2023

hi jski3, maybe you should run commands below before running smop:

git clone [email protected]:smop3/smop
cd smop3
pip install -e .

I can run smop in python3, so I think smop3 is for python3.

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

2 participants