Anaconda Python: Cannot execute native linux-32 binary - python

I get the following error while installing Anaconda Python on an Odroid XU4.
installing: conda-env-2.4.5-py27_0 ...
Anaconda2-4.0.0-Linux-x86.sh: line 460: /root/anaconda2/pkgs/python-2.7.11-0/bin/python: cannot execute binary file: Exec format error
ERROR:
cannot execute native linux-32 binary, output from 'uname -a' is:
Linux odroid-jessie 3.10.92+ #1 SMP PREEMPT Wed Feb 3 11:23:35 CET 2016 armv7l GNU/Linux
How do I fix this?

You are trying to run an x86 installer on an armv7l device.
To fix this, you should download the correct installer for your device's platform.
This post on the official developers' blog offers useful information about installing Anaconda on armv7l devices, and provides the following installer links:
armv7l (Python 2)
armv7l (Python 3)

Related

Yum "cannot import name Errors" - Red Hat 4.4 with Python 2.6 / 2.7

Any yum command I try to run, returns the following:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
cannot import name Errors
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Aug 18 2016, 15:13:37)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
This is what I've done and what I know:
OS is Red hat 4.4.7018
I believe Python was 2.6 and was updated to 2.7 some time ago (I suspect this might have broken yum)
python -V returns 2.7.13
# ls -lrt /usr/bin/python*
-rwxr-xr-x. 1 root root 4864 Aug 18 2016 /usr/bin/python2.6
lrwxrwxrwx. 1 root root 6 Mar 8 13:16 /usr/bin/python2 -> python
lrwxrwxrwx. 1 root root 24 Mar 8 13:32 /usr/bin/python -> /usr/local/bin/python2.7
# ls /usr/bin/python*
/usr/bin/python /usr/bin/python2 /usr/bin/python2.6
# ls /usr/local/bin/python*
/usr/local/bin/python2.7 /usr/local/bin/python2.7-config
I've tried running import yum on all phytons and only the 2.6 does not give me an error, so I tried changing the links back to 2.6 (Validated with python -V to check it goes back to version 2.6.6), and yum still returns the "cannot import name Errors" error.
Also, the PATH variable:
# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/git/bin:/root/bin
The python configured on /usr/bin/yum is #!/usr/bin/python2.6, I've tried changing it to /python, and even /phyton2 and I still get the error.
the yum command in old version of red hat(6 and older) work with python 2.6
are you test yum command with unlink /usr/bin/python and add new link from /bin/python to /usr/bin/python2.6 ?
if the result is like same error try to recompile python6 OR update your yum pkgs on server
I'm not a Linux expert, but this looks like Red Hat 6 (which had python 2.6 as default) [1]. The 4.4 is the version of GCC. When you've got python 2.6 back in place and still need Python 2.7, then install the latter via the Software Collections channel - this will install 2.7 alongside the 2.6 version and not replace it to mess up the OS.
[1] How to confirm RedHat Enterprise Linux version?
[2]https://developers.redhat.com/products/softwarecollections/hello-world/#fndtn-python

Anaconda Python : cannot execute native linux-64 binary on a 64 bit machine

I'm trying to install Anaconda on my Toshiba Chromebook, and am running into the following error :
cannot execute native linux-64 binary, output from 'uname -a' is:
Linux localhost 3.14.0 #1 SMP PREEMPT Wed Jul 20 21:06:48 PDT 2016 x86_64 Intel(R) Celeron(R) CPU 3215U # 1.70GHz GenuineIntel GNU/Linux
here is a screenshot of the error
any idea what's causing this error?

Python Requests Throwing SSL Error

I am running a Python script in 2 environment using Requests Package.
The Script is working fine in one Environment where,
RedHat version is : Red Hat Enterprise Linux Server release 6.5 (Santiago)
OpenSSL version is : OpenSSL 1.0.1e-fips 11 Feb 2013
Python Version is : Python 2.6.6 (r266:84292, Sep 4 2013, 07:46:00)
Requests Package is : requests-2.7.0-py2.6
But The Same Script is throwing the SSL Error in another Environment where,
RedHat version is : Red Hat Enterprise Linux Server release 6.5 (Santiago)
OpenSSL version is : OpenSSL 1.0.1e-fips 11 Feb 2013
Python Version is : Python 2.6.6 (r266:84292, Sep 4 2013, 07:46:00)
Requests Package is : requests-2.7.0-py2.6
Error is:
raise SSLError(e, request=request)
requests.exceptions.SSLError: [Errno 1] _ssl.c:492: error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group
I am calling the URL as below
requests.request('GET', url, verify=False, headers = headers)
Can anyone please help me in resolving the above error
you can try updating your openSSL package. The issue is with compatibility of the package with linux . You might get further help by referring to the link:- https://bugzilla.redhat.com/show_bug.cgi?id=1023331
You need to update your system to get a newer version of the OpenSSL package.
Even if openssl version reports the same version 1.0.1e-fips the OpenSSL libraries on both systems differ probably because RedHat added patches. It is common to not upgrade to a newer OpenSSL version if patches are needed but instead apply the patch to the current version to keep compatibility for existing applications.
If you check the version of the rpm package with rpm -qi you will notice that the package version differs on both machines so an upgrade should fix the issue for you.

chromedriver doesn't run in debian wheezy

This question is very similar to Error running chromedriver, except that question is about older debian versions.
Here is the info about my system:
$ uname -a
Linux host 3.2.0-4-686-pae #1 SMP Debian 3.2.46-1+deb7u1 i686 GNU/Linux
$ lsb_release -d
Description: Debian GNU/Linux 7.1 (wheezy)
$ chromedriver
chromedriver: /lib/i386-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by chromedriver)
I am sure I got the right 32bit chromedriver binary from http://code.google.com/p/chromedriver/downloads/list, I am also sure it's in PATH, as the command above shows.
How do I get chromedriver to work properly? Is there a working Debian package of chromedriver like there's one for chromium browser in the Debian repository?
#AnonymousLurker: Someone complained about this problem over on the google code page: https://code.google.com/p/chromedriver/issues/detail?id=454
Reason I'm mentioning it here, is because someone else on the thread actually got a clean build (32bit Release) for Debian Wheezy, which you can still download here (as of Nov. 9).
I've got it working on my own personal jenkins server (Debian GNU/Linux 7.2 (wheezy) 64bit).

Forcing 32 bit Python on MAC 10.7 or 10.8

I have MAC OS X 10.8 and i have updated my python to version 2.7.3 using Python's official binary from their website.
I am trying to run a python script which needs to be executed using 32 bit python.
How can i force to run 32-bit python instead of 64-bit?
Command file /usr/bin/python gives me following output.
Alis-Mac:~ ali$ file /usr/bin/python
/usr/bin/python: Mach-O universal binary with 2 architectures
/usr/bin/python (for architecture i386): Mach-O executable i386
/usr/bin/python (for architecture x86_64): Mach-O 64-bit executable x86_64
I have also tried the following.
export VERSIONER_PYTHON_PREFER_32_BIT=yes
But this has not even helped because now, i have custom python i guess.
My script has wxpython code in it and i am building app for OSX using platypus so, i have to force my script to run with 32-bit python. Please help.
for now install virtualbox and develop your app in a 32Bit Ubuntu
you can also install pycharm which can allow you to debug through vagrant

Categories