You are not logged in.

#1 2014-02-20 19:24:22

ivoarch
Member
Registered: 2011-03-31
Posts: 436

[SOLVED] zsh: exec format error:

Hi!
Any idea that can cause this?

zsh

(~)% offlineimap    
zsh: exec format error: offlineimap
zsh: exit 126   offlineimap

zsh -f (clean shell)

   
netbook% offlineimap 
zsh: exec format error: offlineimap

bash

[ivo@netbook ~]$ offlineimap 
/usr/bin/offlineimap: line 20: from: command not found
/usr/bin/offlineimap: line 22: syntax error near unexpected token `('
/usr/bin/offlineimap: line 22: `oi = OfflineImap()'

$> cat /usr/bin/offlineimap

#!/usr/bin/python2 
#...
#..

from offlineimap import OfflineImap                                                                                            
                                                                                                                               
oi = OfflineImap()                                                                                                             
oi.run() 

I have the same problem with dropbox-cli and python2.
Thanks!

Last edited by ivoarch (2014-02-20 20:03:54)


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#2 2014-02-20 19:31:25

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,488

Re: [SOLVED] zsh: exec format error:

What is the output of `uname -a` and `pacman -Qi offlineimap`?

Last edited by Scimmia (2014-02-20 19:32:42)

Online

#3 2014-02-20 19:34:13

ivoarch
Member
Registered: 2011-03-31
Posts: 436

Re: [SOLVED] zsh: exec format error:

I use kernel-netbook, now I am going to try with the stock kernel.

$> uname -a
Linux netbook 3.12.0-netbook #1 SMP PREEMPT Wed Jan 15 15:15:01 CET 2014 i686 GNU/Linux

Name           : offlineimap
Version        : 6.5.5-1
Description    : Synchronizes emails between two repositories
Architecture   : any
URL            : http://offlineimap.org/
Licenses       : GPL
Groups         : None
Provides       : None
Depends On     : python2
Optional Deps  : None
Required By    : None
Optional For   : None
Conflicts With : None
Replaces       : None
Installed Size : 1152.00 KiB
Packager       : Gaetan Bisson <bisson@archlinux.org>
Build Date     : Fri 04 Oct 2013 04:50:59 PM CEST
Install Date   : Thu 20 Feb 2014 07:59:56 PM CET
Install Reason : Explicitly installed
Install Script : No
Validated By   : Signature

Last edited by ivoarch (2014-02-20 19:34:58)


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#4 2014-02-20 19:38:34

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,488

Re: [SOLVED] zsh: exec format error:

Oh, I see, offlineimap is python2 scripts, so the problem is there. so `pacman -Qi python2` is what would be needed. I'm most specifically interested in the Architecture line.

Online

#5 2014-02-20 19:44:55

ivoarch
Member
Registered: 2011-03-31
Posts: 436

Re: [SOLVED] zsh: exec format error:

Ok!

Name           : python2
Version        : 2.7.6-2
Description    : None
Architecture   : None
URL            : None
Licenses       : None
Groups         : None
Provides       : None
Depends On     : None
Optional Deps  : None
Required By    : dropbox-cli  offlineimap  smbclient  speedtest-cli  xulrunner
Optional For   : alsa-lib  git  glib2  ldb  libevent  libproxy  lirc-utils  talloc  tdb  tevent  usbutils
Conflicts With : None
Replaces       : None
Installed Size :   0.00 KiB
Packager       : None
Build Date     : None
Install Date   : None
Install Reason : Explicitly installed
Install Script : No
Validated By   : Unknown

I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#6 2014-02-20 19:47:00

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,488

Re: [SOLVED] zsh: exec format error:

It looks like your whole python2 installation is screwed up. Reinstall it, and I'm guessing you'll end up using --force to get it to go.

Online

#7 2014-02-20 19:55:57

ivoarch
Member
Registered: 2011-03-31
Posts: 436

Re: [SOLVED] zsh: exec format error:

Ok I reinstalled and getting this now

(~)% offlineimap                                                                                                            
Traceback (most recent call last):
  File "/usr/bin/offlineimap", line 20, in <module>
    from offlineimap import OfflineImap
ImportError: No module named offlineimap

I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#8 2014-02-20 19:58:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,488

Re: [SOLVED] zsh: exec format error:

That module is part of the offlineimap package. Try reinstalling that, too.

Online

#9 2014-02-20 20:03:17

ivoarch
Member
Registered: 2011-03-31
Posts: 436

Re: [SOLVED] zsh: exec format error:

Ok thanks, i solved the problem with offlineimap-git from (AUR).
Thanks again.

Last edited by ivoarch (2014-02-20 20:06:18)


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

Board footer

Powered by FluxBB