I have upgraded from version 4.1 to 4.2 of
https://xnat.readthedocs.io, which makes it possible to login by typing the user name / user name and password:
>>> session=xnat.connect('http://rng-xnat.ecloud.vumc.nl:80',verify=False,user='amwink')
[WARNING] Verify is disabled, this will NOT verify the certificate of SSL connections!
[WARNING] Warnings about invalid certificates will be HIDDEN to avoid spam, but this
[WARNING] means that your connection can be potentially unsafe!
Please enter the password for user 'amwink':
[WARNING] Detected a redirect from http://rng-xnat.ecloud.vumc.nl:80 to https://rng-xnat.ecloud.vumc.nl/, using https://rng-xnat.ecloud.vumc.nl/ from now on
However: with my credentials in ~/.netrc I still get the same error (slightly different line numbers):
[WARNING] Verify is disabled, this will NOT verify the certificate of SSL connections!
[WARNING] Warnings about invalid certificates will be HIDDEN to avoid spam, but this
[WARNING] means that your connection can be potentially unsafe!
[ERROR] Could not determine if login was successful!
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/dist-packages/xnat/__init__.py", line 568, in connect
logged_in_user = check_auth_guest(requests_session, server=server, logger=logger)
File "/usr/local/lib/python3.8/dist-packages/xnat/__init__.py", line 79, in check_auth_guest
raise exceptions.XNATAuthError(message)
xnat.exceptions.XNATAuthError: Could not determine if login was successful!
This is in my ~/.netrc, I am quite sure I have followed the instructions to the letter:
Could the syntax for the .netrc file have changed?