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

Application crashes and refuse to start #128

Closed
spikedout opened this issue Jul 27, 2021 · 6 comments
Closed

Application crashes and refuse to start #128

spikedout opened this issue Jul 27, 2021 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@spikedout
Copy link

Application has crashed!

<Traceback (most recent call last): File "NormCap.app/Contents/Resources/app/normcap/__main__.py", line 3, in <module> from normcap.app import main File "NormCap.app/Contents/Resources/app/normcap/app.py", line 13, in <module> from normcap import __version__, utils File "NormCap.app/Contents/Resources/app_packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import return original_import(name, *args, **kwargs) File "NormCap.app/Contents/Resources/app/normcap/utils.py", line 14, in <module> import tesserocr # type: ignore # pylint: disable=wrong-import-order File "NormCap.app/Contents/Resources/app_packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import return original_import(name, *args, **kwargs) ImportError: dlopen(/Applications/NormCap.app/Contents/Resources/app_packages/tesserocr.cpython-39-darwin.so, 2): Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib Referenced from: /Applications/NormCap.app/Contents/Resources/app_packages/liblept.5.dylib Reason: image not found>

NormCap version - v0.2.3
OS - macOS Catalina

@dynobo
Copy link
Owner

dynobo commented Jul 29, 2021

Thanks for reporting this, @1lgatto.

The issue is clearly related to the packaging for MacOS: liblept.5.dylib is a dependency for NormCap that get's shipped with the prebuild-package, but libpng16.16.dylib another dependency for that dependency is not included.

I wonder, if you just have a different version of libpng installed, or if it is missing completely. Would you please run the following command and post its output?

ls /usr/local/opt/libpng/lib/

If it's just a different version, I'll try to link against that, too. Otherwise I'd have to include this libpng into the pre-build package.

@dynobo dynobo added the bug Something isn't working label Jul 29, 2021
@dynobo dynobo self-assigned this Jul 29, 2021
@spikedout
Copy link
Author

ls: /usr/local/opt/libpng/lib/: No such file or directory

@spikedout
Copy link
Author

Otherwise I'd have to include this libpng into the pre-build package.

Definitely.

@ghost
Copy link

ghost commented Aug 13, 2021

I wonder, if you just have a different version of libpng installed, or if it is missing completely. Would you please run the following command and post its output?

ls /usr/local/opt/libpng/lib/

On a clean MacOS installation, /usr/local(or libpng in this case) does not exist as far as I know.


Otherwise I'd have to include this libpng into the pre-build package.

Yes please, my brew is installed in a different location.

@dynobo
Copy link
Owner

dynobo commented Aug 13, 2021

Thanks for the infos, @1lgatto and @GrpeApple . I'll try to include libpng into the next package.

(Some background: Theoretically, all dependencies should be discovered by the packaging tool briefcase, but it doesn't find them all. I do my best to add the necessary ones manually, but it's a cumbersome process. I also don't own a Mac, which makes things harder to test for me.)

@dynobo
Copy link
Owner

dynobo commented Aug 27, 2021

All dependencies related problems on MacOS now should be fixed with #140, which I published right now as NormCap v.0.2.6.

Feel free to reopen, in case you still have this issue :-)

@dynobo dynobo closed this as completed Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants