Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Giraffez compatibility with Python 3.7 #69

Closed
flolas opened this issue Feb 26, 2019 · 1 comment · Fixed by #75
Closed

Giraffez compatibility with Python 3.7 #69

flolas opened this issue Feb 26, 2019 · 1 comment · Fixed by #75

Comments

@flolas
Copy link

flolas commented Feb 26, 2019

Hi!
I'm testing Giraffez on Python 3.7 and have the following error:

Traceback (most recent call last):
  File "/Users/flolas/anaconda3/bin/giraffez", line 11, in <module>
    sys.exit(main())
  File "/Users/flolas/anaconda3/lib/python3.7/site-packages/giraffez/__main__.py", line 25, in main
    MainCommand().run()
  File "/Users/flolas/anaconda3/lib/python3.7/site-packages/giraffez/core.py", line 80, in run
    args.run(args)
  File "/Users/flolas/anaconda3/lib/python3.7/site-packages/giraffez/commandline.py", line 363, in run
    if FileReader.check_length(args.input_file, MLOAD_THRESHOLD):
  File "/Users/flolas/anaconda3/lib/python3.7/site-packages/giraffez/io.py", line 122, in check_length
    for i, line in enumerate(f, 1):
RuntimeError: generator raised StopIteration

This is when executing:

giraffez insert com.csv PROD.CODES

@nickolasalvarado
Copy link

I am getting this same issue using a simple command like

giraffez load "file.txt" "db.tablename"

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

Successfully merging a pull request may close this issue.

2 participants