Re: [graph-tool] running graph-tool from inside matlab
On 09/28/2007 11:34 PM, Rui Carvalho wrote:
I'm trying to run graph-tool from a matlab (Matlab2007a) under ubuntu 7, but I'm running into problems.
I've added /usr/local/bin to the matlab path, but keep getting the same error -see attached. To run an unix command from matlab you type
unix(cmd)
Where cmd is, e.g. 'ls'. This works fine, but when cmd='graph-tool' I get the attached error.
Has anyone tried this before?
I don't have matlab installed, but I can run it from octave just fine: octave:1> unix('./graph-tool --version') graph-tool 1.2.0devel (commit 57d3cff82dcfd91646abedb7627cbdcb353eae97) Written by Tiago de Paula Peixoto <tiago@forked.de> Copyright (C) 2007 Tiago de Paula Peixoto This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ans = 0 The error message you got seems to be related to python itself, more specifically to the gzip python module. Can you run other python programs from matlab? Can you also run graph-tool from octave, as above? Cheers, Tiago -- Tiago de Paula Peixoto <tiago@forked.de> 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
Hi, Yes, it also works for me from octave, but not from matlab. I'm not sure why, but the same error appears if I type
unix('perl g_tool.pl')
Where g_tool.pl is: my $status = system('graph-tool --version'); I really don't understand why this is happening, but thanks anyway. Rui -----Original Message----- From: graph-tool-bounces@forked.de [mailto:graph-tool-bounces@forked.de] On Behalf Of Tiago de Paula Peixoto Sent: 29 September 2007 17:56 To: Main discussion list for the graph-tool project Subject: Re: [graph-tool] running graph-tool from inside matlab On 09/28/2007 11:34 PM, Rui Carvalho wrote:
I'm trying to run graph-tool from a matlab (Matlab2007a) under ubuntu 7, but I'm running into problems.
I've added /usr/local/bin to the matlab path, but keep getting the same error -see attached. To run an unix command from matlab you type
unix(cmd)
Where cmd is, e.g. 'ls'. This works fine, but when cmd='graph-tool' I get the attached error.
Has anyone tried this before?
I don't have matlab installed, but I can run it from octave just fine: octave:1> unix('./graph-tool --version') graph-tool 1.2.0devel (commit 57d3cff82dcfd91646abedb7627cbdcb353eae97) Written by Tiago de Paula Peixoto <tiago@forked.de> Copyright (C) 2007 Tiago de Paula Peixoto This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ans = 0 The error message you got seems to be related to python itself, more specifically to the gzip python module. Can you run other python programs from matlab? Can you also run graph-tool from octave, as above? Cheers, Tiago -- Tiago de Paula Peixoto <tiago@forked.de> 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
participants (2)
-
Rui Carvalho -
Tiago de Paula Peixoto