Sequoia not visible as PTP device on Ubuntu


#1

I’m currently trying to connect to my Sequoia via USB to communicate using the PTPy library. Unfortunately I can’t seem to use that or gphoto2 to communicate.

from ptpy import PTPy
camera = PTPy()

Gives the error:
ERROR 2017-07-31 12:09:14 ptpy.transports.usb[MainThread] No USB PTP device found.
ERROR 2017-07-31 12:09:14 ptpy.transports.usb[MainThread] No USB PTP device found.
Traceback (most recent call last):
File “”, line 1, in
File “ptpy/init.py”, line 107, in new
instance = PTPy(device=device)
File “ptpy/ptp.py”, line 712, in init
super(PTP, self).init(*args, **kwargs)
File “ptpy/transports/usb.py”, line 95, in init
self.__acquire_camera(devs)
File “ptpy/transports/usb.py”, line 128, in __acquire_camera
for _ in self.__available_cameras(devs):
File “ptpy/transports/usb.py”, line 123, in __available_cameras
raise PTPError(message)
ptpy.ptp.PTPError: No USB PTP device found.

Using sudo gphoto2 -P gives the error:
*** Error ***
An error occurred in the io-library (‘Could not claim the USB device’): Could not claim interface 0 (Device or resource busy). Make sure no other program (gvfs-gphoto2-volume-monitor) or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
*** Error (-53: ‘Could not claim the USB device’) ***

Can anyone give any pointers on what I might be doing wrong here?

OS: Ubuntu 16.04
Sequoia software version: 1.4.1
Python version: 2.7.12


#2

Managed to solve this one eventually after finding an abstract open source tool that suggested a simple fix I hadn’t thought of.

It turns out it was as simple as unmounting the Sequoia as a mass storage device. As soon as that was done it was able to be communicated with via PTP automatically.