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

extract_csv: raw directory might not exist #4

Open
rvalyi opened this issue Jun 1, 2020 · 0 comments
Open

extract_csv: raw directory might not exist #4

rvalyi opened this issue Jun 1, 2020 · 0 comments

Comments

@rvalyi
Copy link
Member

rvalyi commented Jun 1, 2020

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'
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