-
Notifications
You must be signed in to change notification settings - Fork 533
AttributeError: 'module' object has no attribute 'write_dot' #1350
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
Comments
|
@mwaskom I have: * MAybe I need pydotplus instead? Prov uses it for testing. |
Same issue here in nipype when using
which produces the error
|
Not sure what the problem is, but it doesn't sound like a nipype issue per se. |
this example suggests that the above should work: https://networkx.github.io/documentation/latest/examples/pygraphviz/write_dotfile.html perhaps its a version issue with networkx, we should track this down. |
Yes, it does seems as if, even though Python recognizes all the packages as installed, somehow networkx doesn't acknowledge it and that affects nipype. I tried uninstalling and reinstalling all these packages, which happens successfully, but doesn't correct the issue. |
I would suggest opening an issue with networkx, as it is likely that they will be able to help you debug the problem. |
I just opened an issue on networkx, but in the meantime I found a workaround that I thought worth sharing: |
It seems my workaround is the way to go for networkx-1.11 and later |
@polosecki - could you please submit a PR that implements your work around after a version check on networkx? |
@satra I was meaning to do it but didn't quite know how since I had never contributed to a larger project. I'm happy that nipype is the first one. PR submitted! :) |
So pydotplus is a mandatory (in as far as one wants dot files) nipype dependency now, yes? |
It is, right?, since it is imported in the networkx.drawing function called by nipype's write_graph. |
Thanks polosecki your solution works for me |
Was this fixed? I just encountered this error as well with version 1.11 |
Usign nx.nx_pydot.write_dot(G, 'tree.dot') works for me |
I am trying to run this pipeline and I am getting this error message:
It seems to be due to this line. And if I cmment it, the pipeline works. This happens both with release
0.11.0
and with the live nipype version from github. I have matplotlib. Any ideas what might be the problem?The text was updated successfully, but these errors were encountered: