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

Hopeless problem ?

Thu Jan 16, 2014 9:54 am

Hi

I am sorry to insist and to multiply posts on the forum. But I find no solution to my problem and it for almost 10 days.

I've bought the Rpi for remoting control of a camera (I use 3 canon : 7D, PowershotA95 and S100)

Ok here is what I've done

> Install newest version of gphoto2
It means that my Rpi got

Code: Select all

This version of gphoto2 is using the following software versions and options:
gphoto2         2.5.3          gcc, popt(m), exif, no cdk, no aa, no jpeg, no readline
libgphoto2      2.5.3.1        all camlibs, gcc, ltdl, EXIF
libgphoto2_port 0.10.0         gcc, ltdl, USB, serial without locking

I've followed the compiling and installing instructions you can find here
http://www.geekingabout.com/controlling ... 2-5-2.html
The same : https://github.com/gonzalo/gphoto2-updater

This method is usually working (http://www.raspberrypi.org/forum/viewto ... 41#p487541 and http://www.raspberrypi.org/phpBB3/viewt ... ts#p361575)

But still it does not work with me ! I tried with a Nikon D90 same I/O error

> Ok here's what the Rpi tells me

Code: Select all

pi@raspberrypi ~ $ gphoto2 --auto-detect
Model                          Port                                                          
----------------------------------------------------------
Canon EOS 7D                   usb:001,004    
That's cool ! but...

Code: Select all

pi@raspberrypi ~ $ gphoto2 --capture-image-and-download
                                                                                             
*** Error ***              
PTP I/O error

*** Error ***              
An error occurred in the io-library ('Unspecified error'): No error description available
ERROR: Could not capture image.
ERROR: Could not capture.

*** Error ***              
PTP I/O error

*** Error ***              
An error occurred in the io-library ('Unspecified error'): No error description available

Each time, the same thing for over 10 days... I've been searching all over the web... Hopeless ?

Code: Select all

photo2 --debug
0.000837 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.002735 main(2): gphoto2 2.5.3
0.003002 main(2): gphoto2 has been compiled with the following options:
0.003132 main(2):  + gcc (C compiler used)
0.003244 main(2):  + popt (mandatory, for handling command-line parameters)
0.003353 main(2):  + exif (for displaying EXIF information)
0.003459 main(2):  + no cdk (for accessing configuration options)
0.003565 main(2):  + no aa (for displaying live previews)
0.003670 main(2):  + no jpeg (for displaying live previews in JPEG format)
0.003776 main(2):  + no readline (for easy navigation in the shell)
0.004965 main(2): libgphoto2 2.5.3.1
0.006027 main(2): libgphoto2 has been compiled with the following options:
0.006176 main(2):  + all camlibs
0.007990 main(2):  + gcc (C compiler used)
0.008126 main(2):  + ltdl (for portable loading of camlibs)
0.008234 main(2):  + EXIF (for special handling of EXIF files)
0.008421 main(2): libgphoto2_port 0.10.0
0.008602 main(2): libgphoto2_port has been compiled with the following options:
0.008717 main(2):  + gcc (C compiler used)
0.008823 main(2):  + ltdl (for portable loading of camlibs)
0.008927 main(2):  + USB (libusb1, for USB cameras)
0.009029 main(2):  + serial (for serial cameras)
0.009128 main(2):  + no resmgr (serial port access and locking)
0.009232 main(2):  + no ttylock (serial port locking)
0.009335 main(2):  + no lockdev (serial port locking)
0.009440 main(2): CAMLIBS env var not set, using compile-time default instead
0.009546 main(2): IOLIBS env var not set, using compile-time default instead
0.009884 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.010579 setting/gphoto2-setting.c(2): Loading settings from file "/home/pi/.gphoto/settings"
0.014350 gp-camera(2): Freeing camera...
0.014595 gphoto2-port(2): Freeing port...
0.014843 gphoto2-filesystem(2): resetting filesystem
0.018563 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list...
0.018707 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
0.018826 gphoto2-filesystem(2): Internally deleting all folders from '/'...
0.018962 gphoto2-filesystem(2): Lookup folder '/'...
0.019080 gphoto2-filesystem(2): Found! / is 0x1373b38
0.019193 gphoto2-filesystem(2): Recurse delete folder 0x1373b38//

thanks very much If someone could help me...

Barnot
Posts: 1
Joined: Thu Jan 16, 2014 9:06 pm

Re: Hopeless problem ?

Thu Jan 16, 2014 9:08 pm

I've got the same problem...

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

Re: Hopeless problem ?

Sat Jan 18, 2014 8:42 am

Hello,

I'm still trying to solve that problem.

Do you think it may be a solution to try an other OS ?

I forgot to tell that I've chosen Raspbian at the beginning... Maybe I should try another one ?

Please help me...

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

Re: Hopeless problem ?

Sun Jan 19, 2014 10:43 am

I've received an answer from Marcus Meissner (who created gphoto2)
It is so far a unknown problem.
he said and he wanted a logfile but I can't give it to him

Code: Select all

pi@raspberrypi ~ $ gphoto2 --debug --debug-logfile=logfile -L
                                                                               
*** Error ***              
PTP I/O error

*** Error ***              
An error occurred in the io-library ('Unspecified error'): No error description available
*** Error (-1: 'Unspecified error') ***

*** Error ***              
An error occurred in the io-library ('Unspecified error'): No error description available
That's so frustrating !
cheers

User avatar
Richard-TX
Posts: 1549
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas

Re: Hopeless problem ?

Sun Jan 19, 2014 10:53 am

when a program does not give good diagnostics, then it is time to break out the big guns.

strace is what you want.

Make sure you run it as root.

Even if you cannot understand the output from strace, the author should.
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip

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

Re: Hopeless problem ?

Sun Jan 19, 2014 11:24 am

Thanks Richard

I love big guns !

Could you be more explicit : how should I use starce for gphoto2 ?

Thanks

****
I've tried

stace ghoto2

And got a lot of things... I think it was the way to do... Thanks

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

Re: Hopeless problem ?

Mon Jan 20, 2014 8:10 am

Hello

I really need help from raspberry users.

I sent a logfile to the Headchief of Gphoto2

After saying it was an "unknown problem", he said
It is the usual scenario where the camera does not react to stuff being
sent to it :(

Occasionaly the camera is allowed to be accessed once after plugging it in
in these scenarios.

It is not always clear why this happens, if its hardware or software
related ... It is probably not libgphoto2 related :/
So I asked what can I do, but he has no solution...

Could someone help me please ?

I don't know what I have done wrong.
I've tried with 3 canon camera and 1 nikon, I've installed Raspian and Gphoto2 twice...

I don't know what to do...

Thanks

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

Re: Hopeless problem ?

Wed Jan 22, 2014 5:33 pm

Hi

I've now tried with a new camera, a Panasonic Lumix which can be set with a PTP (pictbridge)

But, damned, again the same error...

So the problem comes from the Rasperry Pi ?

Among the 300 readers of that post, maybe someone could give me a piece of advice ? Apart being totally stupid, what am I doing wrong ?

Do you think I should try to erase my SD card and try again a clean Install of raspbian, then again Gphoto2 (I hope I've done that the good way previously)

Please, I need help !
Thanks

here is the debug about the Panasonic

Code: Select all

pi@raspberrypi ~ $ gphoto2 --debug
0.000977 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.002224 main(2): gphoto2 2.5.3
0.007467 main(2): gphoto2 has been compiled with the following options:
0.007619 main(2):  + gcc (C compiler used)
0.007730 main(2):  + popt (mandatory, for handling command-line parameters)
0.007836 main(2):  + exif (for displaying EXIF information)
0.007941 main(2):  + no cdk (for accessing configuration options)
0.008045 main(2):  + no aa (for displaying live previews)
0.008152 main(2):  + no jpeg (for displaying live previews in JPEG format)
0.008256 main(2):  + no readline (for easy navigation in the shell)
0.008436 main(2): libgphoto2 2.5.3.1
0.008603 main(2): libgphoto2 has been compiled with the following options:
0.008721 main(2):  + all camlibs
0.008822 main(2):  + gcc (C compiler used)
0.008925 main(2):  + ltdl (for portable loading of camlibs)
0.009029 main(2):  + EXIF (for special handling of EXIF files)
0.009195 main(2): libgphoto2_port 0.10.0
0.009358 main(2): libgphoto2_port has been compiled with the following options:
0.009476 main(2):  + gcc (C compiler used)
0.009579 main(2):  + ltdl (for portable loading of camlibs)
0.009685 main(2):  + USB (libusb1, for USB cameras)
0.009788 main(2):  + serial (for serial cameras)
0.009892 main(2):  + no resmgr (serial port access and locking)
0.009995 main(2):  + no ttylock (serial port locking)
0.010099 main(2):  + no lockdev (serial port locking)
0.010336 main(2): CAMLIBS env var not set, using compile-time default instead
0.010550 main(2): IOLIBS env var not set, using compile-time default instead
0.010911 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.012485 setting/gphoto2-setting.c(2): Loading settings from file "/home/pi/.gphoto/settings"
0.015538 gp-camera(2): Freeing camera...
0.017694 gphoto2-port(2): Freeing port...
0.017937 gphoto2-filesystem(2): resetting filesystem
0.018074 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list...
0.018189 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
0.018306 gphoto2-filesystem(2): Internally deleting all folders from '/'...
0.018535 gphoto2-filesystem(2): Lookup folder '/'...
0.018666 gphoto2-filesystem(2): Found! / is 0x132eb38
0.018784 gphoto2-filesystem(2): Recurse delete folder 0x132eb38//

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

Re: Hopeless problem ?

Thu Jan 23, 2014 6:12 am

Mmmmm... Not so many answers...

I asked again Marcus from Gphoto2, he replied
Can you try a different supplied software stack?
Or the raspian supplied libgphoto2/gphoto2?

(There is no reply in the logfile from the logfile :( )
Could someone help me to understand : what am I supposed to do ?

Thanks

Janhgm
Posts: 1
Joined: Mon Jan 27, 2014 10:05 pm

Re: Hopeless problem ?

Mon Jan 27, 2014 10:19 pm

Hi,

FYI.
It works with my Nikon-D90.

I just installed a Raspbian with gphoto2 a few days ago.
Same version Gphoto2-2.5.3. Did not work either for me either.

Solved with apt-getting at least 100 packages (starting with ghoto2) and rebuilding them all.
Run for each configure and apt-get all packages that are outdated or missing.
Check your configures and builds each time to see if there still something missing.
Do not apt-get multiple packages but just one by one.

BTW.
I installed/build a few gpotolib related desktop application too but you can skip that step. RPI appears to slow to work with them.

User avatar
gergnnud
Posts: 21
Joined: Tue Jul 29, 2014 4:19 am
Location: Sydney Australia

Re: Hopeless problem ?

Tue Jul 29, 2014 4:26 am

I have the same problem. Now Jul 2014 with fresh installs of Raspbian and gphoto2 on 2 x Pis - I can auto-detect a number of different Canon cameras on each Pi but get the same 'unspecified error' trying to capture.

Did you ever get this sorted?
In a class of my own (facing the back corner with some stupid hat on).

itsmedoofer
Posts: 402
Joined: Wed Sep 25, 2013 8:43 am

Re: Hopeless problem ?

Tue Jul 29, 2014 11:38 am

Just a thought, is WIFI disabled on the Canon ?

My 70D cannot communicate via USB if WIFI is enabled, maybe the same for other units...

If someone has the compiled files I'm quite happy to give it a go here....

User avatar
gergnnud
Posts: 21
Joined: Tue Jul 29, 2014 4:19 am
Location: Sydney Australia

Re: Hopeless problem ?

Wed Jul 30, 2014 5:42 am

Update.

I found a solution, at least for me.
http://www.freeklijten.nl/home/2011/06/ ... omment-672

Code: Select all

sudo rm /usr/share/dbus-1/services/org.gtk.Private.GPhoto2VolumeMonitor.service
sudo rm /usr/share/gvfs/mounts/gphoto2.mount
sudo rm /usr/share/gvfs/remote-volume-monitors/gphoto2.monitor
sudo rm /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
Now it works.
In a class of my own (facing the back corner with some stupid hat on).

JManDoo
Posts: 1
Joined: Mon Jan 19, 2015 4:05 am

Re: Hopeless problem ?

Mon Jan 19, 2015 4:07 am

Just run
gphoto2 --reset first

Adventures365
Posts: 1
Joined: Sun Feb 01, 2015 6:12 am

Re: Hopeless problem ?

Sun Feb 01, 2015 6:21 am

Here is the ultimate solution for all of you's "HOPELESS PROBLEM":
http://www.instructables.com/id/Raspber ... /?ALLSTEPS

It works 100%...!! :lol: :D
bye bye PTP/io error booohaaaaa...!

beamzer
Posts: 1
Joined: Sat Jun 11, 2016 7:36 am

Re: Hopeless problem ?

Sat Jun 11, 2016 7:39 am

I had the same problem, but it turned out my camera storage was full.
After freeing up some space the error was gone.

Return to “Troubleshooting”