bastibe / transplant

Transplant is an easy way of calling Matlab from Python
https://transplant.readthedocs.io
Other
110 stars 26 forks source link

Howto get remote working? #55

Closed nbecker closed 7 years ago

nbecker commented 7 years ago

import transplant matlab = transplant.Matlab(address='127.0.0.1',executable='/home/nbecker/.local/bin/matlab')#jvm=False)

... Trial License -- for use to evaluate programs for possible purchase as an end-user only.

Undefined function or variable 'transplant_remote'.

Sorry if this is a stupid question - I don't know anything about matlab. I'm guessing it isn't finding the needed .m file, but I don't know how to fix that.

bastibe commented 7 years ago

Transplant will try to tell Matlab the location of the needed .m files. This can only work on a local file system, though. Since you added address=..., it assumes that you are trying to open Matlab on a remote machine, where it can't work, and thus Matlab doesn't know the location of the .m files. (You would have to install the .m files in the Matlab search path manually in this case).

However, since you are doing this on your local machine, you don't need to specify an address and let Transplant do its job. That should fix it.

nbecker commented 7 years ago

Thanks, but I'm using 127.0.0.1 just as a test :) Do you know how to make this work?

On Tue, Aug 29, 2017 at 11:29 AM Bastian Bechtold notifications@github.com wrote:

Transplant will try to tell Matlab the location of the needed .m files. This can only work on a local file system, though. Since you added address=..., it assumes that you are trying to open Matlab on a remote machine. Thus Matlab doesn't know the location of the .m files.

Since you are doing this on your local machine, you don't need to specify an address. That should fix it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bastibe/transplant/issues/55#issuecomment-325701398, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHK0JUKOWGRYPJhwL-bMuGRKGtlg8-kks5sdC5ngaJpZM4PGAe_ .