Closed martin-krutsky closed 2 years ago
Hi, thanks for the bug report. Can you verify you have the latest version of PyNeuraLogic, which is 0.1.4? I feel like this issue has been solved.
Thanks
Indeed, this is with the current version 0.1.4. I was actually getting other error before upgrading the package (I haven't saved the stack trace, but AFAIK the error was about missing a data
parameter). I can try to completely reinstall the package later, if that helps.
EDIT: Even after reinstalling the library, the error prevails.
I can confirm that the same issue appears on macOS as well
Hi, I released a new version 0.1.5 (changelog), that should contain a fix for this issue. I added some tests running on Windows, and it seems to work, but unfortunately, I wasn't able to check macOS.
Now, NeuraLogic will try to use the dot executable from Path. If it isn't installed on your Path, then you can specify the path via the new graphviz_path
parameter of draw_model
and draw_sample
.
Can you please try it out again if it works now @martin-krutsky @borisrakovan ? Thanks
I can confirm it works for me on Windows, both in the visualization notebook and in my own experiment. Thanks! @borisrakovan, feel free to close this issue, if you can confirm the issue is solved on macOS, as well.
I bumped the version to 0.1.5 and the drawing works fine on macOS. Thanks. Unfortunately I don't have rights to close the issue.
Describe the bug
From the This example notebook
Visualization.ipynb
: Call toneuralogic.utils.visualize.draw_model
function,draw_model(model)
, results in the following error:Similarly, adding a filename to the call (
draw_model(model, 'img.png')
, see code snippets below) results in a NullPointerException:Steps to reproduce the behavior
I have come across this error in my own example codes, but it is enough to run the
Visualization.ipynb
notebook, concretely:For the NullPointerException, I used:
Expected behavior
I should be able to visualize the model.
Environment
No response
Additional context
No response