pix2vox icon indicating copy to clipboard operation
pix2vox copied to clipboard

TypeError: 'NoneType' object is not iterable

Open qingchunlizhi opened this issue 6 years ago • 7 comments

/home/duan/anaconda3/envs/venv/lib/python2.7/site-packages/qdarkstyle/init.py:181: FutureWarning: load_stylesheet() will not receive pyside parameter in version 3. Set QtPy environment variable to specify the Qt binding insteady. FutureWarning Traceback (most recent call last): File "/home/duan/pix2vox/ui/gui_main.py", line 115, in slider.valueChanged.connect(lambda value, j=int(index): self.opt_engine.set_label(float(value)/100, j)) File "/home/duan/pix2vox/opt/constrained_opt.py", line 59, in set_label self.update_voxel_model() File "/home/duan/pix2vox/opt/constrained_opt.py", line 42, in update_voxel_model self.preprocess_constraints() File "/home/duan/pix2vox/opt/constrained_opt.py", line 35, in preprocess_constraints color_old, edge_old = self.constraints TypeError: 'NoneType' object is not iterable

I don‘t know whether it is caused by the data?

qingchunlizhi avatar Oct 31 '18 12:10 qingchunlizhi

Hi qingchunlizhi This source code is a bit old, so it is possibly caused by some python packages. Which version of python are you using? 2.x or 3.x?

maxorange avatar Oct 31 '18 15:10 maxorange

python 2.x

kakoedlinnoe avatar Dec 19 '18 11:12 kakoedlinnoe

I am getting the same error. Was the issue resolved?

purplepeach29 avatar Apr 14 '20 08:04 purplepeach29

This code is a bit old so I'm thinking of updating it.

maxorange avatar Apr 17 '20 02:04 maxorange

If you could update it sooner, that would be of great help. Thank you.

On Fri, Apr 17, 2020, 8:01 AM Takumi Moriya [email protected] wrote:

This code is a bit old so I'm thinking of updating it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/maxorange/pix2vox/issues/9#issuecomment-615004083, or unsubscribe https://github.com/notifications/unsubscribe-auth/APFQN72VEJT2YIRQJIB7EWLRM65RPANCNFSM4GAP2GNQ .

purplepeach29 avatar Apr 17 '20 11:04 purplepeach29

I m getting the same error kindly update the code as soon as possible. thank you in advance.

wizard499 avatar May 18 '20 08:05 wizard499

/home/duan/anaconda3/envs/venv/lib/python2.7/site-packages/qdarkstyle/init.py:181: FutureWarning: load_stylesheet() will not receive pyside parameter in version 3. Set QtPy environment variable to specify the Qt binding insteady. FutureWarning Traceback (most recent call last): File "/home/duan/pix2vox/ui/gui_main.py", line 115, in slider.valueChanged.connect(lambda value, j=int(index): self.opt_engine.set_label(float(value)/100, j)) File "/home/duan/pix2vox/opt/constrained_opt.py", line 59, in set_label self.update_voxel_model() File "/home/duan/pix2vox/opt/constrained_opt.py", line 42, in update_voxel_model self.preprocess_constraints() File "/home/duan/pix2vox/opt/constrained_opt.py", line 35, in preprocess_constraints color_old, edge_old = self.constraints TypeError: 'NoneType' object is not iterable

I don‘t know whether it is caused by the data?

Did you found the solution yet? If so, kindly share!

wizard499 avatar May 18 '20 10:05 wizard499