-
Notifications
You must be signed in to change notification settings - Fork 5k
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
python unicode error -> FileNotFoundError: The path does not exist. #2677
Comments
Hi @dyc081818, Could you please provide the steps to reproduce the above error. Thanks! |
I wrote a simple example script in python, like the following, it can run successfully
But if you add Unicode characters to the path of pip site-packages, for example, like this:
This error will appear: "FileNotFoundError: The path does not exist." It is no problem to remove the Unicode characters. I tried to find the C++ code. The error was reported in the mediapipe/framework/deps/file_helpers.cc file. In Exists function failed to use stat to check whether the file exists. Then I create a new C++ project and try to call the stat function. It is no problem to add Unicode characters to the path. It is not too clear why the stat function called by mediapipe fails. |
Similar to #2162 (comment)? |
No, the title was wrong and I corrected it immediately. I found this problem after packaging with pyinstaller, but then I tested it in the editor and the same error, indicating that it was not a problem with pyinstaller |
Has anyone encountered this problem? |
I have the same problem |
+1 |
1 similar comment
+1 |
This helped me with the 237 line error, I just followed the instruction of [Bar-Levav] (edited .spec file + special pyinstaller compilation command): |
Thanks Reply The above configuration is added to copy the modules folder to the target folder, and it can run correctly
mediapipe doesn't seem to be able to find binaries in paths containing unicode |
Hello, I'm having this same problem using midiapipe, can you help me. |
Hello @dyc081818, You can continue to use those legacy solutions in your applications if you choose. Though, we would request you to check new MediaPipe solutions which can help you more easily build and customize ML solutions for your applications. These new solutions will provide a superset of capabilities available in the legacy solutions. |
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you. |
This issue was closed due to lack of activity after being marked stale for past 7 days. |
I use pyinstaller to compile the Python project, and finally generate an exe executable file. When the exe file path contains unicode characters, it will report an error:
The text was updated successfully, but these errors were encountered: