[jira] [Updated] (QPID-4982) qmf-gen doesn't work with Python 3
[ https://issues.apache.org/jira/browse/QPID-4982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jiri Daněk updated QPID-4982: - Fix Version/s: qpid-cpp-1.40.0 > qmf-gen doesn't work with Python 3 > -- > > Key: QPID-4982 > URL: https://issues.apache.org/jira/browse/QPID-4982 > Project: Qpid > Issue Type: Bug > Components: C++ Build >Affects Versions: 0.22, 0.23 > Environment: Any with python 3 >Reporter: Steve Rothkin >Assignee: Justin Ross >Priority: Minor > Fix For: qpid-cpp-1.40.0 > > Attachments: qpid-windows-build-log.txt, screenshot-1.jpg > > Original Estimate: 48h > Remaining Estimate: 48h > > I followed the instructions in cpp\INSTALL-WINDOWS. I have installed the > latest Windows versions of Boost, Ruby, and Python as per the instructions. > I've also built the Boost libraries and set the environment variables as per > the instructions. > I tried the 3. Building from a Source Distribution using qpid-0.22.tar.gz > using the cmake command line tool. I got the following errors: > c:\cyghome\QueueSystems\Qpid\qpid-0.22\cpp>cmake -i -G "Visual Studio 9 2008" > Would you like to see advanced options? [No]: > Please wait while cmake processes CMakeLists.txt files > File "", line 1 > from distutils.sysconfig import get_python_lib; print > get_python_lib(False) >^ > SyntaxError: invalid syntax > File "C:/cyghome/QueueSystems/Qpid/qpid-0.22/cpp/managementgen/qmf-gen", > line > 64 > print "no input files" > ^ > SyntaxError: invalid syntax > CMake Error at src/CMakeLists.txt:231 (include): > include could not find load file: > C:/cyghome/QueueSystems/Qpid/qpid-0.22/cpp/src/managementgen.cmake > CMake Error at C:/Program Files (x86)/CMake > 2.8/share/cmake-2.8/Modules/FindBoos > t.cmake:1104 (message): > Unable to find the requested Boost libraries. > Boost version: 1.54.0 > Boost include path: C:/boost/boost_1_54_0 > The following Boost libraries could not be found: > boost_program_options > boost_date_time > boost_thread > boost_unit_test_framework > boost_regex > No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the > directory containing Boost libraries or BOOST_ROOT to the location of > Boost. > Call Stack (most recent call first): > src/CMakeLists.txt:325 (find_package) > - > I also tried the 4. Building a Repository Working Copy with a checkout of the > latest from SVN using the cmake GUI (selecting Visual Studio 10 Win64 as the > generator since I don't have VS2008). I got the following errors: > Regenerating Qpid Management Framework sources > CMake Error at src/CMakeLists.txt:232 (include): > include could not find load file: > C:/Qpid/src/managementgen.cmake > CMake Error at C:/Program Files (x86)/CMake > 2.8/share/cmake-2.8/Modules/FindBoost.cmake:1104 (message): > Unable to find the requested Boost libraries. > Boost version: 1.54.0 > Boost include path: C:/boost/boost_1_54_0 > The following Boost libraries could not be found: > boost_program_options > boost_date_time > boost_thread > boost_unit_test_framework > boost_regex > No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the > directory containing Boost libraries or BOOST_ROOT to the location of > Boost. > Call Stack (most recent call first): > src/CMakeLists.txt:364 (find_package) > CMake Error at src/CMakeLists.txt:366 (message): > Boost C++ libraries not found. Please install or try setting BOOST_ROOT > Configuring incomplete, errors occurred! > - > The relevant environment variables on my system are: > BOOST_LIBRARYDIR=C:\boost\boost_1_54_0\stage\lib > BOOST_ROOT=C:\boost\boost_1_54_0 > INCLUDE=c:\Program Files (x86)\Microsoft Visual Studio > 10.0\VC\INCLUDE;c:\Program Files (x86)\Microsoft Visual Studio > 10.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Microsoft > SDKs\Windows\v7.0A\include;C:\boost\boost_1_54_0 > LIB=c:\Program Files (x86)\Microsoft Visual Studio > 10.0\VC\LIB\amd64;c:\Program Files (x86)\Microsoft Visual Studio > 10.0\VC\ATLMFC\LIB\amd64;C:\Program Files (x86)\Microsoft > SDKs\Windows\v7.0A\lib\x64;C:\boost\boost_1_54_0\stage\lib > LIBPATH=C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Windows\Microsoft.NET\Framework64\v3.5;c:\Program > Files (x86)\Microsoft Visual Studio 10.0\VC\LIB\amd64;c:\Program Files > (x86)\Microsoft Visual Studio > 10.0\VC\ATLMFC\LIB\amd64;C:\boost\boost_1_54_0\stage\lib > Path=c:\Program Files (x86)\Microsoft Visual Studio > 10.0\VC\BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Windows\Microsoft.NET\Framework64\v3.
[jira] [Updated] (QPID-4982) qmf-gen doesn't work with Python 3
[ https://issues.apache.org/jira/browse/QPID-4982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Huston updated QPID-4982: --- Priority: Minor (was: Blocker) Environment: Any with python 3 (was: Windows 7 Enterprise 64 bit SP1) Remaining Estimate: 48h Original Estimate: 48h Summary: qmf-gen doesn't work with Python 3 (was: cmake for Visual Studio fails) The summary of what this length exchange produced is this: the qmf-gen utility which generates qmf-related code requires python 2.x - it fails with python 3. There are some print statements, which are easy to fix. The require of StringIO needs an alternate for python 3, and there's a except clause that needs some help (not sure how to fix that one). > qmf-gen doesn't work with Python 3 > -- > > Key: QPID-4982 > URL: https://issues.apache.org/jira/browse/QPID-4982 > Project: Qpid > Issue Type: Bug > Components: Build Tools >Affects Versions: 0.22, 0.23 > Environment: Any with python 3 >Reporter: Steve Rothkin >Priority: Minor > Attachments: qpid-windows-build-log.txt, screenshot-1.jpg > > Original Estimate: 48h > Remaining Estimate: 48h > > I followed the instructions in cpp\INSTALL-WINDOWS. I have installed the > latest Windows versions of Boost, Ruby, and Python as per the instructions. > I've also built the Boost libraries and set the environment variables as per > the instructions. > I tried the 3. Building from a Source Distribution using qpid-0.22.tar.gz > using the cmake command line tool. I got the following errors: > c:\cyghome\QueueSystems\Qpid\qpid-0.22\cpp>cmake -i -G "Visual Studio 9 2008" > Would you like to see advanced options? [No]: > Please wait while cmake processes CMakeLists.txt files > File "", line 1 > from distutils.sysconfig import get_python_lib; print > get_python_lib(False) >^ > SyntaxError: invalid syntax > File "C:/cyghome/QueueSystems/Qpid/qpid-0.22/cpp/managementgen/qmf-gen", > line > 64 > print "no input files" > ^ > SyntaxError: invalid syntax > CMake Error at src/CMakeLists.txt:231 (include): > include could not find load file: > C:/cyghome/QueueSystems/Qpid/qpid-0.22/cpp/src/managementgen.cmake > CMake Error at C:/Program Files (x86)/CMake > 2.8/share/cmake-2.8/Modules/FindBoos > t.cmake:1104 (message): > Unable to find the requested Boost libraries. > Boost version: 1.54.0 > Boost include path: C:/boost/boost_1_54_0 > The following Boost libraries could not be found: > boost_program_options > boost_date_time > boost_thread > boost_unit_test_framework > boost_regex > No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the > directory containing Boost libraries or BOOST_ROOT to the location of > Boost. > Call Stack (most recent call first): > src/CMakeLists.txt:325 (find_package) > - > I also tried the 4. Building a Repository Working Copy with a checkout of the > latest from SVN using the cmake GUI (selecting Visual Studio 10 Win64 as the > generator since I don't have VS2008). I got the following errors: > Regenerating Qpid Management Framework sources > CMake Error at src/CMakeLists.txt:232 (include): > include could not find load file: > C:/Qpid/src/managementgen.cmake > CMake Error at C:/Program Files (x86)/CMake > 2.8/share/cmake-2.8/Modules/FindBoost.cmake:1104 (message): > Unable to find the requested Boost libraries. > Boost version: 1.54.0 > Boost include path: C:/boost/boost_1_54_0 > The following Boost libraries could not be found: > boost_program_options > boost_date_time > boost_thread > boost_unit_test_framework > boost_regex > No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the > directory containing Boost libraries or BOOST_ROOT to the location of > Boost. > Call Stack (most recent call first): > src/CMakeLists.txt:364 (find_package) > CMake Error at src/CMakeLists.txt:366 (message): > Boost C++ libraries not found. Please install or try setting BOOST_ROOT > Configuring incomplete, errors occurred! > - > The relevant environment variables on my system are: > BOOST_LIBRARYDIR=C:\boost\boost_1_54_0\stage\lib > BOOST_ROOT=C:\boost\boost_1_54_0 > INCLUDE=c:\Program Files (x86)\Microsoft Visual Studio > 10.0\VC\INCLUDE;c:\Program Files (x86)\Microsoft Visual Studio > 10.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Microsoft > SDKs\Windows\v7.0A\include;C:\boost\boost_1_54_0 > LIB=c:\Program Files (x86)\Microsoft Visual Studio > 10.0\VC\LIB\amd64;c:\Program Files (x86)\Microsoft Visual Studio > 10.0\VC\AT