Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples/data/importers csv files not being imported. #169

Closed
hexhexD opened this issue May 18, 2022 · 2 comments
Closed

Examples/data/importers csv files not being imported. #169

hexhexD opened this issue May 18, 2022 · 2 comments

Comments

@hexhexD
Copy link

hexhexD commented May 18, 2022

Beancount 2.3.5
beancount-import 1.3.5
Trying to get my own importer to work by using the examples as an reference. I tried the run.py in both manually and fresh directory but both end up not having the entries from Examples/data/importers on the pending tab on the right. Any help would be much appreciated.

@hexhexD
Copy link
Author

hexhexD commented May 22, 2022

Found the cause of my issue. Beancount code lacks error message so you got dig into the source code to find out what happened.

On line 176 of C:\Users\Admin\AppData\Local\Programs\Python\Python39\Lib\site-packages\beancount\ingest\importers\csv.py. Change matchers.append(('mime', 'text/csv')) to matchers.append(('mime', 'application/vnd.ms-excel')) resolves my issue. Somehow on windows the MIME for .csv files is application/vnd.ms-excel

@hexhexD
Copy link
Author

hexhexD commented Jul 1, 2023

beancount/beangulp#105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant