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

Remote client fails when trying to unpack empty message #125

Open
natezb opened this issue Dec 15, 2020 · 1 comment
Open

Remote client fails when trying to unpack empty message #125

natezb opened this issue Dec 15, 2020 · 1 comment

Comments

@natezb
Copy link
Contributor

natezb commented Dec 15, 2020

I'm working with a remote Thorlabs UC480 camera and having a similar error - no issue with internal channels, but getting TypeError: 'NoneType' object is not iterable. When I define a camera c using c = instrument(paramsets[0]), then go to take an image with it c.grab_image(), I get the attached traceback. The c.grab_image() command has worked for me before, but has been throwing this error recently and I'm not sure how to debug it.

Screen Shot 2020-12-03 at 12 01 17 PM

I'd appreciate any advice in understanding/solving this, thank you in advance!

Originally posted by @mankapandey in #61 (comment)

@NitramC
Copy link

NitramC commented Dec 20, 2020

Just taking a wild guess based on the error and context: I was having a similar issue when getting/setting Facets defined in a class within an Instrument class (the inner class did not inherit from Instrument). The problem was that the "name" property of the Facet was not automatically generated, because the inner class did not inherit from Instrument. Luckily you had a name property that could be manually set. Maybe that's the problem, but again, just a stab in the dark.

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