tegrato
@tegrato

Как установить модуль pymqi?

Для обращения с помощью Python к очередям IBM MQ нужно установить модуль pymqi.
Но этот зверь никак не хочет устанавливаться ни на Windows, ни на Mac OS, ни на Linux.
Во всех случаях возникает ошибка установки :(

Linux Debian:
compilation terminated.                                                                                                                                      
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1                                                                                              


  ----------------------------------------                                                                                                                     
  Failed building wheel for pymqi
  Running setup.py clean for pymqi                                                                                                                             
Failed to build pymqi                                                                                                                                          
Installing collected packages: pymqi                                                                                                                           
  Running setup.py install for pymqi ... error                                                                                                                 
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0k883jfy/pymqi/setup.py';f=getattr(tokenize, 'ope
n', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-58e2s8tl-record/install-reco
rd.txt --single-version-externally-managed --compile:                                                                                                          
    Building PyMQI client 64bits                                                                                                                               
    running install                                                                                                                                            
    running build                                                                                                                                              
    running build_py                                                                                                                                           
    creating build                                                                                                                                             
    creating build/lib.linux-x86_64-3.5                                                                                                                        
    creating build/lib.linux-x86_64-3.5/pymqi                                                                                                                  
    copying pymqi/__init__.py -> build/lib.linux-x86_64-3.5/pymqi                                                                                              
    copying pymqi/CMQC.py -> build/lib.linux-x86_64-3.5/pymqi                                                                                                  
    copying pymqi/CMQCFC.py -> build/lib.linux-x86_64-3.5/pymqi                                                                                                
    copying pymqi/CMQXC.py -> build/lib.linux-x86_64-3.5/pymqi                                                                                                 
    copying pymqi/CMQZC.py -> build/lib.linux-x86_64-3.5/pymqi                                                                                                 
    running build_ext                                                                                                                                          
    building 'pymqi.pymqe' extension                                                                                                                           
    creating build/temp.linux-x86_64-3.5                                                                                                                       
    creating build/temp.linux-x86_64-3.5/pymqi                                                                                                                 
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-MLq5fN/python3.5-3.5.3=. -fstack-pro
tector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPYQMI_SERVERBUILD=0 -I/opt/mqm/inc -I/usr/include/python3.5m -c pymqi/py
mqe.c -o build/temp.linux-x86_64-3.5/pymqi/pymqe.o                                                                                                             
    pymqi/pymqe.c:78:18: fatal error: cmqc.h: No such file or directory                                                                                        
     #include <cmqc.h>                                                                                                                                         
                      ^                                                                                                                                        
    compilation terminated.                                                                                                                                    
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1                                                                                            


    ----------------------------------------                                                                                                                   
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0k883jfy/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 /tmp/pip-58e2s8tl-record/install-record.txt --single-version-
externally-managed --compile" failed with error code 1 in /tmp/pip-build-0k883jfy/pymqi/


Windows:
Microsoft Windows [Version 6.1.7601]
(c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.

C:\Users\user>pip3 install pymqi
Collecting pymqi
  Using cached https://files.pythonhosted.org/packages/b0/64/1083241de670bce6549ea58a0a3dfbdf30001d7390b170c4453a67dd36c8/pymqi-1.8.0.tar.gz
Installing collected packages: pymqi
  Running setup.py install for pymqi ... error
    Complete output from command c:\users\user\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;__file__='D
:\\TMP\\pip-install-on54u4ny\\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 D:\TMP\pip-record-ngcup6bo\install-record.txt --single-version-externally-managed --compile:
    Building PyMQI client 32bits
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.7
    creating build\lib.win32-3.7\pymqi
    copying pymqi\__init__.py -> build\lib.win32-3.7\pymqi
    copying pymqi\CMQC.py -> build\lib.win32-3.7\pymqi
    copying pymqi\CMQCFC.py -> build\lib.win32-3.7\pymqi
    copying pymqi\CMQXC.py -> build\lib.win32-3.7\pymqi
    copying pymqi\CMQZC.py -> build\lib.win32-3.7\pymqi
    running build_ext
    building 'pymqi.pymqe' 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\user\appdata\local\programs\python\python37-32\python.exe -u -c "import setuptools, tokenize;__file__='D:\\TMP\\pip-install-on54
u4ny\\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 D:\TMP\pip-record-ngcup6bo\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in D:\TMP\pip
-install-on54u4ny\pymqi\

(Microsoft Visual C++ 14.0 установлен)
  • Вопрос задан
  • 1871 просмотр
Пригласить эксперта
Ответы на вопрос 1
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы