PDA

View Full Version : Unable to load pictures from camera on Fedora 26



jimbean6
7th August 2017, 12:26 AM
Shotwell will not open my camera to load pictures on F26, no problem on F25.
The error message is

Unable to initialize camera: Unspecified error (-1)

This a real camera, not a phone, Fujifilm finepix, connected through USB.
Jim

nsnbm
7th August 2017, 02:27 AM
I usually just put the card from the camera in a card reader which is a usb device and then navigate to the directory where the photos are and copy or move them. It's never failed me in many years.

amiga
7th August 2017, 03:49 AM
I usually just put the card from the camera in a card reader which is a usb device and then navigate to the directory where the photos are and copy or move them. It's never failed me in many years.

I think the OP and the whole world is aware of that option. You may be unaware that memory cards have physically delicate interfaces which wear out with repeated insertions. Many people prefer to use their camera's USB connection. USB connectors are of course more durable.

To the OP you need to compare the kernel messages you get when plugging in the camera on F25 and F26.

nsnbm
7th August 2017, 09:46 AM
amiga wrote:


I think the OP and the whole world is aware of that option.

Actually, the OP didn't mention anything like that, but in case he wanted to get his photos onto his computer relatively quickly without spending the time researching and resolving his "unspecified error", my experience offered him an alternative which he was free to chose or not of course.

antikythera
7th August 2017, 10:10 AM
what file system is the card formatted to? if xFAT you need to install the drivers from rpmfusion.

kldixon
7th August 2017, 02:29 PM
jimbean6, where is the error reported? if it is by running shotwell in a terminal then you could try looking for other reports in the journal.
Disconnect the camera, then open two terminals. In one, do:


$ su -
# journalctl -f

Then plug the camera in and then run shotwell from the other terminal.
You should see messages in the first terminal when you plug the camera in and, possibly, when you run shotwell.
To stop journalctl do Ctrl+c.

jimbean6
7th August 2017, 08:03 PM
Thanks all, KLDixon I tried it but the results are not too useful, just USB finding the camera
Attached. cheers Jim

jimbean6
7th August 2017, 08:08 PM
Thanks all, KLDixon I tried it but the results are not too useful, just USB finding the camera
Attached. cheers Jim

Looks like the attachment failed. Here it is.

Aug 07 14:47:55 ool-2f115b6a.dyn.optonline.net kernel: usb 1-3: new high-speed USB device number 6 using ehci-pci
Aug 07 14:47:56 ool-2f115b6a.dyn.optonline.net kernel: usb 1-3: New USB device found, idVendor=04cb, idProduct=01e8
Aug 07 14:47:56 ool-2f115b6a.dyn.optonline.net kernel: usb 1-3: New USB device strings: Mfr=0, Product=2, SerialNumber=3
Aug 07 14:47:56 ool-2f115b6a.dyn.optonline.net kernel: usb 1-3: Product: Digital Camera
Aug 07 14:47:56 ool-2f115b6a.dyn.optonline.net kernel: usb 1-3: SerialNumber: 4C3230302020080828AEC58U032718
Aug 07 14:47:56 ool-2f115b6a.dyn.optonline.net mtp-probe[3950]: checking bus 1, device 6: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3"
Aug 07 14:47:56 ool-2f115b6a.dyn.optonline.net mtp-probe[3950]: bus: 1, device: 6 was not an MTP device
Aug 07 14:49:09 ool-2f115b6a.dyn.optonline.net kernel: usb 1-3: USB disconnect, device number 6

amiga
7th August 2017, 11:37 PM
Thanks all, KLDixon I tried it but the results are not too useful, just USB finding the camera

Actually the last three lines are very useful


Aug 07 14:47:56 ool-2f115b6a.dyn.optonline.net mtp-probe[3950]: checking bus 1, device 6: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3"
Aug 07 14:47:56 ool-2f115b6a.dyn.optonline.net mtp-probe[3950]: bus: 1, device: 6 was not an MTP device
Aug 07 14:49:09 ool-2f115b6a.dyn.optonline.net kernel: usb 1-3: USB disconnect, device number 6

mtp-probe was running and checking the camera in line 1. In line 2 it states that your camera was not an MTP (Media Transfer Protocol) device and in line 3 apparently disconnects the device. This is very telling. It is possible that your camera uses the older PTP protocol and that F25 was fine with that. Now that F26 supports the newer MTP protocol it may expect all cameras to be this.

At this point since everything was working fine with F25 you need to boot into F25 and compare these same kernel messages when you plug in the camera. If everything was working before these last three lines should be completely different.

jimbean6
8th August 2017, 02:37 AM
Thanks Amiga I did just that. The results of F25 are different but confusing.
BTW the USB disconnect is not a fault it is from the exit of shotwell.

