-
Notifications
You must be signed in to change notification settings - Fork 181
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
Use os.path.expanduser("~")
to safely expand path and rename dir
in directory
to avoid dir()
redefinition (close #733).
#734
Conversation
... path and rename `dir` in `directory` to avoid `dir()` redefinition. `dir` is a built-in function in Python, so it should not be used as a variable name. This commit renames `dir` to `directory`. In "Linux", `os.path.expanduser("~")` returns the user's home directory. This avoids to use some hack to find the user name and stitch it to `/home/` to get the user's home directory. It can be an issue since `/home/<USER>` is not always the user's home directory. Signed-off-by: Vincent Stragier <[email protected]>
Thank you very much! Out of interest, what went wrong with the requirements-test.txt? Obviously it would be good if that worked as expected. |
You're welcome. It was not able to install PyQt5, and there is no wheel available on piwheels. I think it's because I'm using a customized lite version of the OS. The error is the following: [...]
Collecting PyQt5
Using cached PyQt5-5.15.9.tar.gz (3.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python /tmp/tmpdt49p82i_in_process.py prepare_metadata_for_build_wheel /tmp/tmp_pcfdr1_
cwd: /tmp/pip-install-fssss9qv/pyqt5_0e7141ed19684365b300a49084706ff3
Complete output (31 lines):
Traceback (most recent call last):
File "/tmp/tmpdt49p82i_in_process.py", line 126, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/tmpdt49p82i_in_process.py", line 280, in <module>
main()
File "/tmp/tmpdt49p82i_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/tmp/tmpdt49p82i_in_process.py", line 130, in prepare_metadata_for_build_wheel
return _get_wheel_metadata_from_wheel(backend, metadata_directory,
File "/tmp/tmpdt49p82i_in_process.py", line 159, in _get_wheel_metadata_from_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/tmp/pip-build-env-bem51h_l/overlay/lib/python3.9/site-packages/sipbuild/api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
File "/tmp/pip-build-env-bem51h_l/overlay/lib/python3.9/site-packages/sipbuild/abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/tmp/pip-build-env-bem51h_l/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 586, in setup
self.apply_user_defaults(tool)
File "project.py", line 68, in apply_user_defaults
super().apply_user_defaults(tool)
File "/tmp/pip-build-env-bem51h_l/overlay/lib/python3.9/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "/tmp/pip-build-env-bem51h_l/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 237, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "/tmp/pip-build-env-bem51h_l/overlay/lib/python3.9/site-packages/pyqtbuild/builder.py", line 69, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/5c/46/b4b6eae1e24d9432905ef1d4e7c28b6610e28252527cdc38f2a75997d8b5/PyQt5-5.15.9.tar.gz#sha256=dc41e8401a90dc3e2b692b411bd5492ab559ae27a27424eed4bd3915564ec4c0 (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.7). Command errored out with exit status 1: /usr/bin/python /tmp/tmpdt49p82i_in_process.py prepare_metadata_for_build_wheel /tmp/tmp_pcfdr1_ Check the logs for full command output.
Using cached PyQt5-5.15.8.tar.gz (3.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python /tmp/tmp6m3hssov_in_process.py prepare_metadata_for_build_wheel /tmp/tmp3o8e72no
cwd: /tmp/pip-install-fssss9qv/pyqt5_19d41be805444b88aafd3a8a63cae530
Complete output (31 lines):
Traceback (most recent call last):
File "/tmp/tmp6m3hssov_in_process.py", line 126, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/tmp6m3hssov_in_process.py", line 280, in <module>
main()
File "/tmp/tmp6m3hssov_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/tmp/tmp6m3hssov_in_process.py", line 130, in prepare_metadata_for_build_wheel
return _get_wheel_metadata_from_wheel(backend, metadata_directory,
File "/tmp/tmp6m3hssov_in_process.py", line 159, in _get_wheel_metadata_from_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/tmp/pip-build-env-xuhsag7e/overlay/lib/python3.9/site-packages/sipbuild/api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
File "/tmp/pip-build-env-xuhsag7e/overlay/lib/python3.9/site-packages/sipbuild/abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/tmp/pip-build-env-xuhsag7e/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 586, in setup
self.apply_user_defaults(tool)
File "project.py", line 69, in apply_user_defaults
super().apply_user_defaults(tool)
File "/tmp/pip-build-env-xuhsag7e/overlay/lib/python3.9/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "/tmp/pip-build-env-xuhsag7e/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 237, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "/tmp/pip-build-env-xuhsag7e/overlay/lib/python3.9/site-packages/pyqtbuild/builder.py", line 69, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/c1/c3/76c52be757e2e07e2f76dfda0e89546a14c1b97004cc7e126851764370b3/PyQt5-5.15.8.tar.gz#sha256=bc85e3efb9135c56c8b88157c8825005fb7cd0f14babd93976778aae82eda360 (from https://pypi.org/simple/pyqt5/) (requires-python:>=3.7). Command errored out with exit status 1: /usr/bin/python /tmp/tmp6m3hssov_in_process.py prepare_metadata_for_build_wheel /tmp/tmp3o8e72no Check the logs for full command output.
[...] |
Hi, thanks for the clarifications. There do seem to be difficulties with different versions of packages in apt and pip, and I often find the pip ones simply don't install (especially so on the 32-bit OS). My advice would be to try installing everything from apt - these are the versions that I (a) know to exist and (b) have tested and normally recommend. It's probably something like |
Hi, Thanks. It works for PyQt5, but not for OpenCV. There I needed to use pip with the option DetailsI've even been to the extent of writing a script to fetch and install the needed dependencies from the piwheels API (e.g., OpenCV headless): I'll soon be abroad for a summer school, but I'll try to rerun the tests when I'll come back. |
Hi, I got around to running the test, but still no success. It's probably due to the exotic nature of the image I use and the lack of attached display. Anyway, here is what I got: Out of 72 tests, 42 failed:vincent@mynaturewatchcamera:~/picamera2 $ DISPLAY=:0.0 python tools/run_tests.py -d ~/picamera_test -p ~/picamera2/
dir: /home/vincent/picamera_test
Picamera2 dir: /home/vincent/picamera2/
Test list files: ['/home/vincent/picamera2/tests/test_list_drm.txt', '/home/vincent/picamera2/tests/test_list.txt']
Running 72 tests
Running tests in /home/vincent/picamera2/tests/test_list_drm.txt
Running /home/vincent/picamera2/examples/overlay_drm.py... FAILED
==================== STDOUT ====================
[0:05:09.773504558] [5496] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:05:09.804624510] [5497] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:05:09.810821997] [5496] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888
[0:05:09.811163383] [5497] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
self.run()
File "/usr/lib/python3.9/threading.py", line 892, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/picamera2/previews/null_preview.py", line 29, in thread_func
callback(picam2)
File "/usr/lib/python3/dist-packages/picamera2/previews/drm_preview.py", line 75, in handle_request
picam2.process_requests(self)
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 1139, in process_requests
display.render_request(display_request)
File "/usr/lib/python3/dist-packages/picamera2/previews/drm_preview.py", line 66, in render_request
self.render_drm(self.picam2, completed_request)
File "/usr/lib/python3/dist-packages/picamera2/previews/drm_preview.py", line 138, in render_drm
raise RuntimeError("Failed to reserve DRM plane")
RuntimeError: Failed to reserve DRM plane
Traceback (most recent call last):
File "/home/vincent/picamera2/examples/overlay_drm.py", line 20, in <module>
picam2.set_overlay(overlay)
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 1528, in set_overlay
self._preview.set_overlay(overlay)
File "/usr/lib/python3/dist-packages/picamera2/previews/drm_preview.py", line 107, in set_overlay
self.render_drm(self.picam2, self.current)
File "/usr/lib/python3/dist-packages/picamera2/previews/drm_preview.py", line 138, in render_drm
raise RuntimeError("Failed to reserve DRM plane")
RuntimeError: Failed to reserve DRM plane
Running /home/vincent/picamera2/examples/preview_drm.py... ERROR
raise runtimeerror("failed to reserve drm plane")
Running /home/vincent/picamera2/tests/drm_stop_restart.py... TIMED OUT
==================== STDOUT ====================
[0:05:18.054845287] [5561] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:05:18.085074024] [5562] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:05:18.097965195] [5561] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888
[0:05:18.098315711] [5562] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
self.run()
File "/usr/lib/python3.9/threading.py", line 892, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/picamera2/previews/null_preview.py", line 29, in thread_func
callback(picam2)
File "/usr/lib/python3/dist-packages/picamera2/previews/drm_preview.py", line 75, in handle_request
picam2.process_requests(self)
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 1139, in process_requests
display.render_request(display_request)
File "/usr/lib/python3/dist-packages/picamera2/previews/drm_preview.py", line 66, in render_request
self.render_drm(self.picam2, completed_request)
File "/usr/lib/python3/dist-packages/picamera2/previews/drm_preview.py", line 138, in render_drm
raise RuntimeError("Failed to reserve DRM plane")
RuntimeError: Failed to reserve DRM plane
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
self.run()
File "/usr/lib/python3.9/threading.py", line 892, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/picamera2/previews/null_preview.py", line 29, in thread_func
callback(picam2)
File "/usr/lib/python3/dist-packages/picamera2/previews/drm_preview.py", line 75, in handle_request
picam2.process_requests(self)
File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 1139, in process_requests
display.render_request(display_request)
File "/usr/lib/python3/dist-packages/picamera2/previews/drm_preview.py", line 66, in render_request
self.render_drm(self.picam2, completed_request)
File "/usr/lib/python3/dist-packages/picamera2/previews/drm_preview.py", line 138, in render_drm
raise RuntimeError("Failed to reserve DRM plane")
RuntimeError: Failed to reserve DRM plane
Running tests in /home/vincent/picamera2/tests/test_list.txt
Running /home/vincent/picamera2/examples/capture_circular_nooutput.py... PASSED
Running /home/vincent/picamera2/examples/capture_dng.py... FAILED
==================== STDOUT ====================
[0:06:57.391474430] [7067] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:06:57.422262033] [7068] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/capture_dng_and_jpeg.py... FAILED
==================== STDOUT ====================
[0:06:58.560389790] [7074] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:06:58.591753617] [7075] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/capture_dng_and_jpeg_helpers.py... FAILED
==================== STDOUT ====================
[0:06:59.164440105] [7087] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:06:59.195247488] [7091] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/capture_full_res.py... FAILED
==================== STDOUT ====================
[0:06:59.775564896] [7096] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:06:59.806774446] [7103] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/capture_headless.py... PASSED
Running /home/vincent/picamera2/examples/capture_helpers.py... FAILED
==================== STDOUT ====================
[0:07:03.547696638] [7187] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:07:03.579909803] [7203] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/capture_mjpeg.py... PASSED
Running /home/vincent/picamera2/examples/capture_old_request.py... FAILED
==================== STDOUT ====================
[0:07:15.535699210] [7279] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:07:15.566669217] [7280] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:07:15.572560778] [7279] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888
[0:07:15.572896556] [7280] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/capture_png.py... FAILED
==================== STDOUT ====================
[0:07:16.158772157] [7285] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:07:16.189386182] [7297] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/capture_to_buffer.py... PASSED
Running /home/vincent/picamera2/examples/capture_video.py... PASSED
Running /home/vincent/picamera2/examples/capture_video_multiple.py... FAILED
==================== STDOUT ====================
[0:07:33.381080684] [7600] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:07:33.412192479] [7666] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:07:33.418162579] [7600] INFO Camera camera.cpp:1028 configuring streams: (0) 1280x720-RGB888 (1) 640x480-YUV420
[0:07:33.418515209] [7666] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1080-SBGGR12_1X12 - Selected unicam format: 2028x1080-pBCC
Traceback (most recent call last):
File "/home/vincent/picamera2/examples/capture_video_multiple.py", line 17, in <module>
picam2.start_recording(encoder2, 'test2.mjpeg', name="lores")
TypeError: start_recording() got an unexpected keyword argument 'name'
Running /home/vincent/picamera2/examples/capture_video_multiple_2.py... FAILED
==================== STDOUT ====================
[0:07:34.526159729] [7695] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:07:34.556963914] [7707] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:07:34.563212959] [7695] INFO Camera camera.cpp:1028 configuring streams: (0) 1280x720-RGB888 (1) 640x480-YUV420
[0:07:34.563540348] [7707] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1080-SBGGR12_1X12 - Selected unicam format: 2028x1080-pBCC
Traceback (most recent call last):
File "/home/vincent/picamera2/examples/capture_video_multiple_2.py", line 18, in <module>
picam2.start_encoder(encoder2, 'test2.mjpeg', name="lores")
TypeError: start_encoder() got an unexpected keyword argument 'name'
Running /home/vincent/picamera2/examples/controls.py... FAILED
==================== STDOUT ====================
[0:07:40.674745802] [7747] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:07:40.705693268] [7748] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/controls_2.py... FAILED
==================== STDOUT ====================
[0:07:41.294906459] [7856] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:07:41.325528795] [7880] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/display_transform_qtgl.py... FAILED
==================== STDOUT ====================
[0:07:41.908585226] [7885] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:07:41.939635378] [7954] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:07:41.945291459] [7885] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888
[0:07:41.945658756] [7954] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/dual_encode.py... PASSED
Running /home/vincent/picamera2/examples/easy_capture.py... FAILED
==================== STDOUT ====================
[0:07:48.780071885] [8066] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:07:48.810832873] [8067] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:07:48.816094029] [8066] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888
[0:07:48.816441566] [8067] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/easy_video.py... PASSED
Running /home/vincent/picamera2/examples/exposure_fixed.py... FAILED
==================== STDOUT ====================
[0:07:55.901149217] [8134] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:07:55.931715930] [8142] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/frame_server.py... PASSED
Running /home/vincent/picamera2/examples/h264_constant_qp.py... PASSED
Running /home/vincent/picamera2/examples/metadata.py... FAILED
==================== STDOUT ====================
[0:08:09.100240675] [8317] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:09.130488521] [8318] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/mp4_capture.py... PASSED
Running /home/vincent/picamera2/examples/opencv_face_detect_2.py... FAILED
==================== STDOUT ====================
[ERROR:[email protected]] global /tmp/pip-wheel-u79916uk/opencv-python_ea2489746b3a43bfb3f2b5331b7ab47a/opencv/modules/core/src/persistence.cpp (505) open Can't open file: '/usr/share/opencv4/haarcascades/haarcascade_frontalface_default.xml' in read mode
[0:08:21.370494291] [8404] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:21.401987327] [8405] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/opencv_mertens_merge.py... PASSED
Running /home/vincent/picamera2/examples/overlay_gl.py... FAILED
==================== STDOUT ====================
[0:08:27.677538561] [8483] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:27.707926690] [8490] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:08:27.713709385] [8483] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888
[0:08:27.714047608] [8490] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/overlay_null.py... PASSED
Running /home/vincent/picamera2/examples/overlay_qt.py... FAILED
==================== STDOUT ====================
[0:08:32.459081019] [8634] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:32.490946541] [8709] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:08:32.496682588] [8634] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888
[0:08:32.497035533] [8709] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/pick_mode.py... PASSED
Running /home/vincent/picamera2/examples/preview.py... FAILED
==================== STDOUT ====================
[0:08:39.477460913] [8846] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:39.508412095] [8847] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/preview_x_forwarding.py... FAILED
==================== STDOUT ====================
[0:08:40.084702423] [8852] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:40.115593775] [8853] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/raw.py... FAILED
==================== STDOUT ====================
[0:08:40.681809996] [8858] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:40.712616288] [8859] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/rotation.py... FAILED
==================== STDOUT ====================
[0:08:41.310695116] [8925] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:41.341516463] [8991] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/still_capture_with_config.py... FAILED
==================== STDOUT ====================
[0:08:41.919544185] [8996] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:41.950370043] [9008] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:08:41.955829643] [8996] INFO Camera camera.cpp:1028 configuring streams: (0) 800x600-YUV420
[0:08:41.956292955] [9008] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/still_during_video.py... PASSED
Running /home/vincent/picamera2/examples/switch_mode.py... FAILED
==================== STDOUT ====================
[0:08:54.052349532] [9280] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:54.083356796] [9292] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/switch_mode_2.py... FAILED
==================== STDOUT ====================
[0:08:54.677507172] [9297] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:54.708768176] [9331] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/title_bar.py... FAILED
==================== STDOUT ====================
[0:08:55.278126601] [9336] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:55.310418728] [9337] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:08:55.315610048] [9336] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888
[0:08:55.315948719] [9337] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/tuning_file.py... FAILED
==================== STDOUT ====================
[0:08:55.902098308] [9342] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:08:55.932997855] [9350] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:08:55.939075158] [9342] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888
[0:08:55.939420106] [9350] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/video_with_config.py... PASSED
Running /home/vincent/picamera2/examples/window_offset.py... FAILED
==================== STDOUT ====================
[0:09:02.643132085] [9382] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:09:02.674241299] [9405] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/examples/zoom.py... FAILED
==================== STDOUT ====================
[0:09:03.240301696] [9410] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:09:03.271447093] [9411] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/tests/app_dual.py... SKIPPED
Running /home/vincent/picamera2/tests/app_full_test.py... FAILED
==================== STDOUT ====================
[0:09:06.033002260] [9430] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:09:06.064731401] [9436] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:09:06.071389403] [9430] INFO Camera camera.cpp:1028 configuring streams: (0) 4056x3040-BGR888 (1) 1014x760-YUV420
[0:09:06.071720446] [9436] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 4056x3040-SBGGR12_1X12 - Selected unicam format: 4056x3040-pBCC
[0:09:06.095850104] [9430] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888 (1) 1332x990-SBGGR10_CSI2P
[0:09:06.096193720] [9436] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 1332x990-SBGGR10_1X10 - Selected unicam format: 1332x990-pBAA
[0:09:06.118848843] [9430] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888 (1) 2028x1080-SBGGR12_CSI2P
[0:09:06.119169849] [9436] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1080-SBGGR12_1X12 - Selected unicam format: 2028x1080-pBCC
[0:09:06.138838272] [9430] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888 (1) 2028x1520-SBGGR12_CSI2P
[0:09:06.139158649] [9436] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
[0:09:06.161856881] [9430] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888 (1) 4056x3040-SBGGR12_CSI2P
[0:09:06.162175109] [9436] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 4056x3040-SBGGR12_1X12 - Selected unicam format: 4056x3040-pBCC
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/tests/app_test.py... FAILED
==================== STDOUT ====================
[0:09:07.323075701] [9440] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:09:07.354340647] [9452] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:09:07.360322806] [9440] INFO Camera camera.cpp:1028 configuring streams: (0) 800x600-XBGR8888
[0:09:07.360664219] [9452] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/tests/autofocus_test.py... SKIPPED
Running /home/vincent/picamera2/tests/async_test.py... PASSED
Running /home/vincent/picamera2/tests/bitrate_check.py... FAILED
==================== STDOUT ====================
[0:09:19.967650107] [9533] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:09:19.998555784] [9534] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:09:20.003993556] [9533] INFO Camera camera.cpp:1028 configuring streams: (0) 1280x720-XBGR8888
[0:09:20.004364025] [9534] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1080-SBGGR12_1X12 - Selected unicam format: 2028x1080-pBCC
None None None
Traceback (most recent call last):
File "/home/vincent/picamera2/tests/bitrate_check.py", line 35, in <module>
if bitrate_low >= bitrate_high or bitrate_high != bitrate_high_again:
TypeError: '>=' not supported between instances of 'NoneType' and 'NoneType'
Running /home/vincent/picamera2/tests/check_timestamps.py... PASSED
Running /home/vincent/picamera2/tests/close_test.py... PASSED
Running /home/vincent/picamera2/tests/close_test_multiple.py... SKIPPED
Running /home/vincent/picamera2/tests/colour_spaces.py... PASSED
Running /home/vincent/picamera2/tests/configurations.py... PASSED
Running /home/vincent/picamera2/tests/context_test.py... PASSED
Running /home/vincent/picamera2/tests/display_transform_null.py... PASSED
Running /home/vincent/picamera2/tests/display_transform_qt.py... FAILED
==================== STDOUT ====================
[0:10:02.364981489] [10423] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:10:02.395773852] [10424] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:10:02.401535239] [10423] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888
[0:10:02.402003319] [10424] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/tests/encoder_start_stop.py... PASSED
Running /home/vincent/picamera2/tests/large_datagram.py... PASSED
Running /home/vincent/picamera2/tests/mjpeg_server.py... PASSED
Running /home/vincent/picamera2/tests/mode_test.py... FAILED
==================== STDOUT ====================
[0:11:00.636379542] [11247] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:11:00.666915893] [11248] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:11:00.673925862] [11247] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888 (1) 1332x990-SBGGR10_CSI2P
[0:11:00.674384984] [11248] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 1332x990-SBGGR10_1X10 - Selected unicam format: 1332x990-pBAA
[0:11:00.690499774] [11247] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888 (1) 2028x1080-SBGGR12_CSI2P
[0:11:00.690957247] [11248] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1080-SBGGR12_1X12 - Selected unicam format: 2028x1080-pBCC
[0:11:00.710851638] [11247] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888 (1) 2028x1520-SBGGR12_CSI2P
[0:11:00.711329796] [11248] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
[0:11:00.734046859] [11247] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888 (1) 4056x3040-SBGGR12_CSI2P
[0:11:00.734528573] [11248] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 4056x3040-SBGGR12_1X12 - Selected unicam format: 4056x3040-pBCC
[0:11:00.782564820] [11247] INFO Camera camera.cpp:1028 configuring streams: (0) 1280x720-XBGR8888 (1) 1332x990-SBGGR10_CSI2P
[0:11:00.783040774] [11248] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 1332x990-SBGGR10_1X10 - Selected unicam format: 1332x990-pBAA
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/tests/multicamera.py... SKIPPED
Running /home/vincent/picamera2/tests/multicamera_2.py... SKIPPED
Running /home/vincent/picamera2/tests/preview_cycle_test.py... FAILED
==================== STDOUT ====================
[0:11:02.546479828] [11294] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:11:02.577295811] [11295] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:11:02.583133839] [11294] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888
[0:11:02.583612220] [11295] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/tests/preview_location_test.py... FAILED
==================== STDOUT ====================
[0:11:04.707055741] [11379] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:11:04.737962674] [11380] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:11:04.743518819] [11379] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888
[0:11:04.743855869] [11380] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/tests/preview_start_stop.py... FAILED
==================== STDOUT ====================
[0:11:05.312910843] [11385] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:11:05.343378450] [11386] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/tests/qt_gl_preview_test.py... FAILED
==================== STDOUT ====================
[0:11:05.907501970] [11391] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
[0:11:05.938095392] [11392] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:11:05.943747463] [11391] INFO Camera camera.cpp:1028 configuring streams: (0) 640x480-XBGR8888
[0:11:05.944120993] [11392] INFO RPI raspberrypi.cpp:851 Sensor: /base/soc/i2c0mux/i2c@1/imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam format: 2028x1520-pBCC
qt.qpa.xcb: could not connect to display :0.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Running /home/vincent/picamera2/tests/stop_slow_framerate.py... ERROR
error: stop took too long 5.028092861175537 seconds
*** 42 TESTS FAILED! *** |
Thanks for the feedback. I think there's probably a couple of things going on. Firstly DRM isn't working, IIRC there are some magic runes you can put into your /boot/cmdline.txt to "spoof" the existence of the display. Also your Qt installation seems unhappy, I've found it depressingly easy to end up with incompatible Qt and OpenCV installations unless you get both of them from apt. But having said all that, maybe a better idea would be to split the tests up a bit better so there are a bunch that can be run easily without any kind of display. I'll put that onto my list of little things to do!! Thanks again. |
dir
is a built-in function in Python, so it should not be used as a variable name. This commit renamesdir
todirectory
.In "Linux",
os.path.expanduser("~")
returns the user's home directory. This avoids using some hack to find the username and stitch it to/home/
to get the user's home directory. It can be an issue since/home/<USER>
is not always the user's home directory, see #733 for more details.P.S.: I was not able to install the
requirements-test.txt
dependencies, so I did not run the tests.