Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exec format error #7

Open
schott1984 opened this issue Dec 4, 2016 · 9 comments
Open

Exec format error #7

schott1984 opened this issue Dec 4, 2016 · 9 comments

Comments

@schott1984
Copy link

Running in a Debian VM. See below. Not sure what's wrong but I'd appreciate the help!

Forgive my sloppy paste...

root@debian:/usr/share/sony-pm-alt# python /usr/share/sony-pm-alt/sony-pm-alt.py
2016-12-04 18:15:29,017 [INFO ] Server starting
2016-12-04 18:15:29,018 [INFO ] Setting download dir [PHOTO_DIR] to: /var/lib/Sony
2016-12-04 18:15:29,018 [INFO ] Setting LD_LIBRARY_PATH to: /usr/local/lib
2016-12-04 18:15:29,018 [DEBUG] BCAST_IP set to: 239.255.255.250
2016-12-04 18:15:29,018 [DEBUG] UPNP_PORT set to: 1900
2016-12-04 18:15:29,018 [DEBUG] GPHOTO_SETTINGS set to: /root/.gphoto/settings
2016-12-04 18:15:29,018 [DEBUG] PTP_GUID set to: ff:ff:52:54:00:b6:fd:a9:ff:ff:52:3c:28:07:a9:3a
2016-12-04 18:15:29,018 [DEBUG] GPHOTO_CMD_ARGS set to: ['/usr/local/bin/gphoto2', '-P', '--skip-existing']

2016-12-04 18:15:29,971 [INFO ] received MtpNullService from ('192.168.1.204', 1900)
2016-12-04 18:15:29,972 [DEBUG] data:
NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=1800
LOCATION: http://192.168.1.204:1900/DeviceDescription.xml
NT: urn:microsoft-com:service:MtpNullService:1
NTS: ssdp:alive
SERVER: FedoraCore/2 UPnP/1.0 MINT-X/1.8.1
USN: uuid:00000000-0001-0010-8000-d8c46a9769b4::urn:microsoft-com:service:MtpNullService:1
2016-12-04 18:15:29,989 [INFO ] Starting new HTTP connection (1): 192.168.1.204
2016-12-04 18:15:30,006 [DEBUG] "GET /DeviceDescription.xml HTTP/1.1" 200 1367
2016-12-04 18:15:30,010 [DEBUG] Got XML - verify if our camera
2016-12-04 18:15:30,010 [DEBUG] Camera Found...starting gphoto
2016-12-04 18:15:30,010 [DEBUG] Current settings in /root/.gphoto/settings

gphoto2=port=ptpip:192.168.1.204
gphoto2=model=PTP/IP Camera
ptp2_ip=guid=ff:ff:52:54:00:b6:fd:a9:ff:ff:52:3c:28:07:a9:3a

2016-12-04 18:15:30,011 [DEBUG] Updating command to include: --port ptpip:192.168.1.204
2016-12-04 18:15:30,011 [DEBUG] Executing: ['/usr/local/bin/gphoto2', '--port', 'ptpip:192.168.1.204', '-P', '--skip-existing']
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/share/sony-pm-alt/sony-pm-alt.py", line 165, in run
PROC = subprocess.Popen(GPHOTO_CMD_ARGS)
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error

@falk0069
Copy link
Owner

falk0069 commented Dec 5, 2016 via email

@schott1984
Copy link
Author

schott1984 commented Dec 5, 2016 via email

@falk0069
Copy link
Owner

falk0069 commented Dec 5, 2016 via email

@schott1984
Copy link
Author

root@debian:~# gphoto2 --version
root@debian:~#

That's what it does with anything calling gphoto.

It worked the first time while following your readme and doing
gphoto2 --port ptpip:192.168.1.204 --summary

Something happened since then to break it.

I think I'm going to nuke the VM and start again when I get the time. Let me know if you figure anything out! It's probably a more basic linux-related thing I just don't know.

@falk0069
Copy link
Owner

falk0069 commented Dec 5, 2016 via email

@schott1984
Copy link
Author

root@debian:# gphoto2
root@debian:
# which
root@debian:# which gphoto2
/usr/local/bin/gphoto2
root@debian:
# ls -l 'which gphoto2'
ls: cannot access which gphoto2: No such file or directory
root@debian:~#

