python 3 issues with ct.c_char
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libIM7 |
Fix Committed
|
High
|
Fabricio |
Bug Description
Hello, I can't run the library under python3... and new ubuntu ipython works in python3...
buf1, att1 = im7.readim7(fname)
File "/home/
mylib.
TypeError: bytes or integer address expected instead of numpy.str_ instance
I tried by changing the line as suggested in https:/
mylib.
But result in an error too:
buf1, att1 = im7.readim7(fname)
File "/home/
mybuffer.
File "/home/
h = self.header
File "/home/
self.
File "/home/
f = file(self.file, 'rb')
NameError: name 'file' is not defined
Merci Fabrice pour le support!!
Abrazo!
Fixed in https:/ /github. com/FabricioS/ libim7/ commit/ 5ed56e8db92.
libim7 now supports python3.
I would appreciate feedbacks on python2.