zengyh1900 / 3D-Human-Body-Shape

[ICIMCS'2017] Official Code for 3D Human Body Reshaping with Anthropometric Modeling
https://doi.org/10.1007/978-981-10-8530-7_10
MIT License
340 stars 105 forks source link

run demo.py failed #12

Closed zdm110 closed 5 years ago

zdm110 commented 5 years ago

run on ubuntu16.04 with python3.5, and install requirements.txt python demo.py Using TensorFlow backend. Traceback (most recent call last): File "demo.py", line 7, in from maya_widget import * File "/home/julian/workd/git_baseline/3D-Human-Body-Shape/src/maya_widget.py", line 8, in from PyQt4 import QtGui, QtCore ValueError: PyCapsule_GetPointer called with incorrect name

zdm110 commented 5 years ago

I use sudo python demo.py to run and with below error, Using TensorFlow backend. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' Exception occurred in traits notification handler. Please check the log file for details. Exception occurred in traits notification handler for object: <mayavi.tools.mlab_scene_model.MlabSceneModel object at 0x7f0eb22ba410>, trait: activated, old value: , new value: True Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/traits/trait_notifiers.py", line 519, in _dispatch_change_event self.dispatch( handler, args ) File "/usr/local/lib/python3.5/dist-packages/traits/trait_notifiers.py", line 482, in dispatch handler( args ) File "/home/julian/workd/git_baseline/3D-Human-Body-Shape/src/maya_widget.py", line 55, in update_plot mlab.triangular_mesh(v[:, 0], v[:, 1], v[:, 2], f) TypeError: string indices must be integers Traceback (most recent call last): File "demo.py", line 228, in show_app() File "demo.py", line 222, in show_app win = HumanShapeAnalysisDemo() File "demo.py", line 23, in init self.viewer3D = MayaviQWidget(container) File "/home/julian/workd/git_baseline/3D-Human-Body-Shape/src/maya_widget.py", line 72, in init layout.addWidget(self.ui) TypeError: addWidget(self, QWidget, stretch: int = 0, alignment: Union[Qt.Alignment, Qt.AlignmentFlag] = 0): argument 1 has unexpected type 'QWidget'

zengyh1900 commented 5 years ago

Hi @zdm110 , sorry for the late response, I have tried it on ubuntu16.04/win10/osx, and they all worked well. the packages you need to install are listed in requirements.txt

Thanks, Yanhong.

JeanPaul20 commented 5 years ago

Thank you Yanhong, Going to try again. Greetings Jean Paul

Op ma 11 feb. 2019 02:02 schreef zyh <notifications@github.com:

Hi @zdm110 https://github.com/zdm110 , sorry for the late response, I have tried it on ubuntu16.04/win10/osx, and they all worked well. the packages you need to install are listed in requirements.txt

Thanks, Yanhong.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/1900zyh/3D-Human-Body-Shape/issues/12#issuecomment-462198692, or mute the thread https://github.com/notifications/unsubscribe-auth/ARkIROivqjN3ERqHCDfUAZSpdfvcEIYBks5vMMEsgaJpZM4abeTt .

zdm110 commented 5 years ago

@1900zyh @JeanPaul20 Thanks, I use Anaconda to install all package and works fine.

JeanPaul20 commented 5 years ago

How did you fixe the mlab.triangular error?

mlab.triangular_mesh(v[:, 0], v[:, 1], v[:, 2], f) TypeError: string indices must be integers

Thank you Jean Paul

zdm110 commented 5 years ago

Hi JeanPaul20, actually I still have the error, but it could run.

zengyh1900 commented 5 years ago

This problem only happened when the widget begins running, which will become normal when you further test the demo. I have fixed it.