<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
p.Code, li.Code, div.Code
{mso-style-name:Code;
mso-style-priority:99;
mso-style-link:"Code Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:9.0pt;
font-family:"Courier New";
mso-fareast-language:EN-US;}
span.CodeChar
{mso-style-name:"Code Char";
mso-style-priority:99;
mso-style-link:Code;
font-family:"Courier New";}
p.Reply, li.Reply, div.Reply
{mso-style-name:Reply;
mso-style-link:"Reply Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.ReplyChar
{mso-style-name:"Reply Char";
mso-style-link:Reply;
color:#1F497D;
mso-fareast-language:EN-CA;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang="EN-CA" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoPlainText">Hi Phil,</p><p class="MsoPlainText"> </p><p class="MsoPlainText">Thanks for your insight. This has me in the right track however I am confused as to why the paths are turning out the way they are. When I do configure.py --help I get:</p>
<p class="Code">c:\QtEnterprise\PyQtCharts\PyQtChart-commercial-1.3>python configure.py --help</p><p class="Code">Usage: python configure.py [options]</p><p class="Code"> </p><p class="Code">Options:</p><p class="Code">
--version show program's version number and exit</p><p class="Code"> -h, --help show this help message and exit</p><p class="Code"> --spec=SPEC win32-msvc2008</p><p class="Code"> --configuration=FILE FILE defines the target configuration</p>
<p class="Code"> -d DIR, --destdir=DIR</p><p class="Code"> install the QtChart module in DIR [default:</p><p class="Code"> <b><span style="font-size:10.0pt">C:\Python27_64_UpgLibs\Lib\site-packages\PyQt4</span></b>]</p>
<p class="Code"> --protected-is-public</p><p class="Code"> enable building with 'protected' redefined as 'public'</p><p class="Code"> [default: False]</p><p class="Code">
--protected-not-public</p><p class="Code"> disable building with 'protected' redefined as</p><p class="Code"> 'public'</p><p class="Code"> --pyqt=PyQtn configure for PyQt4 or PyQt5 [default: PyQt4]</p>
<p class="Code"> --sip=FILE the pathname of sip is FILE [default:</p><p class="Code"> <b><span style="font-size:10.0pt">C:\Python27_64_UpgLibs\sip.exe</span></b>]</p><p class="Code"> --sip-incdir=DIR the directory containing the sip.h header file file is</p>
<p class="Code"> DIR [default: <b><span style="font-size:10.0pt">C:\Python27_64_UpgLibs\Include</span></b>]</p><p class="Code"> --pyqt-sipdir=DIR the directory containing the PyQt .sip files is DIR</p>
<p class="Code"> [default: <b><span style="font-size:10.0pt">C:\Python27_64_UpgLibs\sip\PyQt4</span></b>]</p><p class="Code"> -v DIR, --qtchart-sipdir=DIR</p><p class="Code"> the QtChart .sip files will be installed in DIR</p>
<p class="Code"> [default: <b><span style="font-size:10.0pt">C:\Python27_64_UpgLibs\sip\PyQt4</span></b>]</p><p class="Code"> -c, --concatenate concatenate the C++ source files</p><p class="Code">
-j N, --concatenate-split=N</p><p class="Code"> split the concatenated C++ source files into N pieces</p><p class="Code"> [default: 1]</p><p class="Code"> -k, --static build the QtChart module as a static library</p>
<p class="Code"> --no-docstrings disable the generation of docstrings</p><p class="Code"> -r, --trace build the QtChart module with tracing enabled</p><p class="Code"> -u, --debug build the QtChart module with debugging symbols</p>
<p class="Code"> -w, --verbose enable verbose output during configuration</p><p class="Code"> -T, --no-timestamp suppress timestamps in the header comments of</p><p class="Code"> generated code [default: include timestamps]</p>
<p class="MsoPlainText"> </p><p class="MsoNormal">The default directories it picks up are the correct ones, however when I actually run configure.py:</p><p class="MsoNormal"> </p><p class="Code">c:\QtEnterprise\PyQtCharts\PyQtChart-commercial-1.3>python configure.py</p>
<p class="Code">PyQt 4.9.5 is being used.</p><p class="Code">Qt 4.8.3 is being used.</p><p class="Code"> </p><p class="Code">c:\QtEnterprise\PyQtCharts\PyQtChart-commercial-1.3>This is the commercial versi</p><p class="Code">
on of PyQtChart 1.3.</p><p class="Code">QtCommercialChart 1.3.0 is being used.</p><p class="Code">PyQt 4.9.5 is being used.</p><p class="Code">Qt v4.8.3 free edition is being used.</p><p class="Code">SIP 4.14.1 is being used.</p>
<p class="Code">The QtChart package will be installed in</p><p class="Code"><b><span style="font-size:10.0pt">C:\Python27_64\Lib\site-packages\PyQt4</span></b>.</p><p class="Code">The QtChart .sip files will be installed in <b><span style="font-size:10.0pt">C:\Python27_64\sip\PyQt4</span></b>.</p>
<p class="Code">The QtChart module is being built with generated docstrings.</p><p class="Code">Generating the C++ source for the QtChart module...</p><p class="Code">sip: Deprecation warning: <b><span style="font-size:10.0pt">C:\Python27_64\sip\PyQt4/QtGui/QtGuimod.sip</span></b>:17: %Modul</p>
<p class="Code">e version number should be specified using the 'version' argument</p><p class="Code">sip: Deprecation warning: C:\Python27_64\sip\PyQt4/QtCore/QtCoremod.sip:17: %Mod</p><p class="Code">ule version number should be specified using the 'version' argument</p>
<p class="Code">sip: Deprecation warning: C:\Python27_64\sip\PyQt4/QtCore/QtCoremod.sip:47: %Opt</p><p class="Code">ionalInclude is deprecated, use %Include and the 'optional' argument instead</p><p class="Code">sip: Deprecation warning: C:\Python27_64\sip\PyQt4/QtCore/QtCoremod.sip:69: %Opt</p>
<p class="Code">ionalInclude is deprecated, use %Include and the 'optional' argument instead</p><p class="Code">sip: Deprecation warning: C:\Python27_64\sip\PyQt4/QtCore/QtCoremod.sip:70: %Opt</p><p class="Code">ionalInclude is deprecated, use %Include and the 'optional' argument instead</p>
<p class="Code">sip: Deprecation warning: C:\Python27_64\sip\PyQt4/QtCore/QtCoremod.sip:71: %Opt</p><p class="Code">ionalInclude is deprecated, use %Include and the 'optional' argument instead</p><p class="Code">sip: C:\Python27_64\sip\PyQt4/QtCore/QtCoremod.sip:73: syntax error</p>
<p class="Code">Error: Unable to create the C++ code.</p><p class="Code"> </p><p class="MsoNormal">It is grabbing completely different python directories. C:\Python27_64 is not even on my path, C:\Python27_64_UpgLibs is. Any help would be appreciated.</p>
<p class="MsoNormal"> </p><p class="MsoNormal">Thanks.</p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoPlainText"><span lang="EN-US" style>-----Original Message-----<br>From: Phil Thompson [mailto:<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>] <br>
Sent: October-17-13 9:17 AM<br>To: Mark Mordeca<br>Cc: <a href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a><br>Subject: Re: [PyQt] Building PyQtChart</span></p><p class="MsoPlainText"> </p><p class="MsoPlainText">
On Thu, 17 Oct 2013 08:18:57 -0400, Mark Mordeca <<a href="mailto:mark.mordeca@prosensus.ca"><span style="color:windowtext;text-decoration:none">mark.mordeca@prosensus.ca</span></a>> wrote:</p><p class="MsoPlainText">
> Hello,</p><p class="MsoPlainText">> </p><p class="MsoPlainText">> </p><p class="MsoPlainText">> </p><p class="MsoPlainText">> I have downloaded a 30-day trial of Qt Charts and want to build</p><p class="MsoPlainText">
PyQtChart</p><p class="MsoPlainText">> for it, however the build is not working:</p><p class="MsoPlainText">> </p><p class="MsoPlainText">> </p><p class="MsoPlainText">> </p><p class="MsoPlainText">> c:\QtEnterprise\PyQtCharts\PyQtChart-commercial-1.3>This is the</p>
<p class="MsoPlainText">commercial</p><p class="MsoPlainText">> versi</p><p class="MsoPlainText">> </p><p class="MsoPlainText">> on of PyQtChart 1.3.</p><p class="MsoPlainText">> </p><p class="MsoPlainText">> QtCommercialChart 1.3.0 is being used.</p>
<p class="MsoPlainText">> </p><p class="MsoPlainText">> PyQt 4.9.5 is being used.</p><p class="MsoPlainText">> </p><p class="MsoPlainText">> Qt v4.8.3 free edition is being used.</p><p class="MsoPlainText">> </p>
<p class="MsoPlainText">> SIP 4.14.1 is being used.</p><p class="MsoPlainText">> </p><p class="MsoPlainText">> The QtChart package will be installed in</p><p class="MsoPlainText">> </p><p class="MsoPlainText">
> C:\Python27_64\Lib\site-packages\PyQt4.</p><p class="MsoPlainText">> </p><p class="MsoPlainText">> The QtChart .sip files will be installed in C:\Python27_64\sip\PyQt4.</p><p class="MsoPlainText">> </p><p class="MsoPlainText">
> The QtChart module is being built with generated docstrings.</p><p class="MsoPlainText">> </p><p class="MsoPlainText">> Generating the C++ source for the QtChart module...</p><p class="MsoPlainText">> </p><p class="MsoPlainText">
> sip: Usage: sip [-h] [-V] [-a file] [-c dir] [-d file] [-e] [-g] [-I</p><p class="MsoPlainText">dir]</p><p class="MsoPlainText">> [-j #]</p><p class="MsoPlainText">> </p><p class="MsoPlainText">> [-m file] [-p module] [-r] [-s suffix] [-t tag] [-w] [-x feature] [-z</p>
<p class="MsoPlainText">file]</p><p class="MsoPlainText">> [fi</p><p class="MsoPlainText">> </p><p class="MsoPlainText">> le]</p><p class="MsoPlainText">> </p><p class="MsoPlainText">> *Error: Unable to create the C++ code.*</p>
<p class="MsoPlainText">> </p><p class="MsoPlainText">> * *</p><p class="MsoPlainText">> </p><p class="MsoPlainText">> I don’t particularly understand what the problem is as all I get is </p><p class="MsoPlainText">
> this mysterious error. I am building it with Visual Studio 2008 for 64bit.</p><p class="MsoPlainText">I</p><p class="MsoPlainText">> haven’t had problems like this building PyQt. Any help would be </p><p class="MsoPlainText">
> appreciated because I would like to see what the capability of </p><p class="MsoPlainText">> PyQtChart</p><p class="MsoPlainText">is</p><p class="MsoPlainText">> before my trial runs out.</p><p class="MsoPlainText">
</p><p class="MsoPlainText">Looking at the usage message the version of sip.exe seems to be very old (earlier than v4.10). The SIP version number displayed by configure.py is taken from the sip Python module. So it looks like you have an old sip.exe on your PATH somewhere.</p>
<p class="MsoPlainText"> </p><p class="MsoPlainText">Phil</p></div></body></html>