Skip to content

Is pdf_to_csv.py not Python3 ready ? #41

@fx86

Description

@fx86

Cloned the repo and executed python pdf_to_csv.py.

Got this error :

Traceback (most recent call last):
  File "pdf_to_csv.py", line 9, in <module>
    import ConfigParser
ModuleNotFoundError: No module named 'ConfigParser'

Replaced this with configparser (as it is named in Python3) and got the following error :

Traceback (most recent call last):
  File "pdf_to_csv.py", line 16, in <module>
    fileConfig('parsers/logging_config.ini')
  File "/Users/fibinse/anaconda3/lib/python3.6/logging/config.py", line 76, in fileConfig
    formatters = _create_formatters(cp)
  File "/Users/fibinse/anaconda3/lib/python3.6/logging/config.py", line 109, in _create_formatters
    flist = cp["formatters"]["keys"]
  File "/Users/fibinse/anaconda3/lib/python3.6/configparser.py", line 956, in __getitem__
    raise KeyError(key)
KeyError: 'formatters'

Is this script only-Python2 compliant ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions