plocplic
Posts: 66
Joined: Thu Jan 09, 2014 9:31 am

Beginner can't take picture 7D with Gphoto2 on Rpi

Sun Jan 12, 2014 12:27 pm

Hello

Sorry I'm quite new with Linux so I'm lost and my skills are poor

I bought a Raspberry Pi for a photographic project?

I've installed the newest version I can

gphoto2 is able to auto-detect my canon 7D

gphoto2 -- auto-detect
Canon Eos 7D usb : 001,008

But gphoto2 refuses everything else

I got

PTP I/O error
error io-library

What can I do ?

Thanks

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Beginner can't take picture 7D with Gphoto2 on Rpi

Sun Jan 12, 2014 1:20 pm

I've no ideas what the problem might be, but you might get better (more specific) help from the Gphoto2 community than the Raspberry Pi community? http://www.gphoto.org/

plocplic
Posts: 66
Joined: Thu Jan 09, 2014 9:31 am

Re: Beginner can't take picture 7D with Gphoto2 on Rpi

Mon Jan 13, 2014 8:44 pm

Hello

It's very frustrating... I've spent days on that... And for the moment I can't take a picture with my canon's camera (7D and 2 differents powershot)

I've followed the ones who succeedded (http://www.ohmypi.com/)

My Raspi auto-detects the 7D (which is a good point) but that's all. Gphoto2 refuses to take a picture. Always a PTP error or something...

Any help would be nice

Cheers

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Beginner can't take picture 7D with Gphoto2 on Rpi

Mon Jan 13, 2014 9:40 pm

There's loads of hits on Google for gphoto2 ptp I/o error and Canon.

The general solution is
a) check camera settings
b) check the SDCard in the camera isn't full
c) change the timeout value to allow more time for the camera to do its magic
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
AndyD
Posts: 2334
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: Beginner can't take picture 7D with Gphoto2 on Rpi

Mon Jan 13, 2014 10:01 pm

This may not be a solution, but have a look at this thread that appears to be similar. Apparently there is a script to create a more up to date version of gphoto, as mentioned here.

JohnB
Posts: 5
Joined: Mon Jul 09, 2012 10:04 pm

Re: Beginner can't take picture 7D with Gphoto2 on Rpi

Mon Jan 13, 2014 11:58 pm

Hi, not sure if this will help but I had a similar problem when I tried gphoto2 using an RPi. I could detect the camera but not access the attributes I wanted to control. From memory it turned out to be something really simple and to do with the sequence used when starting up (turn on RPi first let it settle and then switch in the camera) and it was then something to do with how the camera was set ( review mode ). It was happening on Powershots and the EOS. It drove me nuts for a couple of days until I got the sequence right. Gphoto2 is a bit like that ... Once I got it going though it was fine..... Tended to crash though when running for a long time with timelapse so I moved to CHDK. As I say not sure if this helps.

Sorry I cannot be more specific ... it was a while ago.

plocplic
Posts: 66
Joined: Thu Jan 09, 2014 9:31 am

Re: Beginner can't take picture 7D with Gphoto2 on Rpi

Tue Jan 14, 2014 10:00 pm

I want to thank you for your answers.

I'm spending so much time on this... I don't take shower any more, my wife and children have gone, my life is a disaster zone because of PTP...

No seriously...

I checked everything you mentionned (unless I have imperfectly understood : I'm french and a complete newbie)

* I've tried to turn on RPi first and then plug my canon
* I've tried all the cameras I got (all canon, damned)
* I've tried with the non graphic interface

I have downloaded and compiled the newest versions...

No success at all...

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Beginner can't take picture 7D with Gphoto2 on Rpi

Tue Jan 14, 2014 10:35 pm

How about setting the longer timeout value?

Have you asked on the gphoto2 forum?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

plocplic
Posts: 66
Joined: Thu Jan 09, 2014 9:31 am

Re: Beginner can't take picture 7D with Gphoto2 on Rpi

Wed Jan 15, 2014 8:39 am

Thanks for your reply Dougie

Sorry but I didn't catch the timeout setting : where am I supposed to change it ?

I didn't find a forum dedicated to gphoto2... I posted on a mailing liste (http://gphoto-software.10949.n7.nabble. ... er-f3.html) but without any answer...

All the best

plocplic
Posts: 66
Joined: Thu Jan 09, 2014 9:31 am

Re: Beginner can't take picture 7D with Gphoto2 on Rpi

Wed Jan 15, 2014 4:01 pm

Me again

I've tried with a NikonD90

Gphoto2 auto detects it :

Code: Select all

Nikon DSC D90 (PTPmode)   usb 001, 012
But I've still the same error (translating from the french it's said : an error occurs in the library in/out etc...)

greiginsydney
Posts: 8
Joined: Tue Sep 25, 2018 9:17 pm

Re: Beginner can't take picture 7D with Gphoto2 on Rpi

Tue Nov 05, 2019 6:40 am

Just in case anyone stumbles upon this old thread, the fix for me was a firmware upgrade of the camera.

GPhoto doesn't like the 7D running 2.0.3 firmware. Upgraded to 2.0.6 and we're good.


- G.

Return to “Troubleshooting”