Have you tried specifying the full path to the wallet file rather than just . ?? It's possible that the script is attempting to parse this as a full path and may not be locating the file correctly? I haven't looked at the actual code to see how the script is handling the --datadir argument, so I'm not 100% sure of the format required here.
When I get home from work tonight I'll have a proper look and and a bit of a play around with it and see if I can replicate and/or figure out some more specific solutions for you.
Yeah, unfortunately I've tried the full path as well, and get the same response.
I don't think its an issue with the path, as if I put in an malformed path I get a different "
bsddb.db.DBNoSuchFileError: (2, 'No such file or directory -- /Users/user/notpywallet/__db.001: No such file or directory')" error.