Aug 07 21:29:33 ool-2f11511c.dyn.optonline.net kernel: usb 1-3: new high-speed USB device number 11 using ehci-pci
Aug 07 21:29:34 ool-2f11511c.dyn.optonline.net kernel: usb 1-3: New USB device found, idVendor=04cb, idProduct=01e8
Aug 07 21:29:34 ool-2f11511c.dyn.optonline.net kernel: usb 1-3: New USB device strings: Mfr=0, Product=2, SerialNumber=3
Aug 07 21:29:34 ool-2f11511c.dyn.optonline.net kernel: usb 1-3: Product: Digital Camera
Aug 07 21:29:34 ool-2f11511c.dyn.optonline.net kernel: usb 1-3: SerialNumber: 4C3230302020080828AEC58U032718
Aug 07 21:29:34 ool-2f11511c.dyn.optonline.net mtp-probe[11916]: checking bus 1, device 11: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3"
Aug 07 21:29:34 ool-2f11511c.dyn.optonline.net mtp-probe[11916]: bus: 1, device: 11 was not an MTP device
Aug 07 21:29:35 ool-2f11511c.dyn.optonline.net tracker-miner-f[1856]: Could not find parent node for URI:'gphoto2://[usb:001,011]/'
Aug 07 21:29:35 ool-2f11511c.dyn.optonline.net tracker-miner-f[1856]: NOTE: URI theme may be outside scheme expected, for example, expecting 'file://' when given 'http://' prefix.
Aug 07 21:29:35 ool-2f11511c.dyn.optonline.net tracker-miner-f[1856]: Could not find parent node for URI:'gphoto2://[usb:001,011]/'
Aug 07 21:29:35 ool-2f11511c.dyn.optonline.net tracker-miner-f[1856]: NOTE: URI theme may be outside scheme expected, for example, expecting 'file://' when given 'http://' prefix.
Aug 07 21:29:35 ool-2f11511c.dyn.optonline.net tracker-miner-f[1856]: Could not set mount point in database 'urn:nepomuk:datasource:b46d3cfa6413367af789b3da46 132c1f', GDBus.Error:org.freedesktop.Tracker1.SparqlError.I nternal: UNIQUE constraint failed: nie:DataObject.nie:url (strerror of errno (not necessarily related): Resource temporarily unavailable)
Aug 07 21:31:02 ool-2f11511c.dyn.optonline.net kernel: usb 1-3: USB disconnect, device number 11

:confused: Jim

antikythera
8th August 2017, 09:26 AM
make sure the package gvfs-gphoto2 is installed. Apparently it provides the necessary PTP support. shotwell should be able to access them if it supports gvfs properly. I believe it does though.

kldixon
8th August 2017, 10:00 AM
This is curious, (and could be a red herring):
idVendor=04cb Fuji Photo Film Co., Ltd
idProduct=01e8 is not in /usr/share/hwdata/usb.ids
The closest are:


04cb Fuji Photo Film Co., Ltd
...
01d5 FinePix F47 (PTP)
01f7 FinePix J250 (PTP)
...

Indeed, there is only one such product in the file, which is a Sony printer:


054c Sony Corp.
...
01e8 UP-DR150 Photo Printer
...

you could try putting an entry for your camera in /usr/share/hwdata/usb.ids.
From a terminal do:


$ gedit admin:///usr/share/hwdata/usb.ids

and, just for good measure, you will get a warning that the character encoding of the file is wrong. Choose 'Western (ISO-8859-15)' and retry. gedit seems to remember and will not put the warning up again.

kldixon
8th August 2017, 10:09 AM
Good point, antikythera. That library is installed on my machine but does not seem to be a dependency of shotwell or libgphoto2

kldixon
8th August 2017, 11:03 AM
Might need gphotofs too


# dnf search 'Picture Transfer Protocol'
Last metadata expiration check: 4:03:32 ago on Tue 08 Aug 2017 06:52:28 BST.
================ Description Matched: Picture Transfer Protocol ================
gvfs-gphoto2.x86_64 : gphoto2 support for gvfs
gphotofs.x86_64 : A FUSE filesystem module to mount your camera as a filesystem

# rpm -q gvfs-gphoto2
gvfs-gphoto2-1.32.1-2.fc26.x86_64

# rpm -q gphotofs
package gphotofs is not installed

antikythera
8th August 2017, 11:18 AM
I don't think it matters, my camera works without that file installed. just the gvfs-gphoto2 package is present on my machines. I don't use shotwell but the images are accessible from caja, eye of mate and gimp.

smr54
8th August 2017, 01:37 PM
I use simple-mtpfs to mount my phone and Nook. Is using command line to do it a possibility for you? If so, it might be worth trying.

kldixon
8th August 2017, 01:59 PM
The thing is, this camera does not do MTP. It would appear it is PTP only. Unless it is some proprietary protocol, but it worked in F25.

smr54
8th August 2017, 03:47 PM
Ah, missed that, sorry.