Python RRDtool installation issue on windows 7 - python

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 !!

Related

Twisted compilation failed in Ubuntu 14.04

I am trying to install Crossbar in my ubuntu 14.04. I installed the
dependencies as per the instruction here. When I am trying to
install cross the twisted installation fails. I am having python
2.7.6. I installed all the python-devl packages and all are up to date. I am getting the below error when I execute "pip install
crossbar".
copying twisted/internet/iocpreactor/iocpsupport/winsock_pointers.c -> build/lib.linux-i686-2.7/twisted/internet/iocpreactor/iocpsupport
copying twisted/python/sendmsg.c -> build/lib.linux-i686-2.7/twisted/python
copying twisted/test/raiser.c -> build/lib.linux-i686-2.7/twisted/test
running build_ext
cc -O2 -fPIC -Wimplicit -I/usr/lib/pypy/include -c conftest.c -o conftest.o
building 'twisted.runner.portmap' extension
creating build/temp.linux-i686-2.7
creating build/temp.linux-i686-2.7/twisted
creating build/temp.linux-i686-2.7/twisted/runner
cc -O2 -fPIC -Wimplicit -I/usr/lib/pypy/include -c twisted/runner/portmap.c -o build/temp.linux-i686-2.7/twisted/runner/portmap.o
twisted/runner/portmap.c:10:20: fatal error: Python.h: No such file or directory
include <Python.h>
compilation terminated.error: command 'cc' failed with exit status 1
Do you have the dev files installed from pypy? I don't use Ubuntu, but I believe the package is called pypy-dev. I contains a proper Python.h.
The one you mention belongs to the main Python installation. /usr/include/python2.7/Python.h

command 'gcc' failed with exit status 1

I tried all answers but I can't solve the problem of installing Biopython package
I installed Mingw , but when I try to install the package : python setup.py install
I get the following error:
running install
running build
running build_py
running build_ext
building 'Bio.cpairwise2' extension
c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Ic:\Python33\include -Ic:\Pytho
n33\include -c Bio/cpairwise2module.c -o build\temp.win-amd64-3.3\Release\bio\cp
airwise2module.o
writing build\temp.win-amd64-3.3\Release\bio\cpairwise2.def
c:\mingw\bin\gcc.exe -mno-cygwin -shared -s build\temp.win-amd64-3.3\Release\bio
\cpairwise2module.o build\temp.win-amd64-3.3\Release\bio\cpairwise2.def -Lc:\Pyt
hon33\libs -Lc:\Python33\PCbuild\amd64 -lpython33 -lmsvcr100 -o build\lib.win-am
d64-3.3\Bio\cpairwise2.pyd
c:/mingw/bin/../lib/gcc/mingw32/4.3.3/../../../../mingw32/bin/ld.exe: c:\Python3
3\libs/python33.lib(python33.dll): Recognised but unhandled machine type (0x8664
) in Import Library Format archive
c:/mingw/bin/../lib/gcc/mingw32/4.3.3/../../../../mingw32/bin/ld.exe: cannot fin
d -lmsvcr100
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
According to here for error: cannot find -lmsvcr100 you need to first install Microsoft Visual C++ 2010 Redistributable Package, and second, copy the msvcr100.dll to C:\Python33\libs the directory for linking is C:\Python44\libs because both -lpython and -lmsvcr100 are pointed to the same location during compilation, and so they have to be in the same directory.` This solution worked for me when I needed to install Cython.
You will get two errors. The first is yours:
error: cannot find -lmsvcr100
error: command 'gcc' failed with exit status 1
Then you will get a second error after you solve the first one:
error: unrecognized command line option '-mno-cygwin'
error: command 'gcc' failed with exit status 1
They are two different errors with two different solutions. You can find more here.

Fatal error when installing gecode-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.

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