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

Is pdf_to_csv.py not Python3 ready ? #41

Open
fx86 opened this issue Jan 14, 2019 · 1 comment
Open

Is pdf_to_csv.py not Python3 ready ? #41

fx86 opened this issue Jan 14, 2019 · 1 comment

Comments

@fx86
Copy link

fx86 commented Jan 14, 2019

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 ?

@gggodhwani
Copy link
Member

gggodhwani commented Feb 1, 2019

At this moment yes, its not Python 3 ready. Though we welcome pull requests from the community to help us migrate towards Python 2.7 & Python 3.x compatible code.

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

No branches or pull requests

2 participants