question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--display capture giving an error

See original GitHub issue

I’ve downloaded the latest version of the examples from this repository, they run fine on my ssd1306 screen However when I try to output to PNG files using the capture option (~/examples $ ./demo.py --display capture) I get the following error:

demo.py: error: argument --display/-d: invalid choice: 'capture' (choose from 'ssd1306', 'ssd1309', 'ssd1322', 'ssd1362', 'ssd1322_nhd', 'ssd1325', 'ssd1327', 'ssd1331', 'ssd1351', 'sh1106', 'ws0010', 'winstar_weh', 'linux_framebuffer')

I note that help shows the following:

--display DISPLAY, -d DISPLAY
                        Display type, supports real devices or emulators. Allowed values are:
                        ssd1306, ssd1309, ssd1322, ssd1362, ssd1322_nhd, ssd1325, ssd1327,
                        ssd1331, ssd1351, sh1106, ws0010, winstar_weh, linux_framebuffer (default:
                        ssd1306)

whereas the README.md for here shows quite a different list:

--display DISPLAY, -d DISPLAY
                        Display type, supports real devices or emulators.
                        Allowed values are: ssd1306, ssd1309, ssd1322,
                        ssd1362, ssd1322_nhd, ssd1325, ssd1327, ssd1331,
                        ssd1351, sh1106, ws0010, winstar_weh, pcd8544, st7735,
                        ht1621, uc1701x, st7567, ili9341, ili9486, hd44780,
                        max7219, ws2812, neopixel, neosegment, apa102,
                        unicornhathd, capture, gifanim, pygame, asciiart,
                        asciiblock, linux_framebuffer (default: ssd1306)

luma.core version info as follows:

:~ $ python3 -m pip show luma.core
Name: luma.core
Version: 2.3.1
Summary: A component library to support SBC display drivers
Home-page: https://github.com/rm-hull/luma.core
Author: Richard Hull
Author-email: richard.hull@destructuring-bind.org
License: MIT
Location: /usr/local/lib/python3.9/dist-packages
Requires: smbus2, pillow, deprecated, cbor2, pyftdi, RPI.GPIO, spidev
Required-by: luma.oled

luma.oled version info as follows:

:~ $ python3 -m pip show luma.oled
Name: luma.oled
Version: 3.8.1
Summary: A small library to drive an OLED device with either SSD1306, SSD1309, SSD1322, SSD1325, SSD1327, SSD1331, SSD1351, SSD1362, SH1106 or WS0010 chipset
Home-page: https://github.com/rm-hull/luma.oled
Author: Richard Hull
Author-email: richard.hull@destructuring-bind.org
License: MIT
Location: /usr/local/lib/python3.9/dist-packages
Requires: luma.core
Required-by:

The bit that’s esp frustrating is I managed to get it to work a month or so ago on a different unit and I can’t work out why it’s not wanting to work here! Thanks in advance for any help/advice!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
EDIflyercommented, Feb 1, 2022

OK have done a PR for that - thanks again @rm-hull and @thijstriemstra - greatly appreciate the rapid help! 👍🥳

1reaction
rm-hullcommented, Feb 1, 2022

So I wonder if the pre-requisites need to be change from libsdl-image1.2-dev to libsdl2-image-2.0-0?

quite probably

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix Display Capture not Working in OBS Studio [Black ...
Step 3) In OBS click Display Capture > Properties > Capture Method > Windows 10 (1903 and up). Click on Tools > Check...
Read more >
How to Fix OBS Display Capture Not Working? Try ... - MiniTool
Follow the guide to do that: Step 1: Press the Win + X keys to choose Device Manager.
Read more >
Display Capture Not Working (No Properties Unavailable)
This issue on display capture is usually caused by not giving OBS permissions for screen recording in system preferences. O ...
Read more >
How to Fix an OBS Black Screen Capture Error
Another very common issue people have when they come across the OBS black screen capture error is when attempting to capture any windows...
Read more >
Error Codes - 14003 (Failed to Capture the Host Display)
This is an issue on the host's computer (the person attempting to host a game) that means Parsec couldn't capture their display. Below......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found