@schott1984
Copy link
Author

Haven't nuked vm, yet.

@schott1984
Copy link
Author

Did not have to nuke. I did apt-get purge gphoto2, then rm /user/local/bin/gphoto2, then apt-get install gphoto2 and now gphoto works.

PTP sequence error, now:
root@debian:/usr/share/sony-pm-alt# gphoto2 --port ptpip:192.168.1.204 --summary --debug
0.000054 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.000117 main(2): gphoto2 2.5.4
0.000145 main(2): gphoto2 has been compiled with the following options:
0.000169 main(2): + gcc (C compiler used)
0.000192 main(2): + popt (mandatory, for handling command-line parameters)
0.000214 main(2): + exif (for displaying EXIF information)
0.000236 main(2): + cdk (for accessing configuration options)
0.000271 main(2): + aa (for displaying live previews)
0.000295 main(2): + jpeg (for displaying live previews in JPEG format)
0.000330 main(2): + readline (for easy navigation in the shell)
0.000356 main(2): libgphoto2 2.5.4
0.000394 main(2): libgphoto2 has been compiled with the following options:
0.000419 main(2): + all camlibs
0.000443 main(2): + gcc (C compiler used)
0.000466 main(2): + ltdl (for portable loading of camlibs)
0.000502 main(2): + EXIF (for special handling of EXIF files)
0.000527 main(2): libgphoto2_port 0.10.0
0.000564 main(2): libgphoto2_port has been compiled with the following options:
0.000588 main(2): + gcc (C compiler used)
0.000610 main(2): + ltdl (for portable loading of camlibs)
0.000642 main(2): + USB (libusb1, for USB cameras)
0.000665 main(2): + serial (for serial cameras)
0.000700 main(2): + no resmgr (serial port access and locking)
0.000764 main(2): + no ttylock (serial port locking)
0.000788 main(2): + no lockdev (serial port locking)
0.000822 main(2): CAMLIBS env var not set, using compile-time default instead
0.000847 main(2): IOLIBS env var not set, using compile-time default instead
0.000869 main(2): invoked with following arguments:
0.000894 main(2): --port
0.000917 main(2): ptpip:192.168.1.204
0.000939 main(2): --summary
0.000963 main(2): --debug
0.001002 main(2): Processing 'port' option ('ptpip:192.168.1.204')...
0.001073 gphoto2-port-info-list(2): Using ltdl to load io-drivers from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0'...
0.001191 gphoto2-port-info-list(2): Called for filename '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0/disk'.
0.001396 gphoto2-port/disk(2): found fstab fsname UUID=a0d7ae4b-d1c1-4846-905e-26377ccd285b
0.001471 gphoto2-port/disk(2): found fstab fsname UUID=ac9656a4-5630-4408-a690-4917bf6839ad
0.001502 gphoto2-port/disk(2): found fstab fsname /dev/sr0
0.001639 gphoto2-port/disk(2): found mtab fsname rootfs
0.001690 gphoto2-port/disk(2): found mtab fsname sysfs
0.001718 gphoto2-port/disk(2): found mtab fsname proc
0.001745 gphoto2-port/disk(2): found mtab fsname udev
0.001780 gphoto2-port/disk(2): found mtab fsname devpts
0.001807 gphoto2-port/disk(2): found mtab fsname tmpfs
0.001842 gphoto2-port/disk(2): found mtab fsname /dev/vda1
0.001874 gphoto2-port/disk(2): found mtab fsname securityfs
0.001902 gphoto2-port/disk(2): found mtab fsname tmpfs
0.001939 gphoto2-port/disk(2): found mtab fsname tmpfs
0.001973 gphoto2-port/disk(2): found mtab fsname tmpfs
0.002013 gphoto2-port/disk(2): found mtab fsname cgroup
0.002067 gphoto2-port/disk(2): found mtab fsname pstore
0.002106 gphoto2-port/disk(2): found mtab fsname cgroup
0.002167 gphoto2-port/disk(2): found mtab fsname cgroup
0.002198 gphoto2-port/disk(2): found mtab fsname cgroup
0.002227 gphoto2-port/disk(2): found mtab fsname cgroup
0.002256 gphoto2-port/disk(2): found mtab fsname cgroup
0.002284 gphoto2-port/disk(2): found mtab fsname cgroup
0.002312 gphoto2-port/disk(2): found mtab fsname cgroup
0.002338 gphoto2-port/disk(2): found mtab fsname systemd-1
0.002395 gphoto2-port/disk(2): found mtab fsname mqueue
0.002427 gphoto2-port/disk(2): found mtab fsname debugfs
0.002546 gphoto2-port/disk(2): found mtab fsname hugetlbfs
0.002586 gphoto2-port/disk(2): found mtab fsname rpc_pipefs
0.002670 gphoto2-port-info-list(2): Could not load port driver list: 'Unspecified error'.
0.002702 gphoto2-port-info-list(2): Loaded '' ('^disk:') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0/disk'.
0.002731 gphoto2-port-info-list(2): Called for filename '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0/ptpip'.
0.002877 gphoto2-port-info-list(2): Loaded 'PTP/IP Connection' ('ptpip:') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0/ptpip'.
0.002910 gphoto2-port-info-list(2): Loaded '' ('^ptpip:') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0/ptpip'.
0.002937 gphoto2-port-info-list(2): Called for filename '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0/serial'.
0.003230 gphoto2-port-info-list(2): Loaded 'Serial Port 0' ('serial:/dev/ttyS0') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0/serial'.
0.003263 gphoto2-port-info-list(2): Loaded 'Serial Port 1' ('serial:/dev/ttyS1') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0/serial'.
0.003291 gphoto2-port-info-list(2): Loaded 'Serial Port 2' ('serial:/dev/ttyS2') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0/serial'.
0.003309 gphoto2-port-info-list(2): Loaded 'Serial Port 3' ('serial:/dev/ttyS3') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0/serial'.
0.003324 gphoto2-port-info-list(2): Loaded '' ('^serial:') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0/serial'.
0.003344 gphoto2-port-info-list(2): Called for filename '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0/usb1'.
0.004997 gphoto2-port-info-list(2): Loaded '' ('^usb:') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0/usb1'.
0.005055 gphoto2-port-info-list(2): Loaded 'Universal Serial Bus' ('usb:') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0/usb1'.
0.005074 gphoto2-port-info-list(2): Called for filename '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0/usbdiskdirect'.
0.005186 gphoto2-port-info-list(2): Called for filename '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.10.0/usbscsi'.
0.005387 gphoto2-port-info-list(2): Counting entries (10 available)...
0.005434 gphoto2-port-info-list(2): 6 regular entries available.
0.005452 gphoto2-port-info-list(2): Looking for path 'ptpip:192.168.1.204' (10 entries available)...
0.005469 gphoto2-port-info-list(2): Starting regex search for 'ptpip:192.168.1.204'...
0.005502 gphoto2-port-info-list(2): Trying '^disk:'...
0.005541 gphoto2-port-info-list(2): re_match failed (-1)
0.005558 gphoto2-port-info-list(2): Trying '^ptpip:'...
0.005602 gphoto2-port-info-list(2): Getting info of entry 6 (11 available)...
0.005620 gphoto2-camera(2): Setting port info for port 'Generic Port' at 'ptpip:192.168.1.204'...
0.005699 gphoto2-port(2): Setting settings...
0.005725 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.005806 setting/gphoto2-setting.c(2): Loading settings from file "/root/.gphoto/settings"
0.005849 gphoto2-setting(2): Setting key 'port' to value 'ptpip:192.168.1.204' (gphoto2)
0.005869 gphoto2-setting(2): Saving 3 setting(s) to file "/root/.gphoto/settings"
0.006188 main(2): The user has not specified both a model and a port. Try to figure them out.
0.006228 gphoto2-abilities-list(2): Using ltdl to load camera libraries from '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4'...
0.006386 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/adc65'.
0.006420 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/agfa_cl20'.
0.006510 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/aox'.
0.006526 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/ax203'.
0.006542 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/barbie'.
0.006555 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/canon'.
0.006568 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/casio_qv'.
0.006581 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/clicksmart310'.
0.006594 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/digigr8'.
0.006608 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/digita'.
0.006622 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/dimagev'.
0.006636 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/dimera3500'.
0.006648 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/directory'.
0.006661 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/enigma13'.
0.006676 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/fuji'.
0.006689 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/gsmart300'.
0.006703 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/hp215'.
0.006717 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/iclick'.
0.006731 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/jamcam'.
0.006745 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/jd11'.
0.006759 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/jl2005a'.
0.006772 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/jl2005c'.
0.006786 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/kodak_dc120'.
0.006799 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/kodak_dc210'.
0.006813 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/kodak_dc240'.
0.006826 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/kodak_dc3200'.
0.006840 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/kodak_ez200'.
0.006853 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/konica'.
0.006867 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/konica_qm150'.
0.006881 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/largan'.
0.006902 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/lg_gsm'.
0.006927 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/mars'.
0.006953 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/mustek'.
0.006978 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/panasonic_coolshot'.
0.007002 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/panasonic_dc1000'.
0.007047 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/panasonic_dc1580'.
0.007064 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/panasonic_l859'.
0.007078 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/pccam300'.
0.007091 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/pccam600'.
0.007105 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/pentax'.
0.007119 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/polaroid_pdc320'.
0.007132 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/polaroid_pdc640'.
0.007145 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/polaroid_pdc700'.
0.007159 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/ptp2'.
0.007196 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/ricoh'.
0.007210 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/ricoh_g3'.
0.007223 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/samsung'.
0.007236 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/sierra'.
0.007250 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/sipix_blink2'.
0.007264 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/sipix_web2'.
0.007277 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/smal'.
0.007290 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/sonix'.
0.007303 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/sony_dscf1'.
0.007316 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/sony_dscf55'.
0.007329 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/soundvision'.
0.007342 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/spca50x'.
0.007355 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/sq905'.
0.007368 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/st2205'.
0.007381 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/stv0674'.
0.007397 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/stv0680'.
0.007419 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/sx330z'.
0.007445 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/topfield'.
0.007469 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/toshiba_pdrm11'.
0.007493 gphoto2-abilities-list(2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/tp6801'.
0.007511 gp-abilities-list(2): Found 64 camera drivers.
0.029158 gphoto2-port-info-list(2): Counting entries (11 available)...
0.029196 gphoto2-port-info-list(2): 7 regular entries available.
0.029213 gphoto2-port(2): Creating new device...
0.029231 gphoto2-port-info-list(2): Getting info of entry 0 (11 available)...
0.029266 gphoto2-port(2): Setting settings...
0.029286 gphoto2-port-info-list(2): Getting info of entry 1 (11 available)...
0.029370 gphoto2-port(2): Setting timeout to 500 millisecond(s)...
0.029404 gphoto2-port(2): Setting settings...
0.029421 gphoto2-port-info-list(2): Getting info of entry 2 (11 available)...
0.029511 gphoto2-port(2): Setting timeout to 500 millisecond(s)...
0.029540 gphoto2-port(2): Setting settings...
0.029569 gphoto2-port-info-list(2): Getting info of entry 3 (11 available)...
0.029676 gphoto2-port(2): Setting timeout to 500 millisecond(s)...
0.029711 gphoto2-port(2): Setting settings...
0.029727 gphoto2-port-info-list(2): Getting info of entry 4 (11 available)...
0.029814 gphoto2-port(2): Setting timeout to 500 millisecond(s)...
0.029835 gphoto2-port(2): Setting settings...
0.029851 gphoto2-port-info-list(2): Getting info of entry 5 (11 available)...
0.031200 gphoto2-port(2): Setting timeout to 5000 millisecond(s)...
0.031237 gphoto2-port(2): Setting settings...
0.031254 libusb1(2): gp_port_usb_update(old int=0, conf=-1, alt=-1) port usb:, (new int=0, conf=-1, alt=-1) port usb:
0.031269 gphoto2-abilities-list.c(1): Auto-detecting USB cameras...
0.031349 gphoto2-port-usb(1): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.031370 gphoto2-port-usb(1): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.031384 gphoto2-port-usb(1): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.031398 gphoto2-port-usb(1): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.031412 gphoto2-port-usb(1): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.031467 gphoto2-port-usb(1): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.031495 gphoto2-port-usb(1): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.031512 gphoto2-port-usb(1): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.031527 gphoto2-port-usb(1): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.031541 gphoto2-port-usb(1): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.031562 gphoto2-port-info-list(2): Getting info of entry 6 (11 available)...
0.031933 gphoto2-port(2): Setting settings...
0.031972 gphoto2-port(2): Freeing port...
0.031989 gphoto2-port(2): Closing port...
0.032056 gphoto2-camera(2): Setting abilities ('PTP/IP Camera')...
0.032077 gphoto2-setting(2): Setting key 'model' to value 'PTP/IP Camera' (gphoto2)
0.032092 gphoto2-setting(2): Saving 3 setting(s) to file "/root/.gphoto/settings"
0.032225 gphoto2-port-info-list(2): Looking for path 'ptpip:192.168.1.204' (11 entries available)...
0.032249 gphoto2-port-info-list(2): Getting info of entry 6 (11 available)...
0.032264 gphoto2-camera(2): Setting port info for port 'Generic Port' at 'ptpip:192.168.1.204'...
0.032380 gphoto2-port(2): Setting settings...
0.032429 gphoto2-setting(2): Setting key 'port' to value 'ptpip:192.168.1.204' (gphoto2)
0.032448 gphoto2-setting(2): Saving 3 setting(s) to file "/root/.gphoto/settings"
0.032552 gphoto2-camera(2): Initializing camera...
0.032584 gphoto2-camera(2): Loading '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.4/ptp2'...
0.033096 gphoto2-port(2): Opening port...
0.033161 ptpip/connect(2): connecting to ptpip:192.168.1.204.
0.155372 ptpip/init_cmd(3): Hexdump of 42 = 0x2a bytes follows:
0000 2a 00 00 00 01 00 00 00-ff ff 52 54 00 b6 fd a9 *.........RT....
0010 ff ff 52 3c 28 07 a9 3a-64 00 65 00 62 00 69 00 ..R<(..:d.e.b.i.
0020 61 00 6e 00 00 00 00 00-01 00 a.n.......

0.155432 ptpip/init_cmd(0): return 42 / len 42
0.158048 ptpip/generic_read(3): Hexdump of 8 = 0x8 bytes follows:
0000 34 00 00 00 02 00 00 00- 4.......

0.158075 ptpip/generic_read(3): Hexdump of 44 = 0x2c bytes follows:
0000 01 00 00 00 00 00 00 00-00 00 00 00 ff ff d8 c4 ................
0010 6a 97 69 b4 49 00 4c 00-43 00 45 00 2d 00 35 00 j.i.I.L.C.E.-.5.
0020 30 00 30 00 30 00 00 00-00 00 01 00 0.0.0.......

0.158100 ptpip/init_event(3): Hexdump of 12 = 0xc bytes follows:
0000 0c 00 00 00 03 00 00 00-01 00 00 00 ............

0.160189 ptpip/generic_read(3): Hexdump of 8 = 0x8 bytes follows:
0000 08 00 00 00 04 00 00 00- ........

0.160209 ptpip/connect(2): ptpip connected!
0.160226 gphoto2-port(2): Setting timeout to 8000 millisecond(s)...
0.160250 ptp(2): PTP: Opening session
0.160409 ptpip/oprequest(3): Hexdump of 22 = 0x16 bytes follows:
0000 16 00 00 00 06 00 00 00-01 00 00 00 02 10 00 00 ................
0010 00 00 01 00 00 00 - ......

0.179087 ptpip/generic_read(3): Hexdump of 8 = 0x8 bytes follows:
0000 0e 00 00 00 07 00 00 00- ........

0.227108 ptpip/generic_read(3): Hexdump of 6 = 0x6 bytes follows:
0000 01 20 00 00 00 00 - . ....

0.227139 gphoto2-port(2): Setting timeout to 20000 millisecond(s)...
0.227329 ptpip/oprequest(3): Hexdump of 18 = 0x12 bytes follows:
0000 12 00 00 00 06 00 00 00-01 00 00 00 01 10 01 00 ................
0010 00 00 - ..

0.230010 ptpip/generic_read(3): Hexdump of 8 = 0x8 bytes follows:
0000 14 00 00 00 09 00 00 00- ........

0.230070 ptpip/generic_read(3): Hexdump of 12 = 0xc bytes follows:
0000 01 00 00 00 f3 00 00 00-00 00 00 00 ............

0.268408 ptpip/generic_read(3): Hexdump of 8 = 0x8 bytes follows:
0000 ff 00 00 00 0a 00 00 00- ........

0.268453 ptpip/generic_read(3): Hexdump of 247 = 0xf7 bytes follows:
0000 01 00 00 00 64 00 ff ff-ff ff 64 00 00 00 00 18 ....d.....d.....
0010 00 00 00 02 10 03 10 01-10 04 10 05 10 06 10 07 ................
0020 10 08 10 09 10 0a 10 14-10 15 10 16 10 1b 10 01 ................
0030 98 02 98 03 98 05 98 80-92 81 92 82 92 83 92 84 ................
0040 92 85 92 03 00 00 00 04-40 05 40 06 40 05 00 00 ........@.@.@...
0050 00 01 50 02 d4 06 d4 07-d4 03 d3 00 00 00 00 08 ..P.............
0060 00 00 00 01 30 0b 30 01-38 82 b9 01 b3 00 30 01 ....0.0.8.....0.
0070 b1 10 b3 11 53 00 6f 00-6e 00 79 00 20 00 43 00 ....S.o.n.y. .C.
0080 6f 00 72 00 70 00 6f 00-72 00 61 00 74 00 69 00 o.r.p.o.r.a.t.i.
0090 6f 00 6e 00 00 00 0a 49-00 4c 00 43 00 45 00 2d o.n....I.L.C.E.-
00a0 00 35 00 30 00 30 00 30-00 00 00 04 31 00 2e 00 .5.0.0.0....1...
00b0 30 00 00 00 21 30 00 30-00 30 00 30 00 30 00 30 0...!0.0.0.0.0.0
00c0 00 30 00 30 00 30 00 30-00 30 00 30 00 30 00 30 .0.0.0.0.0.0.0.0
00d0 00 30 00 30 00 33 00 32-00 38 00 32 00 36 00 35 .0.0.3.2.8.2.6.5
00e0 00 31 00 30 00 30 00 33-00 35 00 34 00 39 00 35 .1.0.0.3.5.4.9.5
00f0 00 35 00 39 00 00 00 - .5.9...

0.268638 ptpip/generic_read(3): Hexdump of 8 = 0x8 bytes follows:
0000 0c 00 00 00 0c 00 00 00- ........

0.268665 ptpip/generic_read(3): Hexdump of 4 = 0x4 bytes follows:
0000 01 00 00 00 - ....

0.268681 ptpip/getresp(0): response got -1 parameters?
0.268707 context(0): PTP: Sequence number mismatch 2136604672 vs expected 1.

  • Error ***
    PTP: Sequence number mismatch 2136604672 vs expected 1.
    0.268754 context(0): PTP Error: bad parameter

*** Error ***
PTP Error: bad parameter
0.268782 gphoto2-port(2): Closing port...
0.269234 context(0): An error occurred in the io-library ('Bad parameters'): No error description available

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

0.269753 gp-camera(2): Freeing camera...
0.269788 gphoto2-port(2): Freeing port...
0.269811 gphoto2-port(2): Closing port...
0.269892 gphoto2-filesystem(2): resetting filesystem
0.269918 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list...
0.269940 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
0.269960 gphoto2-filesystem(2): Internally deleting all folders from '/'...
0.269982 gphoto2-filesystem(2): Lookup folder '/'...
0.270004 gphoto2-filesystem(2): Found! / is 0x1ae63e0
0.270044 gphoto2-filesystem(2): Recurse delete folder 0x1ae63e0//

@schott1984
Copy link
Author

Got it. The apt-get build of gphoto2 is too old for my camera. I used this to install 2.5.10 since I'm not knowledgable enough to compile and install current version on my own: https://github.com/gonzalo/gphoto2-updater

I think I'm good. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants