- changed status to resolved
processing/report.py scipy.misc.toimage
Issue #54
resolved
Bei mir kommt immer hier ein Fehler der evtl. macOS bedingt ist: enmpabox/processing/report.py line 178 scipy.misc hat bei mir keine toimage:
def generateHTML(self, dirname, imageCount):
basename = 'image' + str(imageCount) + '.png'
relativeDirname = os.path.basename(dirname)
relativeImageFilename = os.path.join(relativeDirname, basename)
absoluteImageFilename = os.path.join(dirname, basename)
scipy.misc.toimage(self.array).save(absoluteImageFilename)
html = list()
html.append(' <p>')
html.append(' <img src="' + relativeImageFilename + '"/>')
html.append(' <br /><i>' + self.caption + '</i></p>')
return html
Das selbe sagt er mir auch in der QGIS console:
import scipy.misc
scipy.misc.toimage
Traceback (most recent call last):
File "<input>", line 1, in <module>
AttributeError: 'module' object has no attribute 'toimage'
Dieser Fehler wird auch geworfen wenn das EnMAP-Box Plugin nicht aktiviert ist.
Comments (2)
-
-
Hi @jakimowb, versuche mal, ob das jetzt geht. Ich kann das ohne Mac schlecht testen.
- Log in to comment
replace the scipy.misc.toimage().save() with Image.fromarray().save() to deal with a missing function in the MacOS QGIS Scipy distribution; resolved
#54→ <<cset 13fa0c961ed6>>