Fatal error when installing gecode-python - python

I'm trying to install a python wrapper over constraint programming library Gecode called python-gecode
https://pypi.python.org/pypi/gecode-python/
No matter how I install it I get same error "No such file or directory". Here is setup script output:
running install
running build
running build_py
running build_ext
building 'gecode._gecode' extension
C:\MinGW32-xy\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DDISJUNCTOR "-IC:\Program Files\Gecode\include" -IC:\Python27\include -IC:\Python27\PC -c _gecode.cc -o build\temp.win32-2.7\Release\_gecode.o
_gecode.cc:5:24: fatal error: 4.2.1: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1"
But the _gecode.cc is there in the folder. I don't really understand what's the problem. I tried installing with pip, easy_install, manual install and everytime I get this error.
Any ideas what's causing it?
Thanks!

Gecode-Python supports only up to version 4.0.0 of Gecode, so use that version instead of 4.2.1.

Related

biopython installation: error: command 'gcc' failed with exit status 1

I am trying to install the python package biopython from source on my Macbook pro OSX 10.9.4,
I run python setup.py build in the terminal and receive this
running build
running build_py
running build_ext
building 'Bio.cpairwise2' extension
Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.6.sdk
Please check your Xcode installation
gcc -DNDEBUG -g -O3 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -Qunused-arguments -Qunused-arguments -I/Applications/Canopy.app/appdata/canopy-1.4.1.1975.macosx-x86_64/Canopy.app/Contents/include/python2.7 -c Bio/cpairwise2module.c -o build/temp.macosx-10.6-x86_64-2.7/Bio/cpairwise2module.o
clang: warning: no such sysroot directory: '/Developer/SDKs/MacOSX10.6.sdk'
In file included from Bio/cpairwise2module.c:12:
/Applications/Canopy.app/appdata/canopy-1.4.1.1975.macosx- x86_64/Canopy.app/Contents/include/python2.7/Python.h:33:10: fatal error:
'stdio.h' file not found
#include <stdio.h>
^
1 error generated.
error: command 'gcc' failed with exit status 1
I checked that Xcode should be properly installed and working
You should be using pip. Try:
pip install biopython
Uninstalled Canopy and everything worked like a charm...
Try installing the Biopython version available from the Canopy "Package Manager" > "Available Packages" > "Canopy Packages".
This way, I seem to have solved a similar problem while installing Pyensembl, that also installs Biopython.

M2Crypto Error Installing on Windows

I'm trying to install the M2Crypto on Python26 in Windows, but I am getting the below error.
error: command 'swig.exe' failed: No such file or directory
This error occurs both using the "Easy Install" or "PIP Install" command. Follows the Log:
running build
running build_py
running build_ext
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig.exe -python -IC:\Python26\include -IC:\Python26\PC
-Ic:\pkg\include -includeall -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
error: command 'swig.exe' failed: No such file or directory
Any Help?
This worked for me: (using winpython2.7)
pip install M2CryptoWin32
reference:
https://github.com/dsoprea/M2CryptoWin32
Putting this in answer format:
You could try to install a binary build from http://chandlerproject.org/Projects/MeTooCrypto
from mata's comment that resolved OP's issue

Python RRDtool installation issue on windows 7

Hi guys i'm new to rrdtool , i want to use rrdtool for one of my python projects, i'm trying to install rrdtool by typing this script in my command prompt
"python setup.py install build --compiler=mingw32 "
this is the output that i get :
running install
running build
running build_ext
running build_configure
building 'rrdtoolmodule' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Irrdtool-1.4.7/src -IC:\Python2
7\include -IC:\Python27\PC -c rrdtool-1.4.7/bindings/python/rrdtoolmodule.c -o b
uild\temp.win32-2.7\Release\rrdtool-1.4.7\bindings\python\rrdtoolmodule.o
rrdtool-1.4.7/bindings/python/rrdtoolmodule.c:41:30: fatal error: ../../rrd_config.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
i have searched for a solution but had no success.
pls can anyone help !!

pydasm install error on python 2.7

I'm trying to install pydasm, but met an error, don't know how to continue.
The version of python is 2.7, and the OS is WinXP.
python setup.py build_ext --compiler=mingw32
running build_ext
building 'pydasm' extension
creating build
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python27\include -IC:\Pytho
n27\include -IC:\Python27\PC -c ../libdasm.c -o build\temp.win32-2.7\Release\..\
libdasm.o
cc1.exe: error: unrecognized command line option '-mno-cygwin'
error: command 'gcc' failed with exit status 1
It seems that -mno-cygwin is no longer supported in latest MinGW, but python 2.7 disutils module is still using it. How to solve it?

Mysql for Python compiler MinGW32 gcc.exe error: CreateProcess file or directory not found

I'm trying to get Django/Python to work with MySQL, so I'm installing Mysql for Python adapter.
At one point, I discovered that I needed to use the MinGW compiler, so I installed that.
I encountered many annoying problems, and I managed to get past them. This one, however, is especially torturing.
The error occurs when I attempt to execute the following command in command line for Windows:
setup.py install build --compiler=mingw32
Here is the error:
> running install<br> running build<br> running build_py<br> copying
> MySQLdb\release.py -> build\lib.win32-2.7\MySQLdb<br> running
> build_ext<br> building '_mysql' extension<br> gcc.exe -mno-cygwin
> -mdll -O -Wall -Dversion_info=(1,2,3,'final',0) -D__version_
> _=1.2.3 -IC:\Server\MySQL\include -IC:\Python27\include -IC:\Python27\PC -c _mys ql.c -o build\temp.win32-2.7\Release\_mysql.o /Z1<br>
> **gcc: /Z1: No such file or directory<br> gcc: CreateProcess: No such file or directory<br> error: command 'gcc' failed with exit status 1**
Can any of you guys help me out?
This error is caused by /Zl parameter, as they are special parameters used only by VC. We could delete them on setup_window.py.
Since you're talking about MinGW, I'm assuming you're building on Windows. You probably need to add the directory where mingw's gcc binary resides to your PATH.
Assuming it's C:\MinGW32, then you'd do something like:
set PATH=C:\MinGW32\bin;%PATH%
You'd do that before you ran python setup.py install build --compiler=mingw32
Using compiled binaries for windows machine helps. you can get it here http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/

Categories

Resources