verify server_context is configured correctly

General Server Forum (Inactive)
verify server_context is configured correctly rqi  2018-03-26 12:33
Status: Closed
 
I tried to install Python API for LabKey Server on my windows machine to remotely manage data on linux machine.
What I did:
1 pip install labkey
2 add labkey to my project;
3 Set Up a netrc File on the home directory
machine labkey.*****.org
login &&@*****.org
password *****

My code:
server_context = create_server_context(server, project, context_path, use_ssl=False)
server=labkey.*****.org:80
project="apple\ pear" (Note: on my server, the project name has a space so I used back slash)
context_path=labkey

But I always got error said: server_context = create_server_context(server, project, context_path, use_ssl=False)

Please help! Thanks
 
 
Jon (LabKey DevOps) responded:  2018-03-30 11:37
Hello,

So you're running the LabKey Python API from your Windows computer?

When you had setup the netrc file, did you make sure the file was named as "_netrc" with the underscore in-front of it?

Also, you shouldn't need to have a backslash to accommodate the space. Wrapping it in single quotes should be sufficient.

Can you also send us the full error you're seeing? There should be a traceback showing on the screen after the python script is ran.

Regards,

Jon