Open hb-2017 opened 1 month ago
There is still an issue with this file, and the Distribution in the find_ eggs_in_zip method cannot be found. I added pkd_sources earlier to make it run properly.
I found that the reason why I encountered this problem may be that I manually copied the dependency packages in the virtual environment to the lib directory in the resource directory. I am doing this because I am trying to solve the following problem.
/Users/mark/project/dnfm-yolo-tutorial/dist/main.app/Contents/MacOS/main ; exit;
mark@Mark ~ % /Users/mark/project/dnfm-yolo-tutorial/dist/main.app/Contents/MacOS/main ; exit;
requests/init.pyc:86: RequestsDependencyWarning: Unable to find acceptable character detection dependency (chardet or charset_normalizer).
init
Traceback (most recent call last):
File "/Users/mark/project/dnfm-yolo-tutorial/dist/main.app/Contents/Resources/boot.py", line 212, in
My code can be packaged normally, but I got this error message when I started it.
I can run it normally in my own local code, and there are no compatibility issues between torchvision and torch versions.
After encountering this error, I also tried to launch main.py directly in the resources directory. I found that it can also be launched, but if I directly launch the. app, it will crash.
My project is to display the phone screen through a GUI interface and detect the screen through YOLOV10.
May I ask how I should solve this problem?
When I was using py2app to package a pyqt5 program, I had already completed the packaging work, but an exception message appeared when starting.
Traceback (most recent call last): File "/Users/mark/project/dnfm-yolo-tutorial/dist/main.app/Contents/Resources/boot.py", line 212, in
_run()
File "/Users/mark/project/dnfm-yolo-tutorial/dist/main.app/Contents/Resources/boot.py", line 84, in _run
exec(compile(source, path, "exec"), globals(), globals())
File "/Users/mark/project/dnfm-yolo-tutorial/dist/main.app/Contents/Resources/main.py", line 8, in
from device_manager.scrcpy_adb import ScrcpyADB
File "", line 259, in load_module
File "device_manager/scrcpy_adb.pyc", line 17, in
ImportError: cannot import name 'YOLOv10' from 'ultralytics' (/Users/mark/project/dnfm-yolo-tutorial/dist/main.app/Contents/Resources/lib/python3.8/ultralytics/init.py)
When I was checking the boot. py file, I found an error in the 'from ctypes. macholib import dyld' in the 'setupuctypes' file, indicating that the module cannot be found correctly.
How should I solve it?