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

Failed to run example code: 'NoneType' object is not iterable #10

Open
mengyuest opened this issue Dec 17, 2018 · 1 comment
Open

Failed to run example code: 'NoneType' object is not iterable #10

mengyuest opened this issue Dec 17, 2018 · 1 comment

Comments

@mengyuest
Copy link

Hi. When I ran the example code in README, it showed

WARNING:root:Failed to import geometry msgs in rigid_transformations.py.
WARNING:root:Failed to import ros dependencies in rigid_transforms.py
WARNING:root:autolab_core not installed as catkin package, RigidTransform ros methods will be unavailable
Unable to import DataStreamSyncer and Recorder! Likely due to missing multiprocess
WARNING:root:autolab_perception is not installed as a catkin package - ROS msg conversions will not be available for image wrappers
WARNING:root:autolab_perception is not installed as a catkin package - ROS msg conversions will not be available for image wrappers
/usr/local/lib/python3.5/dist-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
WARNING:root:Unable to import pylibfreenect2. Python-only Kinect driver may not work properly.
WARNING:root:Unable to import Primsense sensor modules! Likely due to missing OpenNI2.
WARNING:root:Failed to import ROS in ensenso_sensor.py. ROS functionality not available
WARNING:root:Unable to import generic sensor modules!.
Exception ignored in: <bound method Scene.__del__ of <meshrender.scene.Scene object at 0x7f005f878e80>>
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/meshrender-0.0.6-py3.5.egg/meshrender/scene.py", line 284, in __del__
  File "/usr/local/lib/python3.5/dist-packages/meshrender-0.0.6-py3.5.egg/meshrender/scene.py", line 281, in close
  File "/usr/local/lib/python3.5/dist-packages/meshrender-0.0.6-py3.5.egg/meshrender/scene.py", line 169, in close_renderer
  File "/usr/local/lib/python3.5/dist-packages/meshrender-0.0.6-py3.5.egg/meshrender/render.py", line 222, in close
  File "/home/meng/meshrender/.eggs/PyOpenGL-3.1.0-py3.5.egg/OpenGL/platform/baseplatform.py", line 401, in __call__
  File "/home/meng/meshrender/.eggs/PyOpenGL-3.1.0-py3.5.egg/OpenGL/platform/baseplatform.py", line 381, in load
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 954, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 887, in _find_spec
TypeError: 'NoneType' object is not iterable
Exception ignored in: <bound method OpenGLRenderer.__del__ of <meshrender.render.OpenGLRenderer object at 0x7effbc333cf8>>
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/meshrender-0.0.6-py3.5.egg/meshrender/render.py", line 583, in __del__
  File "/usr/local/lib/python3.5/dist-packages/meshrender-0.0.6-py3.5.egg/meshrender/render.py", line 222, in close
  File "/home/meng/meshrender/.eggs/PyOpenGL-3.1.0-py3.5.egg/OpenGL/platform/baseplatform.py", line 401, in __call__
  File "/home/meng/meshrender/.eggs/PyOpenGL-3.1.0-py3.5.egg/OpenGL/platform/baseplatform.py", line 381, in load
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 954, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 887, in _find_spec
TypeError: 'NoneType' object is not iterable

I used sudo python3 setup.py install to install this package under ubuntu16.04. I could not find cube.obj or sphere.obj so I downloaded from other repos(http://people.sc.fsu.edu/~jburkardt/data/obj/cube.obj, https://github.com/SaschaWillems/Vulkan/blob/master/data/models/sphere.obj). And I tried to plot the images generated, but I could not see anything other than background. I thought there could be sth wrong with PyOpenGL (mine is 3.1.0), but I don't know how to solve it. Thanks for your help.

@mengyuest mengyuest changed the title Fail to run example code: 'NoneType' object is not iterable Failed to run example code: 'NoneType' object is not iterable Dec 17, 2018
@Daiver
Copy link

Daiver commented Jan 10, 2019

Hi @mengyuest ! According to TypeError: 'NoneType' object is not iterable did you tried to warp code by main function?
Something like this:

# imports from example
def main():
    # Code from example

main()

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

2 participants