|
Hello, I'm working on Neurodeskapp v 1.14. I am using the XNAT client for python Version: 0.7.2, to connect to an xnat server (on a MacBook Pro with M5 chip and macOS Tahoe). I have no trouble connecting via the basic command, e.g., (on a Jupyter notbook): (central.xnat.org is just an example, not my actual xnat). After connecting, I can list all contents from different projects/subjects and download data with no issues. However, when I use the .netrc file to connect, I get the following error:
I then try to list my projects or the subjects of specific projects, and I get the error:
My netrc file has the following structure:
To connect to the server from the Jupyter notebook, after saving the netrc file in my home directory as ~/.netrc and after running
After running I have also tried Finally, I have also tried to place the netrc file in the neurodesktop-storage folder and point netrc_file there, e.g.: All of the above results in the same XNATAuthError as above. I would greatly appreciate your help with this. |
Replies: 0 comments 10 replies
|
Dear @juan-d - we have a look if we can reproduce this problem and then see how to fix it! @akshitbeniwal - any ideas? |
Hi @aswinnarayanan,
Many thanks for that. I ran the command you suggested and got the message
No such file or directory.I then tried to access my home directory!ls /Users/juand/but I got the messagecannot access '/Users/juand: No such file or directoryI then did a search for "get neurodeskapp to see my home directory." I found that within Neurodesk I need to look for data in
/home/jovyan/dataSo, I tried,
session = xnat.connect('https://central.xnat.org', netrc_file='/home/jovyan/data/.netrc')And that did the trick. I was able to connect.
To sum up, the solution is
…