[InterMine Dev] python client question

Radek Stepan rs676 at cam.ac.uk
Thu Oct 11 16:56:24 BST 2012


Just to add that this exact same scenario works for me with 0.97.01
version of Py webservice only complaining about the "tags" parameter.

Radek

On Thu, Oct 11, 2012 at 4:41 PM, Kalpana Karra <kkarra at stanford.edu> wrote:
> We had a user write in with trouble logging in, wondering if you all know
> what the problem could be?
>
> *******
>
> I am now trying to access yeastmine using the intermine python web services
> client API (http://www.intermine.org/wiki/PythonClient) , but I cannot
> login.
>
> Below is my sample code.  When I run it, I get the exception:
>    raise WebserviceError(resp.status, resp.reason, content)
> intermine.webservice.WebserviceError: [Errno 403] Forbidden:
> '{\n"wasSuccessful":false,"error":"Unknown username:
> David.Weisman","statusCode":403}'
>
> However, I am certain that I have a valid login name and password, because I
> can login normally as a browser user, using the same account and password.
>
> Do you know how I might resolve this?
>
> #!/usr/bin/env python
>
> from intermine.webservice import Service
>
> geneList = [
> 'rad51', 'rad52', 'rad53', 'ddc1', 'rad55', 'rad57', 'spo11', 'dmc1',
> 'rad17', 'rad9', 'rad24', 'msh1', 'msh5', 'mre11', 'xrs2', 'ndt80', 'tid1',
> 'ssb1', 'pre3', 'acr1', 'doa3', 'rad54', 'ssf1']
>
> service = Service("http://yeastmine.yeastgenome.org/yeastmine/service",
> "David.Weisman at umb.edu", "DELETED")
> print(service)
>
> my_list = service.create_list(geneList, "Gene", "Uploaded List 2",
> tags=["tag"])
> print(my_list)
>
> *********
>
> _______________________________________________
> dev mailing list
> dev at intermine.org
> http://mail.intermine.org/cgi-bin/mailman/listinfo/dev
>



More information about the dev mailing list