qurator-spk / eynollah

Document Layout Analysis
Apache License 2.0
332 stars 27 forks source link

Cannot run the file giving error. #56

Closed rajsaraiya009 closed 2 years ago

rajsaraiya009 commented 2 years ago

Traceback (most recent call last): File "/usr/bin/pytest", line 11, in load_entry_point('pytest==3.3.2', 'console_scripts', 'pytest')() File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 489, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2852, in load_entry_point return ep.load() File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2443, in load return self.resolve() File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2449, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/usr/lib/python2.7/dist-packages/pytest.py", line 13, in from _pytest.fixtures import fixture, yield_fixture File "/usr/lib/python2.7/dist-packages/_pytest/fixtures.py", line 842, in class FixtureFunctionMarker(object): File "/usr/lib/python2.7/dist-packages/_pytest/fixtures.py", line 844, in FixtureFunctionMarker params = attr.ib(convert=attr.converters.optional(tuple)) TypeError: attrib() got an unexpected keyword argument 'convert'

After running pytest tests it givens me this kind of error. Can anyone help me out with this ?

kba commented 2 years ago

/usr/local/lib/python2.7

Can you try again with an up-to-date version of Python (i.e. > 3.5)?

cneud commented 2 years ago

Hi @rajsaraiya009, unfortunately we do not support Python 2.7 but only 3.5-3.7 (3.8 and newer do not have no support for tensorflow-1.15.x which is required here).

I am closing this, but feel free to re-open or file a new issue in case problems persist with other Python versions.