Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message: Second argument must be either "get" or "post". #11

Closed
leetcodersd opened this issue Mar 22, 2015 · 3 comments
Closed

Error message: Second argument must be either "get" or "post". #11

leetcodersd opened this issue Mar 22, 2015 · 3 comments

Comments

@leetcodersd
Copy link

Hi all,
I followed the instructions from the website and input the following commands.

HOMEIMAGES = 'http://people.csail.mit.edu/brussell/research/LabelMe/Images';
HOMEANNOTATIONS = 'http://people.csail.mit.edu/brussell/research/LabelMe/Annotations';
D = LMdatabase(HOMEANNOTATIONS);

But I constantly got the error messages shown below.

??? Error using ==> urlread at 43
Second argument must be either "get" or "post".

Error in ==> urldir at 44
[webpage, status] = urlread(page, 'Timeout', 5);

Error in ==> LMdatabase at 103
files = urldir(HOMEANNOTATIONS);

Any help?

Best,
Kai

@quantombone
Copy link
Collaborator

Hi Kai,

It seems like your issue is related to the LabelMe Matlab toolbox. (LMdatabase is not defined inside this code repository, which is just the labeling tool).

What version of Matlab are you using? I suspect you have an older version. Just type version inside the Matlab prompt and let us know the version. For example, my version is 8.3.0.532 (R2014a).

@brussell123
Copy link
Collaborator

Hi Kai,

What's your version of Matlab? You may have a different version.

Maybe you can try using this line instead:

[webpage, status] = urlread(page);

Let us know how it goes.

@leetcodersd
Copy link
Author

Hi brussel123 and quantombone,
Yes it was the version!
Now I've installed the latest version of MATLAB (8.4.0.150421 (R2014b)) and everything works!
My old version is R2010a.
Thanks for your help!

Best,
Kai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants