Have Windows Server 2012 R2 VM ================================================================================================== Download and "install" swig (https://vorboss.dl.sourceforge.net/project/swig/swigwin/swigwin-3.0.12/swigwin-3.0.12.zip) -------------------------------------------------------------------------------------------------- Unzip and move to C:\swigwin-3.0.12 --- Add "C:\swigwin-3.0.12" into System variables -> Path ================================================================================================== Download and install cmake (https://cmake.org/files/v3.12/cmake-3.12.0-rc1-win64-x64.msi) -------------------------------------------------------------------------------------------------- Next --- Accept license Next --- X Add CMake to the system PATH for all users Next --- Choose destination folder (C:\Program Files\CMake\) Next --- Install ================================================================================================== Download and install git (Git-2.17.1.2-64-bit.exe from https://git-scm.com/download/win) -------------------------------------------------------------------------------------------------- Next --- Next --- Next --- X Use Git and optional Unix tools from the Windows Command Prompt Next --- X Use the OpenSSL library Next --- X Checkout as-is, commit as-is Next --- X Use MinTTY (the default terminal of MSYS2) Next --- Untick everything Install ================================================================================================== Download and install Python 3.6.5 (https://www.python.org/ftp/python/3.6.5/python-3.6.5-amd64.exe) -------------------------------------------------------------------------------------------------- X Install launcher for all users (recommended) X Add Python 3.6 to PATH --- Install Now --- Set System Variables -> PYTHONPATH to "C:\Program Files\Python36;C:\Program Files\Python36\Lib\site-packages;C:\Program Files\Python36\Lib;C:\Program Files\Python36\DLLs;C:\Program Files\Python36\Scripts" ================================================================================================== Get qpid-proton -------------------------------------------------------------------------------------------------- cd C:\ mkdir proton cd proton git clone https://github.com/apache/qpid-proton.git cd qpid-proton git checkout 0.23.0 mkdir build cd build cmake .. -G "Visual Studio 12 2013 Win64" (cmake_output.txt) ================================================================================================== Compile qpid-proton -------------------------------------------------------------------------------------------------- Open C:\proton\qpid-proton\build\Proton.sln in Visual Studio (Microsoft Visual Studio Express 2013 for Windows Desktop) --- Select "RelWithDebInfo" Solution Configuriation (top of window) --- Solution Platform should be "x64" --- Right click (right side of window) on "Solution 'Proton' (74 projects)" Build Solution (vs_output.txt) --- Close Visual Studio ================================================================================================== Add libraries into System Variables -------------------------------------------------------------------------------------------------- Add "C:\proton\qpid-proton\build\python\dist" into System Variables -> PYTHONPATH --- Add "C:\proton\qpid-proton\build\python" into System Variables -> PYTHONPATH --- Add "C:\proton\qpid-proton\build\python\RelWithDebInfo" into System Variables -> Path --- Add "C:\proton\qpid-proton\build\c\RelWithDebInfo" into System Variables -> Path --- Add "C:\proton\qpid-proton\build\python\RelWithDebInfo" into System Variables -> PYTHONPATH ================================================================================================== Try that Qpid Proton Python is properly "installed" -------------------------------------------------------------------------------------------------- run "python(.exe)" --- run "import proton" in python -> this should be OK, without exception ================================================================================================== Get cli-proton-python -------------------------------------------------------------------------------------------------- cd C:\proton --- git clone https://github.com/rh-messaging/cli-proton-python.git --- Add "C:\proton\cli-proton-python" in System Variables -> PYTHONPATH --- cd cli_proton_python\cli_proton_python --- Try to run sender: "python sender.py --help" -> this should be OK ================================================================================================== Try to send 1 message to broker -------------------------------------------------------------------------------------------------- Download, install and run broker (AMQ 7.2.0.CR3, http://ooo.englab.brq.redhat.com/packages/mrgm/jboss_amq/7.2.0/amq-broker-7.2.0.CR3-bin.zip) --- run "python sender.py -b HOST:PORT/QUEUE_NAME --log-msgs dict -c 1 --msg-content 'Hi'" --- You should get exception: -------------------------------------------------------------------------------------------------- c:\proton\cli-proton-python\cli_proton_python>python sender.py -b 10.37.144.229:5672/examples --log-msgs dict -c 1 --msg-content "Hi" Traceback (most recent call last): File "sender.py", line 533, in main() File "sender.py", line 523, in main container = proton.reactor.Container(Send(opts)) File "C:\proton\qpid-proton\build\python\dist\proton\reactor.py", line 674, in __init__ super(Container, self).__init__(*handlers, **kwargs) File "C:\proton\qpid-proton\build\python\dist\proton\reactor.py", line 87, in __init__ Wrapper.__init__(self, kwargs.get("impl", pn_reactor), pn_reactor_attachments) File "C:\proton\qpid-proton\build\python\dist\proton\wrapper.py", line 55, in __init__ attrs = pn_void2py(pn_record_get(record, PYCTX)) OverflowError: in method 'pn_record_get', argument 2 of type 'pn_handle_t' Exception ignored in: Traceback (most recent call last): File "C:\proton\qpid-proton\build\python\dist\proton\wrapper.py", line 103, in __del__ pn_decref(self._impl) File "C:\proton\qpid-proton\build\python\dist\proton\wrapper.py", line 71, in __getattr__ attrs = self.__dict__["_attrs"] KeyError: ('_attrs',) c:\proton\cli-proton-python\cli_proton_python> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++