AceCentre / FaceCommander

Control your computer by making faces
Apache License 2.0
6 stars 4 forks source link

Permissions error when importing _framework_bindings.pyd file in mediapipe package #82

Open alex5105 opened 1 month ago

alex5105 commented 1 month ago

While compiling FaceCommander using Nuitka, an issue occurs with the mediapipe package. Specifically, an ImportError is raised due to permission issues when trying to load the _framework_bindings.pyd file. The error message is:

ImportError: LoadLibraryExW 'D:\workspace\python\AI\Face\FaceCommander\dist\FaceCommander.dist\mediapipe\python_framework_bindings.pyd' failed: Access is denied.

alex5105 commented 1 month ago

This issue happens when running the application as an unprivileged user. It seems related to the need for admin rights when accessing this file. The issue also occurs when running in development mode as an unprivileged user.

Potential solutions might involve adjusting permissions or rethinking the way the package is bundled in the build process.

willwade commented 2 weeks ago

working on a MRE https://gist.github.com/willwade/7cadb98d9590b9aac71aa3e76f4f2f5d