It's probable that you've failed to get a connection to the server.
If you print the result of the conn.connect() line,
- Code: Select all
print conn.connect()
You'll probably see that this is False (will return True if you connect OK)
You need to check your username, password etc.
If you can look at the logs on the server you're trying to connect to, this may give you some idea what the problem is (if there's nothing there atall, you probably have the wrong host name).
E.g.
- Code: Select all
$ cd dist
$ tail -f var/log/Blitz-0.log
You can also try connecting via the command line interface (CLI). If this works OK then you'll know that your username, password and server (host) are correct.
- Code: Select all
$ cd dist
$ bin/omero login
Previously logged in to localhost:4064 as will
Server: [localhost]
Username: [will]
Password:
Created session b9451694-c1a1-44f4-a9d0-b4156d925bcc (will@localhost:4064). Idle timeout: 10.0 min. Current group: Swedlow lab
Are you running your python code on the same machine as the server ('localhost')? In the commands above, looking at the logs is on the server machine, whereas CLI login can be on a different machine (just need Server: to point to the right location).
You don't need to change OMERO version, but you do need to be sure that the 'client' and 'server' versions match. Again, if you're connecting to 'localhost' server then they will always be the same, but if connecting to a remote server you need to know that your local and remote versions match.
Hope I haven't confused you too much? If you see any logs that might be useful, paste them here.
Will.