Je ne l'ai pas précisé mais la communication entre les classes ne pose pas de soucis en mode monoprocess.
Effectivement l'instruction suivante ne fonctionne pas:
queuescreen.put(540000, np.reshape(listscreen, -1)) # just a try
Les erreur retourner par python:
1 2 3 4 5 6 7 8 9 10 11
| Process Process-1:
Traceback (most recent call last):
File "C:\Users\Ved\AppData\Local\Programs\Python\Python35-32\lib\multiprocessing\process.py", line 254, in _bootstrap
self.run()
File "C:\Users\Ved\AppData\Local\Programs\Python\Python35-32\lib\multiprocessing\process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Ved\PythonProjects\Video\Manager\execution.py", line 21, in processscreen
queuescreen.put(540000, np.reshape(listscreen, -1)) # just a try
File "C:\Users\Ved\AppData\Local\Programs\Python\Python35-32\lib\multiprocessing\queues.py", line 82, in put
if not self._sem.acquire(block, timeout):
TypeError: only length-1 arrays can be converted to Python scalars |
Partager