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

ModuleNotFoundError: No module named '_cffi_backend' #72

Closed
Dazuzi opened this issue Jan 8, 2025 · 3 comments
Closed

ModuleNotFoundError: No module named '_cffi_backend' #72

Dazuzi opened this issue Jan 8, 2025 · 3 comments
Assignees
Labels

Comments

@Dazuzi
Copy link

Dazuzi commented Jan 8, 2025

Getting this with yoga-v1.3.3_win_standalone_x86-64 on Windows 11. v1.3.1-1 is the last version that works.

X:\yoga\yoga>yoga image "X:\random.png" "X:\random.png"
Traceback (most recent call last):
File "X:\yoga\yogawin.py", line 3, in
File "X:\yoga\yoga_init_.py", line 1, in
File "X:\yoga\yoga\image_init_.py", line 228, in
File "X:\yoga\imagequant_init_.py", line 7, in
ModuleNotFoundError: No module named '_cffi_backend'

@flozz flozz self-assigned this Jan 8, 2025
@flozz flozz added the bug label Jan 8, 2025
@flozz
Copy link
Member

flozz commented Jan 8, 2025

I tested Windows and Linux standalone builds, both are broken... I will investigate what happens and add tests to validate the standalone builds before releasing. Thank you for the report!

@flozz
Copy link
Member

flozz commented Jan 8, 2025

I was able to fix my locale Linux standalone build by adding the --include-package=_cffi_backend option to the Nuitka command, so we have a workaround. :)

TODO:

  • Add test to check the standalone builds are working after being build in the CI
  • Add the fix to the build scripts
  • release yoga-v1.3.3-1 with fixed standalone builds
  • Report the bug to Nuitka developer

@flozz
Copy link
Member

flozz commented Jan 8, 2025

The fix is released!

https://github.com/wanadev/yoga/releases/tag/v1.3.3-1

Thank you again! :)

@flozz flozz closed this as completed Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants