Skip Menu |

This queue is for tickets about the GraphViz2 CPAN distribution.

Report information
The Basics
Id: 121090
Status: resolved
Worked: 20 min
Priority: 0/
Queue: GraphViz2

People
Owner: Nobody in particular
Requestors: raphael.crochet [...] actia.fr
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Run fails: unable to find dot with default option under Windows
Date: Wed, 12 Apr 2017 13:10:53 +0000
To: "bug-GraphViz2 [...] rt.cpan.org" <bug-GraphViz2 [...] rt.cpan.org>
From: Raphael Crochet <raphael.crochet [...] actia.fr>
By default, GraphWiz2 is searching for 'dot' thanks to which utility. Unfortunately, dot doesn't exist in the GraphViz distribution for Windows. The program name is 'dot.exe'. So, which fails to find it :( I am aware of the driver option but I don't want to use it as my script must run either on Windows, or on Linux. I want to keep its cross platform ability. I use both OS. A workaround to this situation is to make a logical link in Windows as we would do in Linux. In Windows, the link is called a hardlink. This trick is available only on NTFS partitions. On the GraphViz/bin directory, do the following: fsutil hardlink create dot dot.exe Then, which can work well and all is OK. Hope this can help. Perhaps you could add this trick in the module documentation for all poor Windows users. Context uname -a CYGWIN_NT-6.1-WOW64 POSTE1958 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin perl -v This is perl 5, version 20, subversion 1 (v5.20.1) built for MSWin32-x86-multi-thread-64int cpanm GraphViz2 GraphViz2 is up to date. (2.44) Raphaël CROCHET ACTIA Automotive (siège social) 5, rue Jorge Semprun B.P. 74215 - 31432 TOULOUSE cedex 4 (FRANCE) Tel. +33 (0)5 61 17 61 61 Fax + 33 (0)5 61 55 42 31 http://www.actia.com<http://www.actia.com/> .................................... [youTube_icon]<http://www.youtube.com/ActiaOfficialCom> [Linkedin_icon] <http://www.linkedin.com/company/actia> [signature_electronique_actia_v3]<http://www.actia.com/> Avant d' imprimer ce mail, demandez-vous si ceci est nécessaire. Before printing this email, assess if it is really needed. Ce courrier électronique est destiné exclusivement aux personnes ou institutions dont le nom figure ci-dessus et peut contenir des informations protégées par le secret professionnel, dont la divulgation est strictement prohibée.Tout message électronique est susceptible d'altération. Actia décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.Si vous n'êtes pas destinataire, nous vous avisons que sa lecture, sa reproduction ou sa distribution sont strictement interdites.Nous vous prions en conséquence de nous aviser immédiatement par retour de ce courrier. This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Thank you.
Download image001.jpg
image/jpeg 1.7k
image001.jpg
Download image002.jpg
image/jpeg 1.6k
image002.jpg
Download image003.jpg
image/jpeg 6.9k
image003.jpg
Subject: Re: [rt.cpan.org #121090] Run fails: unable to find dot with default option under Windows
Date: Thu, 13 Apr 2017 09:06:04 +1000
To: bug-GraphViz2 [...] rt.cpan.org
From: Ron Savage <ron [...] savage.net.au>
Hi Raphaël Thanx for info. Now, it's over 10 years since I ran Windows, so please remind me: I thought 'which dot' would find dot.exe. Am I wrong? If so, do you suggest I change the code to run 'which dot.exe'? I'm happy to do that when I add your suggestion to the docs. On 13/04/17 02:44, Raphael Crochet via RT wrote: Show quoted text
> Wed Apr 12 12:44:33 2017: Request 121090 was acted upon. > Transaction: Ticket created by raphael.crochet@actia.fr > Queue: GraphViz2 > Subject: Run fails: unable to find dot with default option under Windows > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: raphael.crochet@actia.fr > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=121090 > > > > By default, GraphWiz2 is searching for 'dot' thanks to which utility. > Unfortunately, dot doesn't exist in the GraphViz distribution for Windows. The program name is 'dot.exe'. So, which fails to find it :( > > I am aware of the driver option but I don't want to use it as my script must run either on Windows, or on Linux. I want to keep its cross platform ability. I use both OS. > > A workaround to this situation is to make a logical link in Windows as we would do in Linux. > In Windows, the link is called a hardlink. > This trick is available only on NTFS partitions. > On the GraphViz/bin directory, do the following: > fsutil hardlink create dot dot.exe > Then, which can work well and all is OK. > Hope this can help. > Perhaps you could add this trick in the module documentation for all poor Windows users. > > > Context > > uname -a > CYGWIN_NT-6.1-WOW64 POSTE1958 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin > > perl -v > This is perl 5, version 20, subversion 1 (v5.20.1) built for MSWin32-x86-multi-thread-64int > > cpanm GraphViz2 > GraphViz2 is up to date. (2.44) > > > > > > > Raphaël CROCHET > > ACTIA Automotive (siège social) > 5, rue Jorge Semprun > B.P. 74215 - 31432 TOULOUSE cedex 4 (FRANCE) > Tel. +33 (0)5 61 17 61 61 > Fax + 33 (0)5 61 55 42 31 > http://www.actia.com<http://www.actia.com/> > .................................... > [youTube_icon]<http://www.youtube.com/ActiaOfficialCom> [Linkedin_icon] <http://www.linkedin.com/company/actia> > > > [signature_electronique_actia_v3]<http://www.actia.com/> > > Avant d' imprimer ce mail, demandez-vous si ceci est nécessaire. > Before printing this email, assess if it is really needed. > > Ce courrier électronique est destiné exclusivement aux personnes ou institutions dont le nom figure ci-dessus et peut contenir des informations protégées par le secret professionnel, dont la divulgation est strictement prohibée.Tout message électronique est susceptible d'altération. Actia décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.Si vous n'êtes pas destinataire, nous vous avisons que sa lecture, sa reproduction ou sa distribution sont strictement interdites.Nous vous prions en conséquence de nous aviser immédiatement par retour de ce courrier. > This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or > distribution is prohibited. If you are not the intended recipient, please contact the sender by reply > e-mail and destroy all copies of the original message. Thank you. > >
-- Ron Savage - savage.net.au
Subject: RE: [rt.cpan.org #121090] Run fails: unable to find dot with default option under Windows
Date: Thu, 13 Apr 2017 08:20:13 +0000
To: "bug-GraphViz2 [...] rt.cpan.org" <bug-GraphViz2 [...] rt.cpan.org>
From: Raphael Crochet <raphael.crochet [...] actia.fr>
Hi Ron, Thanx for your answer. Unfortunately, ‘which dot’ doesn’t find dot.exe. I don’t think you should run ‘which dot.exe’ because, in my opinion, GraphViz2 should not care about platform. This accepted, it leaves two solutions: • Modifying GraphViz distribution: creation of dot link in installation process (if possible according to filesystem). • Modifying Perl which Modifying GraphViz distribution is not an easy thing, and not necessary the best way. Modifying Perl which is the best place because it already has to deal with platform specific behavior. Perhaps Perl which could search for ‘dot’ and ‘dot.exe’ when ‘dot’ is asked in Windows platform. Anyway, GraphViz2 Perl module does the job. So, I don’t see necessity to change the run of which. Doc addition is the minimal thing to do to advice developer. Once link is done, it works well and you can forget it. All is kept simple and it is a good thing. Raphaël CROCHET   ACTIA Automotive (siège social) 5, rue Jorge Semprun B.P. 74215 - 31432 TOULOUSE cedex 4 (FRANCE) Tel. +33 (0)5 61 17 61 61 Fax + 33 (0)5 61 55 42 31 http://www.actia.com ………………………………       Avant d’ imprimer ce mail, demandez-vous si ceci est nécessaire. Before printing this email, assess if it is really needed. Ce courrier électronique est destiné exclusivement aux personnes ou institutions dont le nom figure ci-dessus et peut contenir des informations protégées par le secret professionnel, dont la divulgation est strictement prohibée.Tout message électronique est susceptible d'altération. Actia décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.Si vous n'êtes pas destinataire, nous vous avisons que sa lecture, sa reproduction ou sa distribution sont strictement interdites.Nous vous prions en conséquence de nous aviser immédiatement par retour de ce courrier. This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Thank you. -----Message d'origine----- De : ron@savage.net.au via RT [mailto:bug-GraphViz2@rt.cpan.org] Envoyé : jeudi 13 avril 2017 01:07 À : Raphael Crochet <raphael.crochet@actia.fr> Objet : Re: [rt.cpan.org #121090] Run fails: unable to find dot with default option under Windows <URL: https://rt.cpan.org/Ticket/Display.html?id=121090 > Hi Raphaël Thanx for info. Now, it's over 10 years since I ran Windows, so please remind me: I thought 'which dot' would find dot.exe. Am I wrong? If so, do you suggest I change the code to run 'which dot.exe'? I'm happy to do that when I add your suggestion to the docs. On 13/04/17 02:44, Raphael Crochet via RT wrote: Show quoted text
> Wed Apr 12 12:44:33 2017: Request 121090 was acted upon. > Transaction: Ticket created by raphael.crochet@actia.fr > Queue: GraphViz2 > Subject: Run fails: unable to find dot with default option under Windows > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: raphael.crochet@actia.fr > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=121090 > > > > By default, GraphWiz2 is searching for 'dot' thanks to which utility. > Unfortunately, dot doesn't exist in the GraphViz distribution for > Windows. The program name is 'dot.exe'. So, which fails to find it :( > > I am aware of the driver option but I don't want to use it as my script must run either on Windows, or on Linux. I want to keep its cross platform ability. I use both OS. > > A workaround to this situation is to make a logical link in Windows as we would do in Linux. > In Windows, the link is called a hardlink. > This trick is available only on NTFS partitions. > On the GraphViz/bin directory, do the following: > fsutil hardlink create dot dot.exe > Then, which can work well and all is OK. > Hope this can help. > Perhaps you could add this trick in the module documentation for all poor Windows users. > > > Context > > uname -a > CYGWIN_NT-6.1-WOW64 POSTE1958 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 > Cygwin > > perl -v > This is perl 5, version 20, subversion 1 (v5.20.1) built for > MSWin32-x86-multi-thread-64int > > cpanm GraphViz2 > GraphViz2 is up to date. (2.44) > > > > > > > Raphaël CROCHET > > ACTIA Automotive (siège social) > 5, rue Jorge Semprun > B.P. 74215 - 31432 TOULOUSE cedex 4 (FRANCE) Tel. +33 (0)5 61 17 61 61 > Fax + 33 (0)5 61 55 42 31 http://www.actia.com<http://www.actia.com/> > .................................... > [youTube_icon]<http://www.youtube.com/ActiaOfficialCom> [Linkedin_icon] <http://www.linkedin.com/company/actia> > > > [signature_electronique_actia_v3]<http://www.actia.com/> > > Avant d' imprimer ce mail, demandez-vous si ceci est nécessaire. > Before printing this email, assess if it is really needed. > > Ce courrier électronique est destiné exclusivement aux personnes ou institutions dont le nom figure ci-dessus et peut contenir des informations protégées par le secret professionnel, dont la divulgation est strictement prohibée.Tout message électronique est susceptible d'altération. Actia décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.Si vous n'êtes pas destinataire, nous vous avisons que sa lecture, sa reproduction ou sa distribution sont strictement interdites.Nous vous prions en conséquence de nous aviser immédiatement par retour de ce courrier. > This email message is for the sole use of the intended recipient(s) > and may contain confidential and privileged information. Any > unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Thank you. > >
-- Ron Savage - savage.net.au
Subject: Re: [rt.cpan.org #121090] Run fails: unable to find dot with default option under Windows
Date: Fri, 14 Apr 2017 10:03:45 +1000
To: bug-GraphViz2 [...] rt.cpan.org
From: Ron Savage <ron [...] savage.net.au>
Hi Raphaël Thanx for your feedback. Other users have asked me to extend my module to install Graphviz, but of course I won't do that. There are many complications, including the possibility the user has it installed and does not want the lates version, and the differences in OSes, and the choice of installation directory. On 13/04/17 20:03, Raphael Crochet via RT wrote: Show quoted text
> Queue: GraphViz2 > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=121090 > > > Hi Ron, > > Thanx for your answer. > Unfortunately, ‘which dot’ doesn’t find dot.exe. > > I don’t think you should run ‘which dot.exe’ because, in my opinion, GraphViz2 should not care about platform. > This accepted, it leaves two solutions: > • Modifying GraphViz distribution: creation of dot link in installation process (if possible according to filesystem). > • Modifying Perl which > > Modifying GraphViz distribution is not an easy thing, and not necessary the best way. > Modifying Perl which is the best place because it already has to deal with platform specific behavior. > Perhaps Perl which could search for ‘dot’ and ‘dot.exe’ when ‘dot’ is asked in Windows platform. > > Anyway, GraphViz2 Perl module does the job. So, I don’t see necessity to change the run of which. > Doc addition is the minimal thing to do to advice developer. Once link is done, it works well and you can forget it. All is kept simple and it is a good thing. > > > Raphaël CROCHET > > ACTIA Automotive (siège social) > 5, rue Jorge Semprun > B.P. 74215 - 31432 TOULOUSE cedex 4 (FRANCE) > Tel. +33 (0)5 61 17 61 61 > Fax + 33 (0)5 61 55 42 31 > http://www.actia.com > ……………………………… > > > > > > Avant d’ imprimer ce mail, demandez-vous si ceci est nécessaire. > Before printing this email, assess if it is really needed. > > Ce courrier électronique est destiné exclusivement aux personnes ou institutions dont le nom figure ci-dessus et peut contenir des informations protégées par le secret professionnel, dont la divulgation est strictement prohibée.Tout message électronique est susceptible d'altération. Actia décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.Si vous n'êtes pas destinataire, nous vous avisons que sa lecture, sa reproduction ou sa distribution sont strictement interdites.Nous vous prions en conséquence de nous aviser immédiatement par retour de ce courrier. > This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or > distribution is prohibited. If you are not the intended recipient, please contact the sender by reply > e-mail and destroy all copies of the original message. Thank you. > > -----Message d'origine----- > De : ron@savage.net.au via RT [mailto:bug-GraphViz2@rt.cpan.org] > Envoyé : jeudi 13 avril 2017 01:07 > À : Raphael Crochet <raphael.crochet@actia.fr> > Objet : Re: [rt.cpan.org #121090] Run fails: unable to find dot with default option under Windows > > <URL: https://rt.cpan.org/Ticket/Display.html?id=121090 > > > Hi Raphaël > > Thanx for info. Now, it's over 10 years since I ran Windows, so please remind me: I thought 'which dot' would find dot.exe. Am I wrong? If so, do you suggest I change the code to run 'which dot.exe'? I'm happy to do that when I add your suggestion to the docs. > > On 13/04/17 02:44, Raphael Crochet via RT wrote:
>> Wed Apr 12 12:44:33 2017: Request 121090 was acted upon. >> Transaction: Ticket created by raphael.crochet@actia.fr >> Queue: GraphViz2 >> Subject: Run fails: unable to find dot with default option under Windows >> Broken in: (no value) >> Severity: (no value) >> Owner: Nobody >> Requestors: raphael.crochet@actia.fr >> Status: new >> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=121090 > >> >> >> By default, GraphWiz2 is searching for 'dot' thanks to which utility. >> Unfortunately, dot doesn't exist in the GraphViz distribution for >> Windows. The program name is 'dot.exe'. So, which fails to find it :( >> >> I am aware of the driver option but I don't want to use it as my script must run either on Windows, or on Linux. I want to keep its cross platform ability. I use both OS. >> >> A workaround to this situation is to make a logical link in Windows as we would do in Linux. >> In Windows, the link is called a hardlink. >> This trick is available only on NTFS partitions. >> On the GraphViz/bin directory, do the following: >> fsutil hardlink create dot dot.exe >> Then, which can work well and all is OK. >> Hope this can help. >> Perhaps you could add this trick in the module documentation for all poor Windows users. >> >> >> Context >> >> uname -a >> CYGWIN_NT-6.1-WOW64 POSTE1958 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 >> Cygwin >> >> perl -v >> This is perl 5, version 20, subversion 1 (v5.20.1) built for >> MSWin32-x86-multi-thread-64int >> >> cpanm GraphViz2 >> GraphViz2 is up to date. (2.44) >> >> >> >> >> >> >> Raphaël CROCHET >> >> ACTIA Automotive (siège social) >> 5, rue Jorge Semprun >> B.P. 74215 - 31432 TOULOUSE cedex 4 (FRANCE) Tel. +33 (0)5 61 17 61 61 >> Fax + 33 (0)5 61 55 42 31 http://www.actia.com<http://www.actia.com/> >> .................................... >> [youTube_icon]<http://www.youtube.com/ActiaOfficialCom> [Linkedin_icon] <http://www.linkedin.com/company/actia> >> >> >> [signature_electronique_actia_v3]<http://www.actia.com/> >> >> Avant d' imprimer ce mail, demandez-vous si ceci est nécessaire. >> Before printing this email, assess if it is really needed. >> >> Ce courrier électronique est destiné exclusivement aux personnes ou institutions dont le nom figure ci-dessus et peut contenir des informations protégées par le secret professionnel, dont la divulgation est strictement prohibée.Tout message électronique est susceptible d'altération. Actia décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié.Si vous n'êtes pas destinataire, nous vous avisons que sa lecture, sa reproduction ou sa distribution sont strictement interdites.Nous vous prions en conséquence de nous aviser immédiatement par retour de ce courrier. >> This email message is for the sole use of the intended recipient(s) >> and may contain confidential and privileged information. Any >> unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Thank you. >> >>
> > -- > Ron Savage - savage.net.au >
-- Ron Savage - savage.net.au
Subject: RE: [rt.cpan.org #121090] Run fails: unable to find dot with default option under Windows
Date: Fri, 14 Apr 2017 10:23:54 +0000
To: "bug-GraphViz2 [...] rt.cpan.org" <bug-GraphViz2 [...] rt.cpan.org>
From: Raphael Crochet <raphael.crochet [...] actia.fr>
I quite agree with you. Keep It Simple Stupid ! Don't embed GraphViz in Perl module distribution. Raphaël CROCHET  
Fixed in V 2.45, which is now on CPAN. See Changes file for details.
Subject: RE: [rt.cpan.org #121090] Run fails: unable to find dot with default option under Windows
Date: Tue, 18 Apr 2017 09:00:35 +0000
To: "bug-GraphViz2 [...] rt.cpan.org" <bug-GraphViz2 [...] rt.cpan.org>
From: Raphael Crochet <raphael.crochet [...] actia.fr>
Really very quick, impressive! Thank you very much. Raphaël CROCHET   ACTIA Automotive (siège social) 5, rue Jorge Semprun B.P. 74215 - 31432 TOULOUSE cedex 4 (FRANCE) Tel. +33 (0)5 61 17 61 61 Fax + 33 (0)5 61 55 42 31 http://www.actia.com ………………………………       -----Message d'origine----- De : RSAVAGE via RT [mailto:bug-GraphViz2@rt.cpan.org] Envoyé : dimanche 16 avril 2017 02:29 À : Raphael Crochet <raphael.crochet@actia.fr> Objet : [rt.cpan.org #121090] Run fails: unable to find dot with default option under Windows <URL: https://rt.cpan.org/Ticket/Display.html?id=121090 > Fixed in V 2.45, which is now on CPAN. See Changes file for details.