Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run demo.py failed #12

Closed
zdm110 opened this issue Jan 31, 2019 · 7 comments
Closed

run demo.py failed #12

zdm110 opened this issue Jan 31, 2019 · 7 comments

Comments

@zdm110
Copy link

zdm110 commented Jan 31, 2019

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
Copy link
Author

zdm110 commented Feb 1, 2019

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
Copy link
Owner

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
Copy link

JeanPaul20 commented Feb 11, 2019 via email

@zdm110
Copy link
Author

zdm110 commented Feb 12, 2019

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

@JeanPaul20
Copy link

JeanPaul20 commented Feb 20, 2019

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
Copy link
Author

zdm110 commented Feb 21, 2019

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

@zengyh1900
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants