Hello All,

After running a long time with Python 3.5.2 and a Beancount version that 
did not list versions, (sorry, forgot which one, but more than a year old) 
I installed Python 3.7.1 on my Mac Mini running El Capitan 10.11.6.  I then 
updated Beancount and Fava using pip3, and pulled down 2.1.3.  Things 
looked good until I tried to do a csv import.  It incurred the following 
error:

Traceback (most recent call last):



  File "/usr/local/bin/bean-extract", line 4, in <module>

    from beancount.ingest.extract import main; main()

  File 
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beancount/ingest/extract.py"
, line 250, in main

    return scripts_utils.trampoline_to_ingest(sys.modules[__name__])

  File 
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beancount/ingest/scripts_utils.py"
, line 132, in trampoline_to_ingest

    return run_import_script_and_ingest(parser)

  File 
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beancount/ingest/scripts_utils.py"
, line 191, in run_import_script_and_ingest

    mod = runpy.run_path(args.config)

  File 
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py",
 line 263, in run_path

    pkg_name=pkg_name, script_name=fname)

  File 
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py",
 line 96, in _run_module_code

    mod_name, mod_spec, pkg_name, script_name)

  File 
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py",
 line 85, in _run_code

    exec(code, run_globals)

  File "jfs.impcfg", line 32, in <module>

    fidelityvisa.Importer('Liabilities:US:FidelityVisa'),

  File 
"/Users/jonathan/Documents/Beancount/importers/fidelityvisa/__init__.py",
 line 34, in __init__

    'fidelity')

  File 
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/beancount/ingest/importers/csv.py"
, line 135, in __init__

    assert isinstance(skip_lines, int)

AssertionError

I noticed the csv.py on the Bitbucket source was slightly different, so I 
copied that into a local directory and imported that.  That was trying to 
import the new mixins, so that didn't work. (I suspect if I download those 
my importer would break with that too.) Is the "assert 
isinstance(skip_lines, int) a new addition?  Is there an easy way to fix 
this?  I took a look, but didn't see anything obvious yet.  I can upload my 
__init__.py file if needed.  This broke for two accounts, both similar 
except for csv column details.

Thanks for all the great work Martin, and others.  Other than being a 
little hard to understand your code and never enough time to use it fully, 
I do enjoy using Beancount.

Jonathan 



-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beancount+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/bc2517dd-b75e-477d-943b-cbb4f80ef3ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to