Hi Robin

So I have it installed ok now. Thanks for your help. Just having trouble now with running the test script. It fails launch a matlab session.

matlab: Command not found.
Traceback (most recent call last):
  File "test_mlabwrap.py", line 37, in <module>
    from mlabwrap import *
  File "/usr/local/lib/python2.6/
dist-packages/mlabwrap.py", line 639, in <module>
    mlab = MlabWrap()
  File "/usr/local/lib/python2.6/dist-packages/mlabwrap.py", line 405, in __init__
    self._session = mlabraw.open(os.getenv("MLABRAW_CMD_STR", ""))
mlabraw.error: Unable to start MATLAB(TM) engine

 I have tried every possible PATH possibility and still no success. Kinda worried now it is not a path issue and the error report is not so accurate. I recall reading somewhere you can get a msg like this with compiler problems. Something about renaming the reference to g++, dunno can't find it again.
I have matlab instaled in /usr/matlab  which I don't think would be a default location. Perhaps somewhere there is a path reference in the python install that doesn't point to the right place who knows, could be anything. On the other hand I can't see how this is an issue, as I should be able to install matlab into my home dir or anywhere i want which should be expected. So can't really be a path issue. I have pointed to the location of the ./matlab command i run matlab with normally open matlab in /usr/matlab/bin  i have tried the /Include location of engine.h and simply the root of matlab /usr/matlab/  itself.
Totally stumped.

ALex


On Thu, Dec 3, 2009 at 5:40 PM, Robin <robince@gmail.com> wrote:
If you are having trouble setting the path you could try setting the
MLABRAW_CMD_STR environment variable:

http://mlabwrap.sourceforge.net/#id13

Try something like:
export MLABRAW_CMD_STR="/usr/matlab/bin/matlab -nodesktop"
before running python/ipython.

Cheers

Robin

On Thu, Dec 3, 2009 at 1:36 PM, Alexander Buckley <albuckley@gmail.com> wrote:
> Hi List
>
> So I have installed mlabwrap successfully it seems. I am now trying to get
> the test script test_mlabwrap.py to run but it crashes. The error msg is:
>
> matlab: Command not found.
> Traceback (most recent call last):
>   File "test_mlabwrap.py", line 37, in <module>
>     from mlabwrap import *
>   File "/usr/local/lib/python2.6/dist-packages/mlabwrap.py", line 639, in
> <module>
>     mlab = MlabWrap()
>   File "/usr/local/lib/python2.6/dist-packages/mlabwrap.py", line 405, in
> __init__
>     self._session = mlabraw.open(os.getenv("MLABRAW_CMD_STR", ""))
> mlabraw.error: Unable to start MATLAB(TM) engine
>
> It would appear this is a path problem.
> I have mnatlab installed in /usr/matlab/
> I have tried to set the path to point to this directory. I have set it to
> /usr/matlab/bin/ where the matlab launch file is.
> I have set it to /usr/matlab/incluse/extern/ where the location of engine.h
> is.
> None of these attempts have succeded.
>
> Has anyone else had such difficuties?
> Alex
>
>
>
>
> On Thu, Dec 3, 2009 at 11:38 AM, John Haiducek <jhaiduce@gmail.com> wrote:
>>
>> I ran into a problem when I installed it on ubuntu 9.10 with matlab
>> r2009a, and you will probably run into this as well: The mlabwrap install
>> script tried to run matlab (to check the version number), but matlab was
>> configured in such a way that it wouldn't run as root. My workaround was to
>> set the following variables in setup.py (both are set to None in the default
>> setup.py):
>>
>> MATLAB_VERSION=7.8
>> PLATFORM_DIR='glnxa64' # This is for 64-bit Linux; if you're using 32-bit
>> it will be 'glnx86'
>>
>> After I did that everything worked peachy.
>>
>> On Thu, Dec 3, 2009 at 4:20 AM, Robin <robince@gmail.com> wrote:
>>>
>>> On Wed, Dec 2, 2009 at 2:51 PM, Alexander Buckley <albuckley@gmail.com>
>>> wrote:
>>> > Hi List
>>> > SO i have been trying to get a python/matlab wrapper going here. Tried
>>> > out
>>> > some other wrapper that i noticed last had action on it back in 2003.
>>> > So I
>>> > abandoned that attempt. I just stumbled upon this wrapper. Spent 2 days
>>> > trying to get the first one going but I found the Setup.py editing very
>>> > hardcore. I not a total noob, been with linux now for about two years
>>> > but I
>>> > am computer engineer, very low level orientated. I find some of the
>>> > instructions difficult sometimes with manual install instruction as
>>> > much of
>>> > it written by people who are obviously from the application layer
>>> > school of
>>> > thought. Anyways... blah blah blah. I reeeeeeeeeaaaally want to get
>>> > this
>>> > working and hopefully without puling to much teeth.
>>> > My question:
>>> > versions!!!
>>> > Been reading the docs for install,  mlabwrap v1.1-pre  date: 2009-09-14
>>> > ok thats good, looks current
>>> > however docs say Matlab 6, 6.5 or 7.x
>>> > I have MATLAB r2009a    and ubuntu 9.04
>>> > Shold I even bother trying to install this?
>>> > I am pretty burnt from that last two days with Setup.py and failing,
>>> > i'm
>>> > still pretty synaptic packagemanager or aptget-install dependant.
>>> > Has anyone tried this yet? Is there any ongoing maintenance with this
>>> > wrapper to handle ongoing version compatibility?
>>> > If there was just one single problem on the install, albeit perhaps
>>> > easy to
>>> > fix for some of you comp sci guys, I'd be sunk.
>>>
>>> mlabwrap v1.1-pre should work with r2009a on Ubuntu 9.04 (r2009a is
>>> the release name for version 7.8, which is how the docs refer to it)
>>> if you follow the installation instructions carefully.
>>>
>>> Cheers
>>>
>>> Robin
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Join us December 9, 2009 for the Red Hat Virtual Experience,
>>> a free event focused on virtualization and cloud computing.
>>> Attend in-depth sessions from your desk. Your couch. Anywhere.
>>> http://p.sf.net/sfu/redhat-sfdev2dev
>>> _______________________________________________
>>> Mlabwrap-user mailing list
>>> Mlabwrap-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/mlabwrap-user
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Join us December 9, 2009 for the Red Hat Virtual Experience,
>> a free event focused on virtualization and cloud computing.
>> Attend in-depth sessions from your desk. Your couch. Anywhere.
>> http://p.sf.net/sfu/redhat-sfdev2dev
>> _______________________________________________
>> Mlabwrap-user mailing list
>> Mlabwrap-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mlabwrap-user
>>
>
>
>
> --
> Alexander Buckley
>
>
>
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> Mlabwrap-user mailing list
> Mlabwrap-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mlabwrap-user
>
>

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Mlabwrap-user mailing list
Mlabwrap-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlabwrap-user



--
Alexander Buckley