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

tesseract: split outputs #43973

Closed
wants to merge 2 commits into from
Closed

Conversation

Profpatsch
Copy link
Member

cc maintainer @viric

tested manually on nixpkgs

@FRidh
Copy link
Member

FRidh commented Jul 22, 2018

@GrahamcOfBorg eval

1 similar comment
@FRidh
Copy link
Member

FRidh commented Jul 22, 2018

@GrahamcOfBorg eval

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: tesseract

Partial log (click to expand)

strip is /nix/store/fzsyclvxz1p2ia83caniy93v8cwarg0j-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/a0zqd1jzgbr7fcnpjd2kdsmyhkq164jl-tesseract-3.05.00-dev/lib
patching script interpreter paths in /nix/store/a0zqd1jzgbr7fcnpjd2kdsmyhkq164jl-tesseract-3.05.00-dev
checking for references to /build in /nix/store/a0zqd1jzgbr7fcnpjd2kdsmyhkq164jl-tesseract-3.05.00-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/zgj5gmzlhl53mcplyr336vy9bjn0xm9q-tesseract-3.05.00-man
gzipping man pages under /nix/store/zgj5gmzlhl53mcplyr336vy9bjn0xm9q-tesseract-3.05.00-man/share/man/
strip is /nix/store/fzsyclvxz1p2ia83caniy93v8cwarg0j-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/zgj5gmzlhl53mcplyr336vy9bjn0xm9q-tesseract-3.05.00-man
checking for references to /build in /nix/store/zgj5gmzlhl53mcplyr336vy9bjn0xm9q-tesseract-3.05.00-man...
/nix/store/79l2nwky00gg2bg58r9hqqz8vk5zrqhh-tesseract-3.05.00-bin

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: tesseract

Partial log (click to expand)

strip is /nix/store/h0nc84ybvb8g724fwysvcghh1675wjli-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/xrp0f7lqkb9d49hp7rf1zjkjipj1w5sr-tesseract-3.05.00-dev/lib
patching script interpreter paths in /nix/store/xrp0f7lqkb9d49hp7rf1zjkjipj1w5sr-tesseract-3.05.00-dev
checking for references to /build in /nix/store/xrp0f7lqkb9d49hp7rf1zjkjipj1w5sr-tesseract-3.05.00-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/s6rqm76lh0ccmarcjxc1d86k3kij0jg5-tesseract-3.05.00-man
gzipping man pages under /nix/store/s6rqm76lh0ccmarcjxc1d86k3kij0jg5-tesseract-3.05.00-man/share/man/
strip is /nix/store/h0nc84ybvb8g724fwysvcghh1675wjli-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/s6rqm76lh0ccmarcjxc1d86k3kij0jg5-tesseract-3.05.00-man
checking for references to /build in /nix/store/s6rqm76lh0ccmarcjxc1d86k3kij0jg5-tesseract-3.05.00-man...
/nix/store/jiqzzrddbaksqrlllfnahfnqabkx0y8b-tesseract-3.05.00-bin

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: tesseract

Partial log (click to expand)

strip is /nix/store/qvj6bdvy7vdaxi3my0nq8ghf14njh8wk-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/8l2myl8cnc4kc6885cj1asr2l0kdsc3b-tesseract-3.05.00/lib
patching script interpreter paths in /nix/store/8l2myl8cnc4kc6885cj1asr2l0kdsc3b-tesseract-3.05.00
strip is /nix/store/qvj6bdvy7vdaxi3my0nq8ghf14njh8wk-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/l1d30n7pyia5gizid6l349ybyy2vx060-tesseract-3.05.00-dev/lib
patching script interpreter paths in /nix/store/l1d30n7pyia5gizid6l349ybyy2vx060-tesseract-3.05.00-dev
gzipping man pages under /nix/store/a0k9rz7sbi8ia6qfqid5xy1abkw0yvrw-tesseract-3.05.00-man/share/man/
strip is /nix/store/qvj6bdvy7vdaxi3my0nq8ghf14njh8wk-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/a0k9rz7sbi8ia6qfqid5xy1abkw0yvrw-tesseract-3.05.00-man
/nix/store/344kqc0rqghbxwwvhdqkavjzbhwrgrrz-tesseract-3.05.00-bin

@xeji
Copy link
Contributor

xeji commented Aug 1, 2018

@GrahamcOfBorg build python36Packages.pyocr

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: python36Packages.pyocr

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: python36Packages.pyocr

Partial log (click to expand)

writing pyocr.egg-info/PKG-INFO
writing dependency_links to pyocr.egg-info/dependency_links.txt
writing requirements to pyocr.egg-info/requires.txt
writing top-level names to pyocr.egg-info/top_level.txt
reading manifest file 'pyocr.egg-info/SOURCES.txt'
writing manifest file 'pyocr.egg-info/SOURCES.txt'
running build_ext
error: /nix/store/jghn81pr8xnisrvn8sizalnz7sddigcq-tesseract-3.05.00-bin/lib/libtesseract.so: cannot open shared object file: No such file or directory
builder for '/nix/store/40zgwkj1bm75n71rjy1jqpf8rldp46zx-python3.6-pyocr-0.4.7.drv' failed with exit code 1
error: build of '/nix/store/40zgwkj1bm75n71rjy1jqpf8rldp46zx-python3.6-pyocr-0.4.7.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: python36Packages.pyocr

Partial log (click to expand)

