I use Python 3.5 64 bit on Windows, the version string is:
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32
I built mamba-image from the github source with the VS 14 2015 Win64 compiler without errors. It is the compiler used to build Python 3.5 (see https://wiki.python.org/moin/WindowsCompilers). The resulting Mamba Image-2.0.1.win-amd64-py3.5.exe installs without any problems.
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
img.show()
File "C:\Program Files\Python35\lib\site-packages\mamba\base.py", line 337, in show
self.gd.showWindow(self.displayId, **options)
File "C:\Program Files\Python35\lib\site-packages\mambaDisplay\dftDisplayer.py", line 72, in showWindow
self.windows[wKey].show(**options)
File "C:\Program Files\Python35\lib\site-packages\mambaDisplay\display2D.py", line 461, in show
self.updateim()
File "C:\Program Files\Python35\lib\site-packages\mambaDisplay\display2D.py", line 424, in updateim
self.drawImage()
File "C:\Program Files\Python35\lib\site-packages\mambaDisplay\display2D.py", line 380, in drawImage
self.tkpi = ImageTk.PhotoImage(self.pilImage.resize(self.dsize, Image.NEAREST))
File "C:\Program Files\Python35\lib\site-packages\PIL\Image.py", line 1550, in resize
return self._new(self.im.resize(size, resample))
TypeError: integer argument expected, got float
>>> Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\Python35\lib\idlelib\run.py", line 119, in main
seq, request = rpc.request_queue.get(block=True, timeout=0.05)
File "C:\Program Files\Python35\lib\queue.py", line 172, in get
raise Empty
queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\Python35\lib\tkinter\__init__.py", line 1549, in __call__
return self.func(*args)
File "C:\Program Files\Python35\lib\site-packages\mambaDisplay\display2D.py", line 161, in resizeEvent
self.drawImage()
File "C:\Program Files\Python35\lib\site-packages\mambaDisplay\display2D.py", line 380, in drawImage
self.tkpi = ImageTk.PhotoImage(self.pilImage.resize(self.dsize, Image.NEAREST))
File "C:\Program Files\Python35\lib\site-packages\PIL\Image.py", line 1550, in resize
return self._new(self.im.resize(size, resample))
TypeError: integer argument expected, got float
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\Python35\lib\idlelib\run.py", line 119, in main
seq, request = rpc.request_queue.get(block=True, timeout=0.05)
File "C:\Program Files\Python35\lib\queue.py", line 172, in get
raise Empty
queue.Empty
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\Python35\lib\tkinter\__init__.py", line 1549, in __call__
return self.func(*args)
File "C:\Program Files\Python35\lib\site-packages\mambaDisplay\display2D.py", line 156, in focusEvent
self.updateim()
File "C:\Program Files\Python35\lib\site-packages\mambaDisplay\display2D.py", line 424, in updateim
self.drawImage()
File "C:\Program Files\Python35\lib\site-packages\mambaDisplay\display2D.py", line 380, in drawImage
self.tkpi = ImageTk.PhotoImage(self.pilImage.resize(self.dsize, Image.NEAREST))
File "C:\Program Files\Python35\lib\site-packages\PIL\Image.py", line 1550, in resize
return self._new(self.im.resize(size, resample))
TypeError: integer argument expected, got float
---
After reviewing the code it seems there are still some divisions not upgraded to the python 3 format (/ instead of // which produce float where integer are expected). It is likely this is what provoke your problem. Lines 277, 278 and 279 in file display2D.py are certainly the culprit.
Tell us if that correct your problem.
Nicolas.
--
You received this message because you are subscribed to the Google Groups "Mamba Image" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mamba-image+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.