I am trying to install pymqi on windows 64-bit machine.
"pip install pymqi" gives an error
Collecting pymqi
Using cached https://files.pythonhosted.org/packages/15/d9/b5babbd3f296b47a9d8bca417ca185ede9e8780ce4ca6b66bbf2dd1b7880/pymqi-1.9.2.tar.gz
Installing collected packages: pymqi
Running setup.py install for pymqi ... error
Complete output from command C:\Users\xxxxxxxxx\.virtualenvs\BBG_IBM_MQ_connection\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\xxxxxxxxx\\AppData\\Local\\
Temp\\pip-install-1qy7i0yt\\pymqi\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --recor
d C:\Users\xxxxxxxxx\AppData\Local\Temp\pip-record-hhuxyqkh\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\xxxxxxxxx\.virtualenvs\BBG_IBM_MQ_con
nection\include\site\python3.7\pymqi:
Building PyMQI client 64bits
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\pymqi
copying pymqi\__init__.py -> build\lib.win-amd64-3.7\pymqi
copying pymqi\CMQC.py -> build\lib.win-amd64-3.7\pymqi
copying pymqi\CMQCFC.py -> build\lib.win-amd64-3.7\pymqi
copying pymqi\CMQXC.py -> build\lib.win-amd64-3.7\pymqi
copying pymqi\CMQZC.py -> build\lib.win-amd64-3.7\pymqi
running build_ext
building 'pymqi.pymqe' extension
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\pymqi
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYQMI_SERVERBUILD=0 "-Ic:\Program Fi
les (x86)\IBM\WebSphere MQ\tools\c\include" -IC:\Users\xxxxxxxxx\.virtualenvs\BBG_IBM_MQ_connection\include -IC:\Users\xxxxxxxxx\AppData\Local\Programs\Python\Python37\include -IC:\Users\
xxxxxxxxx\AppData\Local\Programs\Python\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include" /Tcpymqi/pymqe.c /Fobuild\temp.
win-amd64-3.7\Release\pymqi/pymqe.obj
pymqe.c
pymqi/pymqe.c(78): fatal error C1083: Cannot open include file: 'cmqc.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.21.27702\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
Command "C:\Users\xxxxxxxxx\.virtualenvs\BBG_IBM_MQ_connection\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\xxxxxxxxx\\AppData\\Local\\Temp\\pip-install-1qy7i0
yt\\pymqi\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\xxxxxxxxx\AppD
ata\Local\Temp\pip-record-hhuxyqkh\install-record.txt --single-version-externally-managed --compile --install-headers C:\Users\xxxxxxxxx\.virtualenvs\BBG_IBM_MQ_connection\include\site\pyt
hon3.7\pymqi" failed with error code 1 in C:\Users\xxxxxxxxx\AppData\Local\Temp\pip-install-1qy7i0yt\pymqi\
I tried to install "python-dev" as I read for pymqi installation, python-dev is necessary. But it is also giving an error and after searching for that error, got to know from this forum that "python-dev" doesn't exist for windows.
Can I get help on this?
Download MQ client libraries from this link:
https://ibm.biz/IBM-MQC-Redist-Win64zip
Once downloaded and extracted, you will find the cmqc.h file in this location:
9.3.0.0-IBM-MQC-Redist-Win64\tools\c\include
Create a new folder on your C: drive:
C:\Program Files (x86)\IBM\WebSphere MQ
Copy the tools subfolder
9.3.0.0-IBM-MQC-Redist-Win64\tools\c\include
to
C:\Program Files (x86)\IBM\WebSphere MQ
Now run:
pip install pymqi
The output should be similar to this:
C:\Windows\system32>pip install pymqi
Collecting pymqi
Using cached pymqi-1.12.8.tar.gz (88 kB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for pymqi, since package 'wheel' is not installed.
Installing collected packages: pymqi
Running setup.py install for pymqi ... done
Successfully installed pymqi-1.12.8
For me it worked. Please give it a try and let me know if it worked for you.
pymqi is a Python wrapper for IBM MQ SDK. You need to install the SDK to compile pymqi from sources.
See https://github.com/dsuch/pymqi/issues/15#issuecomment-124772995.
https://www.ibm.com/support/knowledgecenter/SSFKSJ/com.ibm.mq.helphome.doc/product_welcome_wmq.htm
You would need 2 things - IBM MQ Client and and Visual C++ from Microsoft
https://www.microsoft.com/en-au/download/details.aspx?id=44266
C++ build is available here and
IBM MQ client is available on the IBM site. Setting up MQ service/manager would be overkill. just the client is sufficient enough.
Related
I have been trying to install pycairo for three days and I was wondering wether anyone could reproduce the error or if I am slowly starting to turn mad. I am glad for any help or suggestions.
What I have tried:
I looked at the answers from Installation of PyCairo on Windows and How do you install PyCairo (Cairo for Python) on Windows?.
I tried installing pycairo using a file downloaded from Python Extension Packages for Windows but it says
ERROR: pycairo-1.19.1-cp38-cp38-win32.whl is not a supported wheel on this platform.
I used the following command pip install "C:\Users\...\Downloads\pycairo-1.19.1-cp38-cp38-win32.whl"
I tried installing pycairo via pip pip install pycairo which gives me a really long error message:
Collecting pycairo
Using cached pycairo-1.19.1.tar.gz (205 kB)
Installing collected packages: pycairo
Running setup.py install for pycairo ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\caspa\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\caspa\\AppData\\Local\\Temp\\pip-install-tjiuwot4\\pycairo\\setup.py'"'"'; __file__='"'"'C:\\Users\\caspa\\AppData\\Local\\Temp\\pip-install-tjiuwot4\\pycairo\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\caspa\AppData\Local\Temp\pip-record-pbvjvlu1\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\caspa\appdata\local\programs\python\python37-32\Include\pycairo'
cwd: C:\Users\caspa\AppData\Local\Temp\pip-install-tjiuwot4\pycairo\
Complete output (18 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\cairo
copying cairo\__init__.py -> build\lib.win32-3.7\cairo
copying cairo\__init__.pyi -> build\lib.win32-3.7\cairo
copying cairo\py.typed -> build\lib.win32-3.7\cairo
running build_ext
building 'cairo._cairo' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\cairo
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -DPYCAIRO_VERSION_MAJOR=1 -DPYCAIRO_VERSION_MINOR=19 -DPYCAIRO_VERSION_MICRO=1 -Ic:\users\caspa\appdata\local\programs\python\python37-32\include -Ic:\users\caspa\appdata\local\programs\python\python37-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tccairo/device.c /Fobuild\temp.win32-3.7\Release\cairo/device.obj
device.c
C:\Users\caspa\AppData\Local\Temp\pip-install-tjiuwot4\pycairo\cairo\pycairo.h(37): fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: "cairo.h": No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.24.28314\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\caspa\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\caspa\\AppData\\Local\\Temp\\pip-install-tjiuwot4\\pycairo\\setup.py'"'"'; __file__='"'"'C:\\Users\\caspa\\AppData\\Local\\Temp\\pip-install-tjiuwot4\\pycairo\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\caspa\AppData\Local\Temp\pip-record-pbvjvlu1\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\caspa\appdata\local\programs\python\python37-32\Include\pycairo' Check the logs for full command output.
I get the same error message when trying to install PyGoject which contains pycairo via pip.
I found something that should be supposed to fix the error, but unfortunatly the Link in the forum is dead. I went to the official download page (I belive) cairographics.org and its a dead link as well.
EDIT: I forgot to mention another thing I tried, I went to the Cairo Docs on getting started, but it's unfortunatly only for Ubuntu/Linux/IOS.
I've ran into a similar error to this as well, so here's what worked for me. Go to https://pycairo.readthedocs.io/en/latest/getting_started.html for more info. You'll have to run one of these five commands to set up pkg-config on your computer prior to running the install command.
Ubuntu/Debian: sudo apt install libcairo2-dev pkg-config python3-dev
macOS/Homebrew: brew install cairo pkg-config
Arch Linux: sudo pacman -S cairo pkgconf
Fedora: sudo dnf install cairo-devel pkg-config python3-devel
penSUSE: sudo zypper install cairo-devel pkg-config python3-devel
Then run:
import cairo
Hope that works!
I'm new with Python so I'm not really sure what's going on but this works for me.
Simply change the "pip" to "pip3" and it'll magically work.
As of this writing, I'm using Python 3.8 64-bit so my command is this:
pip3 install pycairo-1.19.1-cp38-cp38-win_amd64.whl
From what I understand, this seems to be an incompatibility since Python 2 life has ended and lost support just early this year. So pretty much all the tutorial is outdated and didn't work.
I have installed Microsoft visual c++ 2015 edition as well as 2017 edition. I have install Microsoft visual studio community edition along with python development kit.
I have individually installed them one at a time and tried to run command:
pip install pyaudio
After installing VC 2015 and 2017 edition, both the times, the error was like this:
Collecting PyAudio
Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz
Installing collected packages: PyAudio
Running setup.py install for PyAudio ... error
Complete output from command C:\Users\Waaberi\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Waaberi\\AppData\\Local\\Temp\\pip-install-e5le61j0\\PyAudio\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Waaberi\AppData\Local\Temp\pip-record-adj3zivl\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
copying src\pyaudio.py -> build\lib.win32-3.7
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
After installing Microsoft Visual Studio Community version, the error changes like this:
Collecting pyaudio
Using cached https://files.pythonhosted.org/packages/ab/42/b4f04721c5c5bfc196ce156b3c768998ef8c0ae3654ed29ea5020c749a6b/PyAudio-0.2.11.tar.gz
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
Complete output from command c:\users\asus\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\asus\\AppData\\Local\\Temp\\pip-install-n80doxlb\\pyaudio\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\asus\AppData\Local\Temp\pip-record-q1i9vfma\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
copying src\pyaudio.py -> build\lib.win32-3.7
running build_ext
building '_portaudio' extension
creating build\temp.win32-3.7
creating build\temp.win32-3.7\Release
creating build\temp.win32-3.7\Release\src
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\asus\appdata\local\programs\python\python37-32\include -Ic:\users\asus\appdata\local\programs\python\python37-32\include /Tcsrc/_portaudiomodule.c /Fobuild\temp.win32-3.7\Release\src/_portaudiomodule.obj
error: command 'cl.exe' failed: No such file or directory
How do I solve this? How can I install pyaudio without these errors?
I'm trying to install pyemd package in Python through pip and getting following error:
C:\Users\dipanwita.neogy>pip install pyemd
Collecting pyemd
Using cached pyemd-0.4.3.tar.gz
Requirement already satisfied: numpy<2.0.0,>=1.9.0 in c:\users\dipanwita.neogy\a
naconda3\lib\site-packages (from pyemd)
Building wheels for collected packages: pyemd
Running setup.py bdist_wheel for pyemd ... error
Complete output from command C:\Users\dipanwita.neogy\Anaconda3\python.exe -u
-c "import setuptools, tokenize;__file__='C:\\Users\\DIPANW~1.NEO\\AppData\\Loca
l\\Temp\\pip-build-nk13uh5b\\pyemd\\setup.py';f=getattr(tokenize, 'open', open)(
__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __fil
e__, 'exec'))" bdist_wheel -d C:\Users\DIPANW~1.NEO\AppData\Local\Temp\tmpngn2np
rmpip-wheel- --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.6
creating build\lib.win32-3.6\pyemd
copying pyemd\__about__.py -> build\lib.win32-3.6\pyemd
copying pyemd\__init__.py -> build\lib.win32-3.6\pyemd
running build_ext
building 'pyemd.emd' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C+
+ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Failed building wheel for pyemd
Running setup.py clean for pyemd
Failed to build pyemd
Installing collected packages: pyemd
Running setup.py install for pyemd ... error
Complete output from command C:\Users\dipanwita.neogy\Anaconda3\python.exe -
u -c "import setuptools, tokenize;__file__='C:\\Users\\DIPANW~1.NEO\\AppData\\Lo
cal\\Temp\\pip-build-nk13uh5b\\pyemd\\setup.py';f=getattr(tokenize, 'open', open
)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __f
ile__, 'exec'))" install --record C:\Users\DIPANW~1.NEO\AppData\Local\Temp\pip-e
rihhtfj-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.6
creating build\lib.win32-3.6\pyemd
copying pyemd\__about__.py -> build\lib.win32-3.6\pyemd
copying pyemd\__init__.py -> build\lib.win32-3.6\pyemd
running build_ext
building 'pyemd.emd' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual
C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Command "C:\Users\dipanwita.neogy\Anaconda3\python.exe -u -c "import setuptools,
tokenize;__file__='C:\\Users\\DIPANW~1.NEO\\AppData\\Local\\Temp\\pip-build-nk1
3uh5b\\pyemd\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read(
).replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install
--record C:\Users\DIPANW~1.NEO\AppData\Local\Temp\pip-erihhtfj-record\install-r
ecord.txt --single-version-externally-managed --compile" failed with error code
1 in C:\Users\DIPANW~1.NEO\AppData\Local\Temp\pip-build-nk13uh5b\pyemd\
I cannot find anything regarding this error. Please suggest me what should I do?
The error you are receiving is: error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools. You need to read the error message carefully.
You just need to go to the link they have provided for you and follow the instructions: http://landinghub.visualstudio.com/visual-cpp-build-tools
Following below steps helped me overcome the error:
While installing the Visual Studio: Download Visual Studio
-> Desktop development with C++
-> Check C++/CLI support for v142 build tools (14.24)
Having the below dependency ready:
get Python --Version in CLI.
Download and install whl file from Twisted WHL file
pip install C:\"Twisted‑19.10.0‑cp36‑cp36m‑win_amd64.whl"
Finally Run:
pip install -v pyemd
I am trying to install the python pyminizip module on my PC but i have the fallowing error :
C:\Python27\Scripts>pip install pyminizip
Collecting pyminizip
Using cached pyminizip-0.2.1.tar.gz
Installing collected packages: pyminizip
Running setup.py install for pyminizip ... error
Complete output from command c:\python27\python.exe -u -c "import setuptools
, tokenize;__file__='c:\\users\\andrei~1.gug\\appdata\\local\\temp\\pip-build-mb
aaft\\pyminizip\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.re
ad().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" inst
all --record c:\users\andrei~1.gug\appdata\local\temp\pip-9hqnfh-record\install-
record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'pyminizip' extension
creating build
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\src
C:\Users\Andrei-Cristian.GUGI\AppData\Local\Programs\Common\Microsoft\Visual
C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Isrc -Ic
:\python27\include -Ic:\python27\PC /Tcsrc/py_minizip.c /Fobuild\temp.win32-2.7\
Release\src/py_minizip.obj
py_minizip.c
c:\users\andrei-cristian.gugi\appdata\local\temp\pip-build-mbaaft\pyminizip\
src\zip.h(43) : fatal error C1083: Cannot open include file: 'zlib.h': No such f
ile or directory
error: command 'C:\\Users\\Andrei-Cristian.GUGI\\AppData\\Local\\Programs\\C
ommon\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit
status 2
----------------------------------------
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\
\users\\andrei~1.gug\\appdata\\local\\temp\\pip-build-mbaaft\\pyminizip\\setup.p
y';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n
');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\an
drei~1.gug\appdata\local\temp\pip-9hqnfh-record\install-record.txt --single-vers
ion-externally-managed --compile" failed with error code 1 in c:\users\andrei~1.
gug\appdata\local\temp\pip-build-mbaaft\pyminizip\
I also tried to install the zlib.dll -> copied from the internet to the C:\Windows\SysWOW64 --> same result
Can someone please help me with this toppic?
First get a copy of pyminizip from pypi and zlib source (http://zlib.net/zlib1211.zip)
A few things you need to do after that:
compile the zlibvc solution file using Visual Studio (Here's how: http://www.tannerhelland.com/5076/compile-zlib-winapi-wapi-stdcall/) - make sure you compile for the right platform (x86/x64!!)
copy the created 'zlibstat.lib' from ZLibStatRelease subfolder into the python package install folder (next to setup.py) and rename it to 'zlib.lib'
copy all the zlib source files (except makefile) from the zlib folder into the python package src subfolder, including the win32 subfolder
Now you should be good to go installing using 'python setup.py install'
I am running windows 7 64 bit, Python v2.7.10 and pip v9.0.1
I tried to install rrdtool but I get an error
PS C:\Windows\system32> pip install rrdtool
Collecting rrdtool
Using cached rrdtool-0.1.11.tar.gz
Complete output from command python setup.py egg_info:
test_rrdtool.c
c:\users\person\appdata\local\temp\tmp_python_rrdtoolvwty3u\test_rrdtool.c(2) : fatal error C1083: Cannot open incl
ude file: 'rrd.h': No such file or directory
Error: Unable to compile the binary module. Do you have the rrdtool header and libraries installed?
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\person\appdata\local\temp\pip-build-pyontu\rrdt
ool\
I also tried to install python-rrdtool but got an error
PS C:\Users\person\Downloads> pip install python-rrdtool
Collecting python-rrdtool
Using cached python-rrdtool-1.4.7.tar.gz
Installing collected packages: python-rrdtool
Running setup.py install for python-rrdtool ... error
Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\person\
\appdata\\local\\temp\\pip-build-ykegvz\\python-rrdtool\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.re
ad().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\person\appdata\lo
cal\temp\pip-w44bef-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
running build_configure
building 'rrdtoolmodule' extension
creating build
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\rrdtool-1.4.7
creating build\temp.win-amd64-2.7\Release\rrdtool-1.4.7\bindings
creating build\temp.win-amd64-2.7\Release\rrdtool-1.4.7\bindings\python
C:\Users\person\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /O
x /MD /W3 /GS- /DNDEBUG -Irrdtool-1.4.7/src -Ic:\python27\include -Ic:\python27\PC /Tcrrdtool-1.4.7/bindings/python/rrdt
oolmodule.c /Fobuild\temp.win-amd64-2.7\Release\rrdtool-1.4.7/bindings/python/rrdtoolmodule.obj
rrdtoolmodule.c
rrdtool-1.4.7/bindings/python/rrdtoolmodule.c(41) : fatal error C1083: Cannot open include file: '../../rrd_config.h
': No such file or directory
error: command 'C:\\Users\\person\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin
\\amd64\\cl.exe' failed with exit status 2
----------------------------------------
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\person\\appdata\\local\\temp\\p
ip-build-ykegvz\\python-rrdtool\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n
');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\person\appdata\local\temp\pip-w44bef-reco
rd\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\person\appdat
a\local\temp\pip-build-ykegvz\python-rrdtool\
I ran the installation using admin privileges as well but get the same error.
I need to parse some rrd files using the rrdtool and create graphs but I just cannot install this archive using pip.
I am a newbie with python so I am not sure how to go about this.
I tried to install it using tar.gz file downloaded from https://pypi.python.org/pypi/python-rrdtool/1.4.7 still got an error
PS C:\Users\person\Downloads> pip install .\python-rrdtool-1.4.7.tar.gz
Processing c:\users\person\downloads\python-rrdtool-1.4.7.tar.gz
Installing collected packages: python-rrdtool
Running setup.py install for python-rrdtool ... error
Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\person\
\appdata\\local\\temp\\pip-hpkobh-build\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r
\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\person\appdata\local\temp\pip-b3z
3rd-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
running build_configure
building 'rrdtoolmodule' extension
creating build
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\rrdtool-1.4.7
creating build\temp.win-amd64-2.7\Release\rrdtool-1.4.7\bindings
creating build\temp.win-amd64-2.7\Release\rrdtool-1.4.7\bindings\python
C:\Users\person\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /O
x /MD /W3 /GS- /DNDEBUG -Irrdtool-1.4.7/src -Ic:\python27\include -Ic:\python27\PC /Tcrrdtool-1.4.7/bindings/python/rrdt
oolmodule.c /Fobuild\temp.win-amd64-2.7\Release\rrdtool-1.4.7/bindings/python/rrdtoolmodule.obj
rrdtoolmodule.c
rrdtool-1.4.7/bindings/python/rrdtoolmodule.c(41) : fatal error C1083: Cannot open include file: '../../rrd_config.h
': No such file or directory
error: command 'C:\\Users\\person\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin
\\amd64\\cl.exe' failed with exit status 2
----------------------------------------
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\person\\appdata\\local\\temp\\p
ip-hpkobh-build\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exe
c(compile(code, __file__, 'exec'))" install --record c:\users\person\appdata\local\temp\pip-b3z3rd-record\install-recor
d.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\person\appdata\local\temp\pip
-hpkobh-build\
You can download it manually from website
then go to folder with .tar.gz and execute command pip install python-rrdtool-1.4.7.tar.gz
You can also try to download it from here unzip and start .exe file.
When facing the error message
Error: Unable to compile the binary module
you'll need to ensure rrdtool is installed. It seems it's impossible to install the rrdtool-python module without the underlying libs/binaries/headers already existing on your filesystem.
In general, installing the following packages on your machine should resolve this issue:
rrdtool
rrdtool-devel
for my specific use-case in RHEL8, installing the following allowed rrdtool-python to install smoothly:
rrdtool-1.7.0-16.el8.x86_64.rpm
rrdtool-devel-1.7.0-16.el8.x86_64.rpm