oeg-upm / mapeathor

Translator of spreadsheet mappings into R2RML, RML or YARRRML
https://morph.oeg.fi.upm.es/tool/mapeathor
Apache License 2.0
30 stars 10 forks source link

Pandas openpyxl version #28

Open daniel-dona opened 3 years ago

daniel-dona commented 3 years ago

Investigating #27 bug I found this other possible problem

I was getting this output from Mapeathor:

ERROR: File not found

But the real problem is this:

>>> data = pandas.ExcelFile("input/InputIncidences.xlsx", engine='openpyxl')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/dani/.local/lib/python3.6/site-packages/pandas/io/excel/_base.py", line 824, in __init__
    self._reader = self._engines[engine](self._io)
  File "/home/dani/.local/lib/python3.6/site-packages/pandas/io/excel/_openpyxl.py", line 484, in __init__
    import_optional_dependency("openpyxl")
  File "/home/dani/.local/lib/python3.6/site-packages/pandas/compat/_optional.py", line 109, in import_optional_dependency
    raise ImportError(msg)
ImportError: Pandas requires version '2.5.7' or newer of 'openpyxl' (version '2.4.9' currently installed).

Maybe the error messages can be improved a bit.