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

TypeError: 'NoneType' object is not iterable #9

Open
qingchunlizhi opened this issue Oct 31, 2018 · 7 comments
Open

TypeError: 'NoneType' object is not iterable #9

qingchunlizhi opened this issue Oct 31, 2018 · 7 comments

Comments

@qingchunlizhi
Copy link

/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?

@maxorange
Copy link
Owner

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?

@kakoedlinnoe
Copy link

python 2.x

@purplepeach29
Copy link

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

@maxorange
Copy link
Owner

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

@purplepeach29
Copy link

purplepeach29 commented Apr 17, 2020 via email

@wizard499
Copy link

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

@wizard499
Copy link

/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!

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

5 participants