Python3.6 exec format error

Questions to IPFire Addons.
Post Reply
bschluff
Posts: 17
Joined: August 17th, 2010, 6:47 pm

Python3.6 exec format error

Post by bschluff » February 18th, 2017, 11:39 am

Hello everybody,

i was happy to see that python 3.6 is now in pakfire. But after installation i get:

-bash: /usr/bin/python3: cannot execute binary file: Exec format error

please be so kind and fix this. Maybe wrong arch?
Thanks in advance

Jonatan.S
Community Developer
Community Developer
Posts: 82
Joined: March 22nd, 2016, 9:19 am

Re: Python3.6 exec format error

Post by Jonatan.S » February 19th, 2017, 12:09 pm

Hi,

I guess that the packages are not copied correctly.
So I will try to reach Arne or Michael that they can fix this issue.

regards Jonatan

raffael
Posts: 14
Joined: December 2nd, 2013, 2:31 pm

Re: Python3.6 exec format error

Post by raffael » April 27th, 2017, 5:04 pm

Hi,

I have the same Problem. Python3.6 works on one ipfire machine (x86_64) but not on the other (i686).
I think the file format is from x86_64 even on the other machine.

Code: Select all

#uname -smvo
Linux #1 SMP Thu Feb 2 00:43:29 GMT 2017 i686 GNU/Linux

#file /usr/bin/python2.7
/usr/bin/python2.7: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.0, BuildID[sha1]=1aec51b4ee2c1eebe2579f39cfb78221730a1c55, stripped

#file /usr/bin/python3.6
/usr/bin/python3.6: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.0, stripped

bschluff
Posts: 17
Joined: August 17th, 2010, 6:47 pm

Re: Python3.6 exec format error

Post by bschluff » April 27th, 2017, 8:25 pm

Hello Raphael,

i got Python 3.6 working from testing repository. The Wiki tells how to switch.
But anyhow, i guess it will be fixed on 110 release....
ok...hope so...:-)

Bodo

raffael
Posts: 14
Joined: December 2nd, 2013, 2:31 pm

Re: Python3.6 exec format error

Post by raffael » July 6th, 2017, 3:38 pm

Hi,

After some month I finally had time to come back to my project for which I'd need python3 on my ipfire. But it is still not working for me.
I found this bug report https://bugzilla.ipfire.org/show_bug.cgi?id=11325 and it says the problem is fixed. Can someone tell me how to install the correct python3 package?

Thanks
Raffael

User avatar
Arne.F
Core Developer
Core Developer
Posts: 7457
Joined: May 7th, 2006, 8:57 am
Location: BS <-> NDH
Contact:

Re: Python3.6 exec format error

Post by Arne.F » July 10th, 2017, 8:57 am

I have checked the file on the server sereral times. All have the correct arch.
Uninstall it, remove the files from your local pakfire cache and try reinstall it.
Arne

Support the project on the IPFire whishlist!

Image

Image

Image
PS: I will not answer support questions via email and ignore IPFire related messages on my non IPFire.org mail addresses.

raffael
Posts: 14
Joined: December 2nd, 2013, 2:31 pm

Re: Python3.6 exec format error

Post by raffael » July 10th, 2017, 1:15 pm

Thanks for your reply.

I just tried. Unfortunately no luck.

Im using IPFire 2.19 (i586) - Core Update 111

Code: Select all

# pakfire remove python3            


PAKFIRE INFO: Packages to remove:
PAKFIRE INFO: python3    - 17.54 MB
PAKFIRE INFO: Is this okay? [y/N]
y
PAKFIRE REMV: python3: Decrypting...
python3-3.6.0-1.i... 100.00% |=============================>|   17.37 MB
PAKFIRE REMV: python3: Removing files and running post-removing scripts...
PAKFIRE REMV: python3: Finished.

Code: Select all

# rm ./var/cache/pakfire/python3-3.6.0-1.ipfire

Code: Select all

# pakfire update
server-list.db       100.00% |=============================>|    1.31 KB
packages_list.db     100.00% |=============================>|    3.49 KB
core-list.db         100.00% |=============================>|   231.00 B

Code: Select all

# pakfire install python3 
meta-python3         100.00% |=============================>|   313.00 B
PAKFIRE RESV: python3: Resolving dependencies...


