sped-extractor
sped-extractor copied to clipboard
extract_csv: raw directory might not exist
rvalyi@rvalyi-laptop:~/DEV/l10n_br_spec_sped/l10n_br_spec_sped/scripts$ ./extract_csv.py
extracting tables from pdf for module ecd (232 pages)...
WARNING! It can take a while (easily 20 minutes)
extracting pages 0 to 10...
Traceback (most recent call last):
File "./extract_csv.py", line 49, in <module>
extract_csv("ecd")
File "./extract_csv.py", line 38, in extract_csv
tables.export(export_csv_path, f="csv", compress=False)
File "/usr/local/lib/python3.6/dist-packages/camelot_py-0.7.3-py3.6.egg/camelot/core.py", line 737, in export
File "/usr/local/lib/python3.6/dist-packages/camelot_py-0.7.3-py3.6.egg/camelot/core.py", line 699, in _write_file
File "/usr/local/lib/python3.6/dist-packages/camelot_py-0.7.3-py3.6.egg/camelot/core.py", line 584, in to_csv
File "/home/rvalyi/.local/lib/python3.6/site-packages/pandas/core/frame.py", line 1745, in to_csv
formatter.save()
File "/home/rvalyi/.local/lib/python3.6/site-packages/pandas/io/formats/csvs.py", line 156, in save
compression=self.compression)
File "/home/rvalyi/.local/lib/python3.6/site-packages/pandas/io/common.py", line 400, in _get_handle
f = open(path_or_buf, mode, encoding=encoding)
FileNotFoundError: [Errno 2] No such file or directory: '../specs/ecd/raw/ecd-page-0-table-1.csv'