Comments (14)
Might need to revert the UTF-8 encoding on read in line 26.
from bank2ynab.
Nope; I just changed it back to config.read(conf_files)
but got the same error still.
from bank2ynab.
Try changing the encoding to latin-1. Link
from bank2ynab.
You mean encoding the downloaded file in Latin-1? It's a good test case. I'll check and report back.
This leads me to realize another question: Can we make the script either encoding-agnostic, or auto-detect the encoding and then either handle it accordingly or even convert the input file?
from bank2ynab.
from bank2ynab.
Change UTF-8 to latin-1 in line 26.
D'oh! :-) that's what you meant, sorry for misunderstanding. I'll test it at home.
from bank2ynab.
I tried running the UTF-8 version with ááááééééáá and had no problem with it.
from bank2ynab.
I'll have a go at it tonight and report back.
from bank2ynab.
Very odd! I get the above error regardless whether I have:
config.read(conf_files, encoding = "latin-1")
or
config.read(conf_files, encoding = "utf-8")
I'm testing with your ááááééééáá and my üöäÜÖÄßæøåÆØÅ in separate and otherwise good test cases, see attached. I'm at a loss here.
elbi_umsaetze_20171018220326.csv.txt
from bank2ynab.
What happens if you remove the encoding bit from the function altogether?
from bank2ynab.
I'm curious to see if you still get this issue now after resolving issue #29.
from bank2ynab.
Sorry @nocalla but I still get errors when run with Python 2:
('Parsing file: ', 'elbi_umsaetze_20171022210838.csv')
('Using format: ', u'AT Raiffeisen Bank')
Traceback (most recent call last):
File "bank2ynab.py", line 171, in <module>
main()
File "bank2ynab.py", line 163, in main
output = clean_data(file)
File "bank2ynab.py", line 71, in clean_data
transaction_reader = csv.reader(transaction_file, delimiter = delim)
TypeError: "delimiter" must be string, not unicode
This is a different error than this one from the pull request.
It works with Python 3!
from bank2ynab.
Okay great! That's the python 2 failure we're getting for delimiters. It's a separate issue to the umlauts so this issue is resolved?
from bank2ynab.
If you say so then yes it's resolved! :-) I guess I can close it then.
from bank2ynab.
Related Issues (20)
- K&H HU new bank format HOT 4
- Uploading transactions to YNAB silently fails HOT 19
- NO Sparebank 1 VISA - no output data HOT 10
- SE Länsförsäkringar checking - import broken - date format has changed
- Code refactor & migrate parsing functionality to Pandas
- Transformation map for payee names HOT 13
- Seems like it is not supporting ING anymore. HOT 6
- Extraction of transaction information from the memo HOT 1
- "Done! 0 files processed." HOT 8
- Label and README Github action fails for Pull Requests from external forks into Develop HOT 6
- John Lewis Partnership Card provider and data format changed HOT 1
- Bank format: IE PTSB
- Output file not showing Swedish letters å, ä and ö HOT 7
- No output file for this bank HOT 1
- Incorrect merging of duplicate inflow and outflow columns
- Linting Github action is failing
- PL Alior Bank format
- NL ING Checking 2020 works, but not when the bank web interface is set to English HOT 5
- filename pattern of "BE BNP Paribas Fortis Export” matches “NL Rabobank-2018” files HOT 3
- Question: two budgets with different accounts in same bank HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bank2ynab.