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

eynollah image seems to be broken #69

Open
mikegerber opened this issue Mar 20, 2023 · 6 comments
Open

eynollah image seems to be broken #69

mikegerber opened this issue Mar 20, 2023 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@mikegerber
Copy link
Member

% ocrd-eynollah-segment -I OCR-D-IMG-BIN-TEST-SBBBIN -O OCR-D-SEG-LINE-TEST-EYNO -P models default
Using quratorspk/ocrd-galley-eynollah:test-github-actions
17:00:13.408 INFO eynollah - INPUT FILE PHYS_0024 (1/1)
Traceback (most recent call last):
  File "/usr/local/bin/ocrd-eynollah-segment", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/qurator/eynollah/ocrd_cli.py", line 8, in main
    return ocrd_cli_wrap_processor(EynollahProcessor, *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/ocrd/decorators/__init__.py", line 117, in ocrd_cli_wrap_processor
    run_processor(processorClass, ocrd_tool, mets, workspace=workspace, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/ocrd/processor/helpers.py", line 121, in run_processor
    processor.process()
  File "/usr/local/lib/python3.6/dist-packages/qurator/eynollah/processor.py", line 47, in process
    'dir_models': self.resolve_resource(self.parameter['models']),
  File "/usr/local/lib/python3.6/dist-packages/ocrd/processor/base.py", line 219, in resolve_resource
    cwd=cwd, moduled=self.moduledir)
  File "/usr/local/lib/python3.6/dist-packages/ocrd/processor/base.py", line 266, in moduledir
    return resource_filename(self.module, '')
  File "/usr/local/lib/python3.6/dist-packages/ocrd/processor/base.py", line 256, in module
    if sys.modules[fqname].__file__:
AttributeError: module 'qurator' has no attribute '__file__'
@mikegerber mikegerber added the bug Something isn't working label Mar 20, 2023
@mikegerber mikegerber self-assigned this Mar 20, 2023
@mikegerber
Copy link
Member Author

eynollah GitHub seems to have a number of commits after the lastest release (0.0.10 from 2021), waiting for a new release.

@mikegerber
Copy link
Member Author

For some reason, I have the same problem with ocrd-sbb-textline-detector.

And it's using Python 3.6, which it shouldn't?

@mikegerber
Copy link
Member Author

For some reason, I have the same problem with ocrd-sbb-textline-detector.

This is confusing at the problem only happens when calling through ocr-evaluation's make-eval, not when calling the wrapper directly...

@mikegerber
Copy link
Member Author

Problem is related to resource resolving, seems to work when using the full path

@mikegerber
Copy link
Member Author

Seems to be fixed in OCR-D/core, updating minimum version.

@mikegerber
Copy link
Member Author

ocrd-sbb-textline-detector is fixed by updating OCR-D/core. Haven't checked eynollah yet.

@mikegerber mikegerber added question Further information is requested and removed bug Something isn't working labels Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant