Package: makehuman Version: 1.1.1-1.1 Severity: important Tags: patch Dear Maintainer,
When I used export menu in makehuman, I always got errors as follows, and no exported file was created. ----------error details---------------- Creating folder /home/mine/makehuman/v1/exports/textures Exception during event onFileSelected Traceback (most recent call last): File "./core/events3d.py", line 211, in callEvent method(event) File "./apps/gui/guiexport.py", line 112, in onFileSelected exporter.export(gui3d.app.selectedHuman, filename) File "plugins/9_export_collada/__init__.py", line 132, in export exportCollada(filename("dae"), cfg) File "plugins/9_export_collada/mh2collada.py", line 79, in exportCollada meshes = [obj.mesh.clone(config.scale, filterMaskedVerts=not config.hiddenGeom) for obj in objects] File "./core/module3d.py", line 160, in clone self.filterMaskedVerts(other, update=False) File "./core/module3d.py", line 311, in filterMaskedVerts inverse_uv_idx[uv_idx] = np.arange(self.texco.shape[0], dtype=np.int32) ValueError: shape mismatch: value array of shape (21334,) could not be broadcast to indexing result of shape (14517,) ---------------------------- I found this problem was already fixed in upstream(*1), so that I suggest patch attached this report. (*1) Upstream's commit: a5b4e3f8 in github.com/makehumancomunity/makehuman Of cause, I already apply this patch to makehuman in my debian box, then I confirmed this problem was fixed. Could you apply this patch? Thank you in advance, --- Takahide Nojima -- System Information: Debian Release: buster/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), LANGUAGE=ja_JP.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages makehuman depends on: ii makehuman-data 1.1.1-1.1 ii python-numpy 1:1.16.2-1 ii python-opengl 3.1.0+dfsg-2 ii python-qt4 4.12.1+dfsg-2+b1 ii python-qt4-gl 4.12.1+dfsg-2+b1 ii python2.7 2.7.16-1 makehuman recommends no packages. Versions of packages makehuman suggests: pn makehuman-doc <none> -- no debconf information
diff -Nur debian.orig/changelog debian/changelog --- debian.orig/changelog 2019-02-25 18:39:08.000000000 +0900 +++ debian/changelog 2019-03-11 03:21:06.703116091 +0900 @@ -1,3 +1,10 @@ +makehuman (1.1.1-1.2) unstable; urgency=medium + + * Fix shape mismatch error in export menu by + a5b4e3f8 commit of github.com/makehumancomunity/makehuman. + + -- Takahide Nojima <nozzy123no...@gmail.com> Mon, 11 Mar 2019 03:16:14 +0900 + makehuman (1.1.1-1.1) unstable; urgency=medium * Non-maintainer upload. diff -Nur debian.orig/patches/fix-export-error.patch debian/patches/fix-export-error.patch --- debian.orig/patches/fix-export-error.patch 1970-01-01 09:00:00.000000000 +0900 +++ debian/patches/fix-export-error.patch 2019-03-11 02:49:09.145980410 +0900 @@ -0,0 +1,11 @@ +--- a/makehuman/core/module3d.py ++++ b/makehuman/core/module3d.py +@@ -308,7 +308,7 @@ + fuvs = self.fuvs[self.face_mask] + uv_idx = np.unique(fuvs.reshape(-1)) + inverse_uv_idx = - np.ones(self.texco.shape[0], dtype=np.int32) +- inverse_uv_idx[uv_idx] = np.arange(self.texco.shape[0], dtype=np.int32) ++ inverse_uv_idx[uv_idx] = np.arange(uv_idx.shape[0], dtype=np.int32) + for i in xrange(self.vertsPerPrimitive): + fuvs[:,i] = inverse_uv_idx[fuvs[:,i]] + diff -Nur debian.orig/patches/series debian/patches/series --- debian.orig/patches/series 2019-02-25 18:39:08.000000000 +0900 +++ debian/patches/series 2019-03-11 03:34:03.322022076 +0900 @@ -1,2 +1,3 @@ 01_makehuman.py.patch sphinx.ext.pngmath.patch +fix-export-error.patch