- michimichi
- Posts: 15
- Joined: Fri Jul 24, 2020 12:24 pm
Raspi4 64bitにてgphoto2をリモートから実行するとエラー
皆さんこんにちは。
Raspberry PI 4 Model B、Raspberry PI OS 64bitですが、gphoto2 をWindowsからリモートデスクトップやSSHで実行すると、
An error occurred in the io-library ('I/O 問題'): 有効なエラーメッセージがありません
*** エラー (-7: 'I/O 問題') ***
のようにエラーになりますが、原因と対策についてアドバイスをお願いします。
gphoto2のデバッグログを見ると、
0.178742 gp_camera_init (2): Initializing camera...
0.178814 gp_libusb1_find_device_lib (2): Looking for USB device (vendor 0x4a9, product 0x3215)... found.
0.178947 gp_libusb1_find_device_lib (2): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01
0.178979 gp_camera_init (2): Loading '/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.27/ptp2'...
0.181349 gp_port_open (2): Opening USB port...
0.181456 gp_libusb1_open (2): ()
0.181540 gp_libusb1_open [libusb1.c:405](0): 'libusb_open (port->pl->d, &port->pl->dh)' failed: Access denied (insufficient permissions) (-3)
0.181892 gp_context_error (0): An error occurred in the io-library ('I/O 問題'): 有効なエラーメッセージがありません
の様になっており、sudoなら動くことまでは分かっています。
また、RaspberryPI OS の32bit版では、SSHでも問題なく動作しました。
64bit版は色々問題があるので、32bit版に戻そうかとも思っています。
よろしくお願いします。
Raspberry PI 4 Model B、Raspberry PI OS 64bitですが、gphoto2 をWindowsからリモートデスクトップやSSHで実行すると、
An error occurred in the io-library ('I/O 問題'): 有効なエラーメッセージがありません
*** エラー (-7: 'I/O 問題') ***
のようにエラーになりますが、原因と対策についてアドバイスをお願いします。
gphoto2のデバッグログを見ると、
0.178742 gp_camera_init (2): Initializing camera...
0.178814 gp_libusb1_find_device_lib (2): Looking for USB device (vendor 0x4a9, product 0x3215)... found.
0.178947 gp_libusb1_find_device_lib (2): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01
0.178979 gp_camera_init (2): Loading '/usr/lib/aarch64-linux-gnu/libgphoto2/2.5.27/ptp2'...
0.181349 gp_port_open (2): Opening USB port...
0.181456 gp_libusb1_open (2): ()
0.181540 gp_libusb1_open [libusb1.c:405](0): 'libusb_open (port->pl->d, &port->pl->dh)' failed: Access denied (insufficient permissions) (-3)
0.181892 gp_context_error (0): An error occurred in the io-library ('I/O 問題'): 有効なエラーメッセージがありません
の様になっており、sudoなら動くことまでは分かっています。
また、RaspberryPI OS の32bit版では、SSHでも問題なく動作しました。
64bit版は色々問題があるので、32bit版に戻そうかとも思っています。
よろしくお願いします。
- michimichi
- Posts: 15
- Joined: Fri Jul 24, 2020 12:24 pm
Re: Raspi4 64bitにてgphoto2をリモートから実行するとエラー
済みません。32bit版なら問題く動作するというのは誤りでした。
32bit版で問題ないように見えたのは、自動ログインしていたためのようです。
64bit版でも、ローカルでログインした状態なら、SSHにてgphoto2を実行しても問題ありませんでした。
とはいえ、自動ログインで使いたくないので、引き続きよろしくお願いします。
32bit版で問題ないように見えたのは、自動ログインしていたためのようです。
64bit版でも、ローカルでログインした状態なら、SSHにてgphoto2を実行しても問題ありませんでした。
とはいえ、自動ログインで使いたくないので、引き続きよろしくお願いします。
- michimichi
- Posts: 15
- Joined: Fri Jul 24, 2020 12:24 pm
Re: Raspi4 64bitにてgphoto2をリモートから実行するとエラー
ユーザをplugdevグループに追加したところ、リモートデスクトップ、sshでも正常に実行できるようになりました。
ありがとうございました。
ありがとうございました。
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Gaming
- Media centres
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion