''Error input output while excuting Python" - python

I have installed Pyton on centos 7 and when I tried to excuse the command Python I got the error:
./python3: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
So I have installed the package: glibc-2.17-196.el7.i686.rpm
But it didn't install the file ld-linux.so.2 so I copied it directly to lib after that I am now getting the following error:
./python3: Input/output error

Related

Error [WinError 87] when installing Kivy on Windows 7

I'm following the instructions here https://saas1907y5.saas-secure.com/projects/pitanga-square/wiki on a computer running Windows 7.
When I have to execute py -m pip install kivy[base] kivy_examples I get the following error:
ERROR: Error [WinError 87] The parameter is incorrect while executing command python setup.py egg_info
ERROR: Could not install packages due to an OSError: [WinError 87] The parameter is incorrect
I tried reinstalling Python 3.6.5 and it didn't solve.
Also, when I run the next command py -m virtualenv env I get another error:
RuntimeError: failed to query D:\pitanga-v21.08 with code 13 err: 'Access is denied'
My guess was that there was something wrong with the permissions Python has, so I opened the folder properties -> security and gave full control to everything, that didn't fix it. Instead I got another error:
Error: [Errno 2] No such file or directory: ''
For the record, I tried following the same steps on a Windows Vista machine I have here and (even though it's not officially supported) it worked fine.

"Failed to import the site module" when running pip --version

I am using mac OS X, but am running into some trouble when I try to download pip to my terminal. If I type: python --version, I get the message that I have python 3.7 downloaded. So I would assume that I also have pip. But when I type pip --version, this message comes up on my terminal:
Fatal Python error: initsite: Failed to import the site module
ModuleNotFoundError: No module named 'site'
I attempted to download pip because I thought this might be occurring because I did not have it downloaded in the first place, but the same error message occurred during the download.

pip install pyscipopt on mac - scip.h file not found

Initial Question
I've installed scipopsuite by following these instructions: http://scip.zib.de/doc/html/MAKE.php#BRIEFINSTALL
Make tests - complete without error.
Then when I try pip install pyscipopt I get the following error.
src/pyscipopt/scip.c:467:10: fatal error: 'scip/scip.h' file not found
#include "scip/scip.h"
^
1 error generated.
error: command 'gcc' failed with exit status 1
Specs: Anaconda Python 2.7, latest OSX
Follow Up
In response to comments(#mattmilten), I've done the following.
(1) Installed the make file - When i tried to run the install it failed because the name of the O.darwin.x86_64.gnu.shared.opt folder was set to 'static' instead of shared. I changed that name and then the install completed but did have these warnings:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libscipopt-4.0.0.darwin.x86_64.gnu.opt.a(stkchk.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: lib/libscipopt-4.0.0.darwin.x86_64.gnu.opt.a(stkchk.o) has no symbols
When i try:
>>> import pyscipopt
, I now get the following error.
Any suggestions would be appreciated.
ImportError: dlopen(/Users/"local"/anaconda/lib/python2.7/site-packages/pyscipopt/scip.so, 2): Symbol not found: ___gmp_version
Referenced from: /Users/"local"/anaconda/lib/python2.7/site-packages/pyscipopt/scip.so
Expected in: flat namespace in /Users/"local"/anaconda/lib/python2.7/site-packages/pyscipopt/scip.so
I'm guessing these things are linked - thanks.
As explained in the PySCIPOpt INSTALL you need to tell Python where you installed the SCIP Opt Suite: export SCIPOPTDIR=<path_to_install_dir>
The setup.py looks for this environment variable so you need to set it before you run pip install pyscipopt
Edit:
You need to install the SCIP Opt Suite (this basically copies the compiled files to some directory) as also explained in the INSTALL file

Python Virtual Environment - cannot open shared file

I have just started learning python and I am having issues to create a virtual environment. With virtualenv, I am getting the following error:
New python executable in /home/charles/Desktop/test/test/bin/python
/home/charles/Desktop/test/test/bin/python: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory
ERROR: The executable /home/charles/Desktop/test/test/bin/python is not functioning
ERROR: It thinks sys.prefix is '/home/charles/Desktop/test' (should be '/home/charles/Desktop/test/test')
ERROR: virtualenv is not compatible with this system or executable
With "venv" and I got the following error:
Error: Command '['/home/charles/Toto/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
I am using python 3.6.1 and the zsh shell with Ubuntu 17.04 64-bit (gnome).

Error message in Command Prompt when installing module

This is my first attempt at installing an add in for Python. I have extracted the twitter module to a folder within my Python33 directory that I have called 'Plug ins'. I have then navigated to this in Command Prompt and entered the following code that I have found on the Python website:
python setup.py install
That produced an error that 'python' was not a recognised command. When i removed 'python'a nd just ran:
setup.py install
I got the error message:
Import error: No module named 'setuptools'
What am I doing wrong?
Thanks
You need to install setuptools:
https://pypi.python.org/pypi/setuptools#installing-and-using-setuptools
Basically,
for Linux:
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O - | python
for Windows 7:
download and execute this file.
for Windows 8, execute in PowerShell (as Admin):
(Invoke-WebRequest https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py).Content | python -

Categories

Resources