PAKFIRE INFO: Packages to install:
PAKFIRE INFO: python3    - 17.54 MB

PAKFIRE INFO: Total size:        ~ 17.54 MB

PAKFIRE INFO: Is this okay? [y/N]
y
python3-3.6.0-1.i... 100.00% |=============================>|   17.37 MB

PAKFIRE INST: python3: Decrypting...
PAKFIRE INST: python3: Copying files and running post-installation scripts...
PAKFIRE INST: python3: Finished.

Code: Select all

# python3
-bash: /usr/bin/python3: cannot execute binary file: Exec format error

User avatar
Arne.F
Core Developer
Core Developer
Posts: 7457
Joined: May 7th, 2006, 8:57 am
Location: BS <-> NDH
Contact:

Re: Python3.6 exec format error

Post by Arne.F » July 10th, 2017, 2:47 pm

Ups. You are correct. Im not sure who has pushed this already to stable tree (2.19)
At my informations this addon should only present in testing-tree 2.19.1 and there the arch is correct.

I will replace the wrong file, but this can take a while until it was spread to the mirrors.
Arne

Support the project on the IPFire whishlist!

Image

Image

Image
PS: I will not answer support questions via email and ignore IPFire related messages on my non IPFire.org mail addresses.

raffael
Posts: 14
Joined: December 2nd, 2013, 2:31 pm

Re: Python3.6 exec format error

Post by raffael » July 10th, 2017, 3:14 pm

Great. Thanks!
I'll test it tomorrow.

raffael
Posts: 14
Joined: December 2nd, 2013, 2:31 pm

Re: Python3.6 exec format error

Post by raffael » July 11th, 2017, 10:29 am

I just reinstalled it. It is now 32 bit, but I think something is still wrong (or I'm doing something wrong).
I think it is compiled with a different libc version.

Code: Select all

# python3
python3: /lib/libc.so.6: version `GLIBC_2.25' not found (required by /usr/lib/libpython3.6m.so.1.0)
python3: /lib/libc.so.6: version `GLIBC_2.17' not found (required by /usr/lib/libpython3.6m.so.1.0)
Or can I do something to change that?
Thanks

User avatar
Arne.F
Core Developer
Core Developer
Posts: 7457
Joined: May 7th, 2006, 8:57 am
Location: BS <-> NDH
Contact:

Re: Python3.6 exec format error

Post by Arne.F » July 11th, 2017, 10:32 am

I don't have a 32bit build for the old glibc and testint tree (2.19.1) is already on core112 with the new glibc
Arne

Support the project on the IPFire whishlist!

Image

Image

Image
PS: I will not answer support questions via email and ignore IPFire related messages on my non IPFire.org mail addresses.

raffael
Posts: 14
Joined: December 2nd, 2013, 2:31 pm

Re: Python3.6 exec format error

Post by raffael » July 11th, 2017, 12:35 pm

Ok. This means it should work with as soon core112 is out? Thats fine for me. I can wait with my python project. :)
Any Idea about the release date of 112?

User avatar
Arne.F
Core Developer
Core Developer
Posts: 7457
Joined: May 7th, 2006, 8:57 am
Location: BS <-> NDH
Contact:

Re: Python3.6 exec format error

Post by Arne.F » July 11th, 2017, 12:56 pm

It is already in testing tree and should released within this month if there are no blocking bugs found.
Arne

Support the project on the IPFire whishlist!

Image

Image

Image
PS: I will not answer support questions via email and ignore IPFire related messages on my non IPFire.org mail addresses.

bschluff
Posts: 17
Joined: August 17th, 2010, 6:47 pm

Re: Python3.6 exec format error

Post by bschluff » September 13th, 2017, 3:49 pm

Hello everybody,

last month i had a HardDrive crash and i had to reinstall the IPFire. It is now a x86_64 system and i got python3 working without any problems via pakfire. After spending 2 days my "py project" is working too.
The Fritzbox is now able to receive a phonebook from owncloud via cron ;D. The selected entrys are now visible on all DECT phones

Thanks for provide python in the great ipFire
Bodo

PS.: if someone wants to get the code and play around with fritzbox, don't hesitate to contact me...

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest