如何解决多处理库的 Python Py2App 错误
我目前尝试将我的 python 应用程序编译为 mac 应用程序。程序正确启动,但随后我可以在控制台中看到错误。似乎使用多进程是一个问题。我不知道这是否是一个问题,如果是,为什么是这个库而不是其他库? 这是错误:
dyld: Library not loaded: @executable_path/../../../../Python3
Referenced from: /Users/mb/Documents/projet/final_app/dist/ping.app/Contents/MacOS/python
Reason: image not found
dyld: Library not loaded: @executable_path/../../../../Python3
Referenced from: /Users/mb/Documents/projet/final_app/dist/ping.app/Contents/MacOS/python
Reason: image not found
Exception in Tkinter callback
Traceback (most recent call last):
File "tkinter/__init__.pyc",line 1883,in __call__
File "/Users/mb/Documents/projet/final_app/dist/ping.app/Contents/Resources/ping.py",line 96,in login
File "/Users/mb/Documents/projet/final_app/dist/ping.app/Contents/Resources/ping.py",line 108,in pingDevices
File "multiprocessing/context.pyc",line 57,in Manager
File "multiprocessing/managers.pyc",line 583,in start
File "multiprocessing/connection.pyc",line 250,in recv
File "multiprocessing/connection.pyc",line 414,in _recv_bytes
File "multiprocessing/connection.pyc",line 383,in _recv
EOFError
这是我的python脚本的导入
from tkinter import *
import os
import requests
import json
import time
from time import sleep
from tkinter import Tk
from multiprocessing import Process,current_process,Manager
这是代码行(第108行是Manager()),问题出在哪里
def pingDevices(self,id):
print("---DEBUT---DEBUT---DEBUT---")
with Manager() as manager:
processes = []
devicesFinal = manager.list()
我使用基本的 setup.py Py2App 文件,没有导入包。
我正在寻找使我的列表管理器工作的解决方案,因为它非常有用。我试图搜索此错误的解决方案,但没有具体找到。 我可以获取有关代码的更多信息。 谢谢!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。