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

Fix Pupil camera mode detection in vedc generate_config #56

Open
phausamann opened this issue Jul 15, 2021 · 0 comments
Open

Fix Pupil camera mode detection in vedc generate_config #56

phausamann opened this issue Jul 15, 2021 · 0 comments

Comments

@phausamann
Copy link
Contributor

phausamann commented Jul 15, 2021

As reported by @csinnott91:

Traceback (most recent call last):
  File "/home/sml04/vedb/miniconda3/envs/vedc/bin/vedc", line 33, in <module>
    sys.exit(load_entry_point('ved-capture', 'console_scripts', 'vedc')())
  File "/home/sml04/vedb/miniconda3/envs/vedc/lib/python3.6/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/sml04/vedb/miniconda3/envs/vedc/lib/python3.6/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/sml04/vedb/miniconda3/envs/vedc/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/sml04/vedb/miniconda3/envs/vedc/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/sml04/vedb/miniconda3/envs/vedc/lib/python3.6/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/sml04/vedb/ved-capture/ved_capture/cli/config.py", line 125, in generate_config
    config = get_uvc_config(config, device_name, uid)
  File "/home/sml04/vedb/ved-capture/ved_capture/cli/utils.py", line 201, in get_uvc_config
    pri.VideoDeviceUVC._get_available_modes(uid)
AttributeError: type object 'VideoDeviceUVC' has no attribute '_get_available_modes'

This is due to the refactored VideoDeviceUVC interface (and a good lesson why it's a bad idea to use private methods from other packages).

phausamann added a commit that referenced this issue Jul 15, 2021
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

1 participant