-
Notifications
You must be signed in to change notification settings - Fork 207
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: Could not open "'./orders_workflow.png'" for writing #110
Comments
Did you run with --trace? You can try to provide the absolute path instead of default '.' in you call to
See also https://github.com/geekq/workflow/blob/master/lib/workflow/draw.rb |
No luck even setting the output path and
|
The error message is very explicit:
Did you try Did you try running Background:
You will have to debug this (not complicated) interaction. |
I encounter same error and same --trace messages when I was using JRuby 1.7.13 on Windows 7 x64 |
@warmwater Nice that you can reproduce it (I can't)! What is the result of your debugging then? |
here is my log: c:\workspace\osm\taroflow\app\models>rake --trace doc:workflow MODEL=Taro |
I have also tested on Ubuntu 12.04 server, ruby 1.9.3p545, rails 4.1.4...got same error messages |
Can you please debug (find the cause)? S. my comments #110 (comment) for the inspiration ;-) |
Hi @geekq i created the temp file and png file first in Ubuntu it shows no error message and png file is empty got same result on windows 7 (Jruby) |
Seeing this same issue on OSX 10.9.4 as well :( |
The only way I got it to work was to run it from console:
You'll get the same error, but so long as you don't quit console, you'll have access to the temporary Graphviz command file. Concatenate the command-line array and run it in another shell to generate the diagram. |
Note that Mavericks may be complicating things as well. The Graphviz folks recommend upgrading to 2.39... |
Ignore the comment about Graphviz 2.39; 2.38.0 behaves identically. |
Also seeing this on MacOS OX 10.9.5, workflow version 1.1. I tried the absolute path, that didn't work. There error message is a bit confusing: is it trying to write to |
For anyone who cares, patching line 69 of |
I do not use Mac. @jkingsbery can you please test, if the removing single quotes (commit f174a83) helped now? |
Fails on linux https://travis-ci.org/geekq/workflow/jobs/50497167 |
Will get rid of graph-viz gem. Without that graphviz generation worked reliably for years. |
👍 |
applying the fix suggested by @jkingsbery (draw.rb:69 change |
has there been any movement on this? I just ran into it again on a new project and can't even remember how i got around it last time. |
not that got checked in i don't think :( |
See: #203 |
Looks like this fix was patched and then reverted... |
I'm using |
Any ideas?
The text was updated successfully, but these errors were encountered: