ofxclient
ofxclient copied to clipboard
--download option throws exception under python3
If the --download option is used with python3 then a exception occurs.
File "/usr/local/bin/ofxclient", line 9, in
I fixed it locally by adding a .encode() call into the strings returned by ofxdata.read().
However, That's not a fix for both python2&3. I see account.py has some 2/3 support but account.download() doesn't use it.
Why isn't adding .encode() a fix for 2&3? In Python2 the encode is basically a no-op and it is fixed in python3.
Sorry. I missed a word or 2 and that is not very clear on what I meant. What I should have said is that I'm not claiming this is a complete fix for all python 2/3 compatibility issues. I've only fixed this specific instance that was throwing the exception.
I fixed it locally by adding a .encode() call into the strings returned by ofxdata.read().
I have this exact issue and am struggling with where to implement the encode. Could you elaborate so I could patch mine?
smithbone replied to my email directly and pointed out my issue. I was using the pip copy not the github copy. This issue is actually resolved
https://github.com/captin411/ofxclient/commit/60f0f49f54e6151e960c1175e8b2d0fe215774ae