writing pyocr.egg-info/PKG-INFO
writing dependency_links to pyocr.egg-info/dependency_links.txt
writing requirements to pyocr.egg-info/requires.txt
writing top-level names to pyocr.egg-info/top_level.txt
reading manifest file 'pyocr.egg-info/SOURCES.txt'
writing manifest file 'pyocr.egg-info/SOURCES.txt'
running build_ext
error: /nix/store/cnsdnv92jxvjmc8cm7icn155jj81djca-tesseract-3.05.00-bin/lib/libtesseract.so: cannot open shared object file: No such file or directory
builder for '/nix/store/drhj2g7im50frf2w11wz1i63qa2xji1p-python3.6-pyocr-0.4.7.drv' failed with exit code 1
error: build of '/nix/store/drhj2g7im50frf2w11wz1i63qa2xji1p-python3.6-pyocr-0.4.7.drv' failed

@xeji
Copy link
Contributor

xeji commented Aug 1, 2018

This seems to break pyocr.

@Profpatsch
Copy link
Member Author

@xeji: Good catch! I’ve adjusted the input of pyocr, but it seems to have problems running the tests now. Can you take a look at it?
cc @aszlig

@GrahamcOfBorg build python36Packages.pyocr

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: python36Packages.pyocr

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: python36Packages.pyocr

Partial log (click to expand)

AssertionError: False is not true : English training does not appear to be installed. (required for the tests)

----------------------------------------------------------------------
Ran 65 tests in 40.159s

FAILED (failures=1, errors=32)
Test failed: <unittest.runner.TextTestResult run=65 errors=32 failures=1>
error: Test failed: <unittest.runner.TextTestResult run=65 errors=32 failures=1>
builder for '/nix/store/8ig3kv77idrw8aqqpjghjhcwl6p61xpg-python3.6-pyocr-0.4.7.drv' failed with exit code 1
error: build of '/nix/store/8ig3kv77idrw8aqqpjghjhcwl6p61xpg-python3.6-pyocr-0.4.7.drv' failed

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: tesseract

Partial log (click to expand)

/nix/store/6xhmym3wi0brcjjlhigj81g2b717fqkh-tesseract-3.05.00-bin

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: tesseract

Partial log (click to expand)

checking for references to /build in /nix/store/a1rb48ay518x6cmkx9m756fxkw109xnz-tesseract-3.05.00-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/kk0g46avz95n3kjv68yasrvb70i1z7ar-tesseract-3.05.00-man
gzipping man pages under /nix/store/kk0g46avz95n3kjv68yasrvb70i1z7ar-tesseract-3.05.00-man/share/man/
strip is /nix/store/1hi76hr87bd1y1q1qjk0lv8nmcjip1c8-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/kk0g46avz95n3kjv68yasrvb70i1z7ar-tesseract-3.05.00-man
checking for references to /build in /nix/store/kk0g46avz95n3kjv68yasrvb70i1z7ar-tesseract-3.05.00-man...
shrinking RPATHs of ELF executables and libraries in /nix/store/q5ilgp0szfc67awq8zrzw8cg6kybaih4-tesseract-3.05.00
strip is /nix/store/1hi76hr87bd1y1q1qjk0lv8nmcjip1c8-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/q5ilgp0szfc67awq8zrzw8cg6kybaih4-tesseract-3.05.00
checking for references to /build in /nix/store/q5ilgp0szfc67awq8zrzw8cg6kybaih4-tesseract-3.05.00...

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: tesseract

Partial log (click to expand)

patching script interpreter paths in /nix/store/nfhilb8q12rgrc2f71rx0lrrmhiqyb0m-tesseract-3.05.00-data
strip is /nix/store/qfxcr8c4fg7lkybrny9n2sb77bmippdx-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/as0bssl8kr9dfhz3pkn2wh3q3ns3l1gr-tesseract-3.05.00-dev/lib
patching script interpreter paths in /nix/store/as0bssl8kr9dfhz3pkn2wh3q3ns3l1gr-tesseract-3.05.00-dev
gzipping man pages under /nix/store/gl9srm2n93x0l2fyaqkr6xsfq4x3f1gh-tesseract-3.05.00-man/share/man/
strip is /nix/store/qfxcr8c4fg7lkybrny9n2sb77bmippdx-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/gl9srm2n93x0l2fyaqkr6xsfq4x3f1gh-tesseract-3.05.00-man
strip is /nix/store/qfxcr8c4fg7lkybrny9n2sb77bmippdx-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/a3gz8j0wj57ag7n1d3njhvfaivx75xci-tesseract-3.05.00
/nix/store/nm6m2azzq2kjh7yi8jz83iqf2my3rg6w-tesseract-3.05.00-bin

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: python36Packages.pyocr

Partial log (click to expand)

pyocr.error.TesseractError: (-1, 'Unable to find output file last name tried: /build/tess_74qngg9m/output.hocr')

----------------------------------------------------------------------
Ran 65 tests in 94.406s

FAILED (errors=24)
Test failed: <unittest.runner.TextTestResult run=65 errors=24 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=65 errors=24 failures=0>
builder for '/nix/store/g68sj0qh6x6m5bk97z6g0l6aq78gixa3-python3.6-pyocr-0.4.7.drv' failed with exit code 1
error: build of '/nix/store/g68sj0qh6x6m5bk97z6g0l6aq78gixa3-python3.6-pyocr-0.4.7.drv' failed

@xeji
Copy link
Contributor

xeji commented Aug 3, 2018

I believe pyocr needs some additional patching in https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/pyocr/paths.patch to use the correct value of NIX_TESSDATA_PREFIX everywhere. I don't know the package well enough to know exactly what to look for.

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

Successfully merging this pull request may close these issues.

None yet

4 participants