mosaic
mosaic copied to clipboard
Playing with this and I got this odd error.
C:\code\sold>python driver.py flag.jpg Images 'python' is not recognized as an internal or external command, operable program or batch file.
C:\code\sold>c:\Python27\python.exe driver.py flag.jpg Images
Reading tiles from 'Images'...
Processed 60 tiles.
Processing main image...
Main image processed.
Building mosaic, press Ctrl-C to abort...
Traceback (most recent call last):
Traceback (most recent call last):
File "driver.py", line 234, in
File "c:\Python27\lib\multiprocessing\forking.py", line 199, in dump ForkingPickler(file, protocol).dump(obj) File "c:\Python27\lib\pickle.py", line 224, in dump self.save(obj) File "c:\Python27\lib\pickle.py", line 331, in save self.save_reduce(obj=obj, *rv) File "c:\Python27\lib\pickle.py", line 425, in save_reduce save(state) File "c:\Python27\lib\pickle.py", line 286, in save f(self, obj) # Call unbound method with explicit self File "c:\Python27\lib\pickle.py", line 655, in save_dict self._batch_setitems(obj.iteritems()) File "c:\Python27\lib\pickle.py", line 687, in _batch_setitems save(v) File "c:\Python27\lib\pickle.py", line 286, in save f(self, obj) # Call unbound method with explicit self File "c:\Python27\lib\pickle.py", line 554, in save_tuple save(element) File "c:\Python27\lib\pickle.py", line 286, in save f(self, obj) # Call unbound method with explicit self File "c:\Python27\lib\pickle.py", line 731, in save_inst save(stuff) File "c:\Python27\lib\pickle.py", line 286, in save f(self, obj) # Call unbound method with explicit self File "c:\Python27\lib\pickle.py", line 655, in save_dict self._batch_setitems(obj.iteritems()) File "c:\Python27\lib\pickle.py", line 687, in _batch_setitems save(v) File "c:\Python27\lib\pickle.py", line 313, in save (t.name, obj)) pickle.PicklingError: Can't pickle 'ImagingCore' object: <ImagingCore object at 0x02F74830>
I suspect this issue is similar to the one described in this StackOverflow post, I don't have a fix at the moment but would be happy to accept a patch if anyone wants to investigate