-
Notifications
You must be signed in to change notification settings - Fork 46
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
Comments
Looks like it is having troubles running gphoto2. I see you have this
configured as the command:
/usr/local/bin/gphoto2', '-P', '--skip-existing'
What happens if you run it manually? Try running this:
/usr/local/bin/gphoto2 --help
Does the help output print out?
If the works, try sending photos to the pc and running the actual command:
/usr/local/bin/gphoto2 -P --skip-existing
What do you get?
On Dec 4, 2016 5:23 PM, "schott1984" <[email protected]> wrote:
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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKcViSnTg0a2CyvLgyW7XvY8VSDkwJPgks5rE0uDgaJpZM4LDvHD>
.
|
So I can't get gphoto2 to output anything with any command. I've removed,
purged, rebooted, installed etc. It doesn't say unknown command line it
would if it weren't installed, just leaves a fresh $ prompt.
I know gphoto2 isn't your thing, but do you have any clues? I'm at a loss!
…On Dec 4, 2016 7:37 PM, "falk0069" ***@***.***> wrote:
Looks like it is having troubles running gphoto2. I see you have this
configured as the command:
/usr/local/bin/gphoto2', '-P', '--skip-existing'
What happens if you run it manually? Try running this:
/usr/local/bin/gphoto2 --help
Does the help output print out?
If the works, try sending photos to the pc and running the actual command:
/usr/local/bin/gphoto2 -P --skip-existing
What do you get?
On Dec 4, 2016 5:23 PM, "schott1984" ***@***.***> wrote:
Running in a Debian VM. See below. Not sure what's wrong but I'd appreciate
the help!
Forgive my sloppy paste...
***@***.***:/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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AKcViSnTg0a2CyvLgyW7XvY8VSDkwJPgks5rE0uDgaJpZM4LDvHD>
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AR4v6eh6rUV29D7opLjkifU7w55vv0EHks5rE1zZgaJpZM4LDvHD>
.
|
hmm, yeah, that is really strange. Will it at least display the version if
you run this:
gphoto2 --version
I wonder if the latest version has drastically changed. I see that
version 2.5.11 was release last month. I'm still using 2.5.9. I don't
think I'll have time this week to grab it and test. but let me know what
version you have.
…On Sun, Dec 4, 2016 at 6:55 PM, schott1984 ***@***.***> wrote:
So I can't get gphoto2 to output anything with any command. I've removed,
purged, rebooted, installed etc. It doesn't say unknown command line it
would if it weren't installed, just leaves a fresh $ prompt.
I know gphoto2 isn't your thing, but do you have any clues? I'm at a loss!
On Dec 4, 2016 7:37 PM, "falk0069" ***@***.***> wrote:
> Looks like it is having troubles running gphoto2. I see you have this
> configured as the command:
> /usr/local/bin/gphoto2', '-P', '--skip-existing'
>
> What happens if you run it manually? Try running this:
> /usr/local/bin/gphoto2 --help
>
> Does the help output print out?
>
> If the works, try sending photos to the pc and running the actual
command:
> /usr/local/bin/gphoto2 -P --skip-existing
>
> What do you get?
>
>
>
> On Dec 4, 2016 5:23 PM, "schott1984" ***@***.***> wrote:
>
> Running in a Debian VM. See below. Not sure what's wrong but I'd
appreciate
> the help!
>
> Forgive my sloppy paste...
>
> ***@***.***:/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
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#7>, or mute the thread
> <https://github.com/notifications/unsubscribe-auth/
> AKcViSnTg0a2CyvLgyW7XvY8VSDkwJPgks5rE0uDgaJpZM4LDvHD>
> .
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#7 (comment)
>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/
AR4v6eh6rUV29D7opLjkifU7w55vv0EHks5rE1zZgaJpZM4LDvHD>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKcViSeIW5gEaMg5RTAwGSwBqxnUbmoTks5rE2DsgaJpZM4LDvHD>
.
|
That's what it does with anything calling gphoto. It worked the first time while following your readme and doing 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. |
Yeah, something strange is going on with your gphoto. If it is a Linux related thing, I wonder if somehow you got an empty script with the same name higher in your $PATH. You could try a few of these commands to verify:
#This tells you where gphoto2 is being found on the system
which gphoto2
#This tells you the size of the file (note the backticks)
ls -l `which gphoto2`
#This tells you the order the system will search for executables ($PATH)
echo $PATH
Here is what I get when running the commands above:
falkand@server:~$ which gphoto2
/usr/local/bin/gphoto2
falkand@server:~$ ls -l `which gphoto2`
…-rwxr-xr-x. 1 root root 367409 Mar 5 2016 /usr/local/bin/gphoto2
falkand@server:~$ echo $PATH
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/falkand/.local/bin:/home/falkand/bin
falkand@server:~$
Let me know what you get. If we can’t determine it from this, then you might want to just do the nuke if you have nothing else running on it.
From: schott1984 [mailto:[email protected]]
Sent: Monday, December 5, 2016 5:38 AM
To: falk0069/sony-pm-alt <[email protected]>
Cc: falk0069 <[email protected]>; Comment <[email protected]>
Subject: Re: [falk0069/sony-pm-alt] Exec format error (#7)
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.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#7 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AKcViXDWzLlX36ZmC7B2aqrfbhDiNaMbks5rE_eXgaJpZM4LDvHD> . <https://github.com/notifications/beacon/AKcViaaJ0KWT2hjPyhwD7caGcVDFEulFks5rE_eXgaJpZM4LDvHD.gif>
|
root@debian: |
Haven't nuked vm, yet. |
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: 0.155432 ptpip/init_cmd(0): return 42 / len 42 0.158075 ptpip/generic_read(3): Hexdump of 44 = 0x2c bytes follows: 0.158100 ptpip/init_event(3): Hexdump of 12 = 0xc bytes follows: 0.160189 ptpip/generic_read(3): Hexdump of 8 = 0x8 bytes follows: 0.160209 ptpip/connect(2): ptpip connected! 0.179087 ptpip/generic_read(3): Hexdump of 8 = 0x8 bytes follows: 0.227108 ptpip/generic_read(3): Hexdump of 6 = 0x6 bytes follows: 0.227139 gphoto2-port(2): Setting timeout to 20000 millisecond(s)... 0.230010 ptpip/generic_read(3): Hexdump of 8 = 0x8 bytes follows: 0.230070 ptpip/generic_read(3): Hexdump of 12 = 0xc bytes follows: 0.268408 ptpip/generic_read(3): Hexdump of 8 = 0x8 bytes follows: 0.268453 ptpip/generic_read(3): Hexdump of 247 = 0xf7 bytes follows: 0.268638 ptpip/generic_read(3): Hexdump of 8 = 0x8 bytes follows: 0.268665 ptpip/generic_read(3): Hexdump of 4 = 0x4 bytes follows: 0.268681 ptpip/getresp(0): response got -1 parameters?
*** Error *** *** Error *** 0.269753 gp-camera(2): Freeing camera... |
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! |
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
The text was updated successfully, but these errors were encountered: