-
Notifications
You must be signed in to change notification settings - Fork 411
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
'DiGraph' object has no attribute 'node' #165
Comments
pip install networkx==1.11 |
In python 3 it is. Nodes not node I think. Read back over the issues, it is
not a new problem.
…On Thu, 30 Jul 2020 at 08:18, Dozi7 ***@***.***> wrote:
pip install networkx==1.11
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#165 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRNQJUPAF4H6FEVO7HNVTTR6B7XVANCNFSM4PEPOLRQ>
.
|
I am having a similar problem... |
@alexpazolinid @theRealSuperMario did you try pip install networkx==1.11 as mentioned by @RobBW ? For me this worked. If it worked for you too, please close the issue. :) |
It also got fixed for me with the "pip install networkx==1.11" |
It worked for me in Windows 10, Python3.8 with network install |
thank you, For me this worked, it solve my problem |
Python 3.9.7 |
I would suggest just go to that source file (D:\Python\Python39\lib\site-packages\networkx\algorithms\dag.py), remove the import statement, and replace the gcd occurrences with math.gcd |
the fractions.py is actually using math.gcd itself. |
Why doesn't this work with the latest networkx? (2.6.2) |
Not sure what happens, but 'DiGraph' object has no attribute 'node' in networkx==1.11 as well:
I am going to submit a PR. |
@victorlei PR submitted: #177 Please have a look. |
I'm having the same issue with python 3.8 and |
Thanks a lot ! <3 |
Hi,
I love the idea of this project, however, it does not work for me. See output below.
Is there anything I can do to help fix this?
WARNING: Token 'CLASSDEF' defined, but not used
WARNING: Token 'END_UNEXPECTED' defined, but not used
WARNING: There are 2 unused tokens
Generating LALR tables
/Users/sandrobraun/.local/lib/python3.7/site-packages/ply-3.11-py3.7.egg/ply/lex.py:760: FutureWarning: Possible nested set at position 65
c = re.compile('(?P<%s>%s)' % (fname, _get_regex(f)), self.reflags)
/Users/sandrobraun/.local/lib/python3.7/site-packages/ply-3.11-py3.7.egg/ply/lex.py:498: FutureWarning: Possible nested set at position 118
lexre = re.compile(regex, reflags)
str
Traceback (most recent call last):
File "/Users/sandrobraun/miniconda3/envs/multnano/lib/python3.7/site-packages/smop/main.py", line 66, in main
G = resolve.resolve(stmt_list)
File "/Users/sandrobraun/miniconda3/envs/multnano/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
pip freeze
attrs==19.3.0
certifi==2020.6.20
decorator==4.4.2
importlib-metadata==1.7.0
iniconfig==1.0.0
more-itertools==8.4.0
networkx==2.4
numpy==1.19.1
packaging==20.4
pluggy==0.13.1
ply==3.11
py==1.9.0
pyparsing==3.0.0a2
pytest==6.0.0rc1
scipy==1.5.1
six==1.15.0
smop==0.41
toml==0.10.1
zipp==3.1.0
Python 3.7.7
The text was updated successfully, but these errors were encountered: