带有多处理库的Python Py2App错误
我目前试图将我的python应用程序编译成mac应用程序。程序启动正确,但我可以在控制台中看到错误。似乎使用多进程是个问题。我不知道这是否是一个问题,如果是,为什么是这个图书馆而不是其他图书馆? 以下是错误:带有多处理库的Python Py2App错误,python,macos,import,compilation,py2app,Python,Macos,Import,Compilation,Py2app,我目前试图将我的python应用程序编译成mac应用程序。程序启动正确,但我可以在控制台中看到错误。似乎使用多进程是个问题。我不知道这是否是一个问题,如果是,为什么是这个图书馆而不是其他图书馆? 以下是错误: dyld: Library not loaded: @executable_path/../../../../Python3 Referenced from: /Users/mb/Documents/projet/final_app/dist/ping.app/Contents
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文件,不导入包
我正在寻找一种解决方案,使我的列表管理器工作,因为它非常有用。我试图搜索此错误的解决方案,但没有找到具体的解决方案。
我可以获得关于代码的更多信息。
谢谢大家!