TheJaeLal / LineFormer

Line Chart Data Extraction: Official code for LineFormer - ICDAR23 Paper
24 stars 4 forks source link

Fix FileNotFoundError in pip install #6

Closed tdsone closed 4 months ago

tdsone commented 4 months ago

When running install.sh it errors in step pip install -e mmdetection:

Obtaining file:///LineFormer/mmdetection
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/LineFormer/mmdetection/setup.py", line 192, in <module>
          long_description=readme(),
        File "/LineFormer/mmdetection/setup.py", line 17, in readme
          with open('README.md', encoding='utf-8') as f:
      FileNotFoundError: [Errno 2] No such file or directory: 'README.md'
      [end of output]

This PR includes formatting using black and a dirty fix to the described error which simply deletes the relevant line in setup.py (no impact on functionality).