ich habe im Programm unter Python 2.7 folgendes erstellt (es funktioniert):
Code: Alles auswählen
label2=functools.partial(label,newdir=newdir,newdate=newdate)
Code: Alles auswählen
print label2
Code: Alles auswählen
<functools.partial object at 0x00000000048ABAE8>
Code: Alles auswählen
functools.partial(<function label at 0x0000000002E0A840>, newdir='D:\\Projekte\\Bilder\\new', newdate=False)
Code: Alles auswählen
for i in pool.map(label2,([q]*self.anzahl)):
self.count+=1
Das ist das Ganze in Kürze. Kann mir dabei bitte jemand helfen??Traceback (most recent call last):
File "D:\Python\Code\pyQT\PySide-Projekt\jpglabel.pyw", line 206, in on_calcbtn_clicked
for i in pool.map(label2,([q]*self.anzahl)):
File "C:\Python33\lib\multiprocessing\pool.py", line 228, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "C:\Python33\lib\multiprocessing\pool.py", line 564, in get
raise self._value
AttributeError: 'NoneType' object has no attribute 'dict'
Falls der Code ausführlicher benötigt wird, kann ich das noch nachreichen
Danke im Voraus
Mathi