Giter VIP home page Giter VIP logo

Comments (2)

maroux avatar maroux commented on June 15, 2024

Looks like the cache file might have gotten corrupted .. somehow? Can you post the full stacktrace? I'm guessing its main.py:1050 but want to double check. In addition, you can try this workaround: rm .cache/firefly_data.json and retry.

from firefly-ynab4-importer.

em0d33 avatar em0d33 commented on June 15, 2024

That fixed it, thanks. I was having other issues with silent fails and the cache never worked.

Here is another example of it if you still want to see:

Traceback (most recent call last): File "/home/em0d33/.miniconda3/bin/firefly-ynab4-importer", line 8, in <module> sys.exit(cli()) File "/home/em0d33/.miniconda3/lib/python3.8/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/home/em0d33/.miniconda3/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/em0d33/.miniconda3/lib/python3.8/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/em0d33/.miniconda3/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/em0d33/.miniconda3/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "/home/em0d33/.miniconda3/lib/python3.8/site-packages/firefly_ynab4_importer/main.py", line 1516, in import_transactions importer.run(dry_run) File "/home/em0d33/.miniconda3/lib/python3.8/site-packages/firefly_ynab4_importer/main.py", line 664, in run self._load_cache() File "/home/em0d33/.miniconda3/lib/python3.8/site-packages/firefly_ynab4_importer/main.py", line 1050, in _load_cache self.firefly_data = dacite.from_dict(FireflyData, data, config=dacite.Config(strict=True)) File "/home/em0d33/.miniconda3/lib/python3.8/site-packages/dacite/core.py", line 68, in from_dict raise WrongTypeError(field_path=field.name, field_type=field.type, value=value) dacite.exceptions.WrongTypeError: wrong value type for field "expense_accounts" - should be "typing.Dict[str, dict]" instead of value "{'Woolworths': '5097'}" of type "dict"

from firefly-ynab4-importer.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.