[Ironpython-users] Process cannot find the file specified file

Attila-Ors Kilyen kilyen.attila.ors at gmail.com
Fri Apr 19 18:32:56 CEST 2013


No. Works with dot.exe as well, but in my first project i only used "dot",
and it worked fine. As i writed, i made a Ctr+c Ctr-V in  the to the
project nr2, and only gives error there


On Fri, Apr 19, 2013 at 7:28 PM, Curt Hagenlocher <curt at hagenlocher.org>wrote:

> I suspect your filename is wrong. Shouldn't it be something like "dot.exe"?
>
>
> On Fri, Apr 19, 2013 at 9:20 AM, Attila-Ors Kilyen <
> kilyen.attila.ors at gmail.com> wrote:
>
>> I'm trying to execute "dot" (a graph drawer thing from www.graphviz.org)
>> form IronPython. Here is my code:
>>
>> import clr
>> clr.AddReference('System.Core')import System
>> clr.ImportExtensions(System.Reflection)
>> clr.ImportExtensions(System.Diagnostics)from System.Diagnostics import Processfrom System.Reflection import Assemblyfrom System.IO import *
>> if __name__ == "__main__":
>>
>>     p = Process()
>>     p.StartInfo.UseShellExecute = False
>>     p.StartInfo.RedirectStandardOutput = True
>>     p.StartInfo.WorkingDirectory  = "C:\\kod\\"
>>     p.StartInfo.FileName = 'dot'
>>     p.StartInfo.Arguments = '-Tgif uj.gv -o mamammikasza.gif'
>>     p.Start()
>>     p.WaitForExit()
>>     egyString = p.StandardOutput.ReadToEnd()
>>     print egyString
>>     print p.ExitCode
>>
>> In my test project works fine. I copied to my real project (after all I
>> commented everything in main.py, only the this code remained) and gives me
>> this
>>
>> exceptions.WindowsError occurredMessage: [Errno 22] The system cannot find the file specified
>>
>> at p.Start() Please help. I'm using VS 2010, .NET 4.0 IronPython (2.7.3
>> (2.7.0.40))
>>
>> The "dot" was installed form msi provided by graphvis, and work fine from
>> everywhere.
>>
>> _______________________________________________
>> Ironpython-users mailing list
>> Ironpython-users at python.org
>> http://mail.python.org/mailman/listinfo/ironpython-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20130419/a6931fc8/attachment.html>


More information about the Ironpython-users mailing list