Hi Chris,<div><br></div><div>which files do actually differ between stackless and vanilla python (2.7.2)? Should i build the whole solution/python build? Building the solution file gives me a lot of missing file errors and a huge amount of files that make no sense to me.</div>
<div><br></div><div>Cheers, Lars</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 7, 2012 at 11:42 PM, Christian Tismer <span dir="ltr"><<a href="mailto:tismer@stackless.com" target="_blank">tismer@stackless.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div class="im">
    <div>Hey Lars,<br>
      <br>
      I have to admit that I didn't build Stackless on Windows for a
      long time.<br>
      But Visual Studio 2008 works definately.<br>
      There is also a pip version in the works, stackless as a
      pseudo-plugin...<br>
      <br>
      Well, to build it if you have Visual Studio, take the whole
      project download<br>
      from mercurial:<br>
      <br>
      
      <pre style="margin:0px;padding:0px;font-size:13px!important;color:rgb(26,26,26);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;line-height:16px">
hg clone <a href="http://hg.python.org/stackless/" target="_blank">http://hg.python.org/stackless/</a>
hg update v2.7.2-slp

Then open the project with Visual Studio in pcbuild, select the
right version for building (32bit, since PySide is 32bit)
and compile it.

The notes on cpython are applicable as well:

<a href="http://docs.python.org/devguide/setup.html#windows-compiling" target="_blank">http://docs.python.org/devguide/setup.html#windows-compiling</a>
and the express version of VStudio 2008 should work (but I never used it)

<a href="http://www.microsoft.com/en-us/download/details.aspx?id=14597" target="_blank">http://www.microsoft.com/en-us/download/details.aspx?id=14597</a>

cheers - chris

</pre>
      <br>
      On 12/7/12 8:38 PM, lars van Gemerden wrote:<br>
    </div>
    </div><div><div class="h5"><blockquote type="cite">He Chris,
      <div><br>
      </div>
      <div>I assume that the repair just replaced all files included in
        the download, but given the date i am pretty sure it is the same
        download i already had.</div>
      <div><br>
      </div>
      <div>What compiler would you recommend to build from source (last
        time i programmed in C(++) was around 1996)?</div>
      <div><br>
      </div>
      <div>Cheers, Lars</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Fri, Dec 7, 2012 at 6:53 PM,
          Christian Tismer <span dir="ltr"><<a href="mailto:tismer@stackless.com" target="_blank">tismer@stackless.com</a>></span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>Hi Lars,<br>
                <br>
                what exactly did you load?<br>
                <br>
                The patch from Anselm is from 2012-09-28.<br>
                <br>
                python-2.7.2-stackless.msi is still from 2011-12-12.<br>
                As far as I can see, all installers and binary packages
                are older than the patch.<br>
                <br>
                Eek - you would need to build from source I think.<br>
                <br>
                ciao - chris
                <div>
                  <div><br>
                    <br>
                    On 07.12.12 15:48, lars van Gemerden wrote:<br>
                  </div>
                </div>
              </div>
              <div>
                <div>
                  <blockquote type="cite">I am more then happy to help
                    solve this problem, but not sure exactly how. For
                    example <span style="font-family:arial,sans-serif;font-size:12.727272033691406px">C:\Python27\Lib\site-packages\</span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">PySide\examples\mainwindows\</span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">sdi\sdi.py


                      or any other example i tried does not crash on
                      exit for me (at least not now). My own software
                      does not crash on exit either (mostly/only on
                      start-up, but very unpredictably).</span>
                    <div> <font face="arial, sans-serif"><br>
                      </font></div>
                    <div><font face="arial, sans-serif">Did anyone try
                        the </font><span style="font-size:12.727272033691406px;font-family:arial,sans-serif">C:\Python27\Lib\site-packages\</span><span style="font-size:12.727272033691406px;font-family:arial,sans-serif">PySide\examples\mainwindows\</span><span style="font-size:12.727272033691406px;font-family:arial,sans-serif">sdi\sdi.py


                        example with PyQt?</span><font face="arial,
                        sans-serif"><br>
                      </font>
                      <div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>
                        </span></div>
                      <div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">I
                          could make a version of my own code with PyQt,
                          but i wouldn't know what to test for since
                          sometimes the suspect crashes don't appear for
                          days or weeks. </span></div>
                    </div>
                    <div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px"><br>
                      </span></div>
                    <div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">One


                        question, i read about Anselms patch above. Is
                        it included in the windows distributable on </span><font face="arial, sans-serif"><a href="http://www.stackless.com/wiki/Download" target="_blank">http://www.stackless.com/wiki/Download</a>?</font></div>

                    <div><font face="arial, sans-serif"><br>
                      </font></div>
                    <div><font face="arial, sans-serif">Cheers, Lars</font></div>
                    <div><font face="arial, sans-serif"><br>
                      </font></div>
                    <div><font face="arial, sans-serif">PS: I just
                        downloaded the latest version from the wiki ande
                         repaired-> no crashes yet :-) </font></div>
                    <div class="gmail_extra"><br>
                      <br>
                      <div class="gmail_quote">On Sun, Dec 2, 2012 at
                        12:12 PM, lars van Gemerden <span dir="ltr"><<a href="mailto:lars@rational-it.com" target="_blank">lars@rational-it.com</a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Chris,
                          <div><br>
                          </div>
                          <div>
                            <div><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">"One


                                thing would be interesting but involves
                                tome work:</span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px">
                              <span style="font-family:arial,sans-serif;font-size:12.727272033691406px">Can


                                you install PyQt instead and try the
                                same?"</span><br style="font-family:arial,sans-serif;font-size:12.727272033691406px">
                              <div><br>
                              </div>
                            </div>
                            <div> I am considering whether i could do so
                              efficiently, setting up my libs etc. isn't
                              really my strong suit and i have quite a
                              complex program. </div>
                          </div>
                          <div> </div>
                          <div>Is there some symptom, test, etc. that
                            could help me determine whether a crash is
                            due to the stackless/PySide combination?
                            Maybe the .dll that crashed? In that case I
                            could switch when i am reasonably sure that
                            the PySide code actually triggers the crash.
                            Otherwise i'd have to switch, continue
                            working with PyQt and if no seemingly
                            related crash occurs for say 2 weeks, report
                            back, which seems a bit roundabout.</div>
                          <div><br>
                          </div>
                          <div>Would it be useful if i send the windows
                            error (APPCRASH ... etc.)?</div>
                          <div><br>
                          </div>
                          <div>BTW: Most of the crashes i suspect of
                            being related happen during program startup,
                            so before any user interaction.</div>
                          <div><br>
                          </div>
                          <div>Cheers, Lars</div>
                          <div>
                            <div>
                              <div class="gmail_extra"><br>
                                <br>
                                <div class="gmail_quote">On Sat, Dec 1,
                                  2012 at 3:56 AM, Christian Tismer <span dir="ltr"><<a href="mailto:tismer@stackless.com" target="_blank">tismer@stackless.com</a>></span>
                                  wrote:<br>
                                  <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                    <div bgcolor="#FFFFFF" text="#000000">
                                      <div>Hi Lars,<br>
                                        <br>
                                        this is good information!<br>
                                        Since you don't get crashes from
                                        using stackless features, it is<br>
                                        pretty clear that the problems
                                        must come from things that<br>
                                        I changed to support stackless
                                        features.<br>
                                        <br>
                                        Good to know.<br>
                                        Still, it would be nice if we
                                        had something more deterministic
                                        to<br>
                                        cause a crash, especially a
                                        crash that occurs without manual<br>
                                        interaction...<br>
                                        <br>
                                        I think to have a closer look
                                        into PySide itself, to see if it
                                        uses<br>
                                        structures which are not
                                        officially public.<br>
                                        <br>
                                        One thing would be interesting
                                        but involves tome work:<br>
                                        Can you install PyQt instead and
                                        try the same?<br>
                                        <br>
                                        thanks & cheers - chris
                                        <div>
                                          <div><br>
                                            <br>
                                            <br>
                                            On 30.11.12 11:56, lars van
                                            Gemerden wrote:<br>
                                          </div>
                                        </div>
                                      </div>
                                      <div>
                                        <div>
                                          <blockquote type="cite">I am
                                            also working with a
                                            combination of PySide 1.1.2
                                            (same installer, but the
                                            1.1.1 version had the same
                                            problem) and stackless 2.7
                                            on windows and have to agree
                                            that it is pretty unstable.
                                            It is hard to find a pattern
                                            in the crashes and i do not
                                            even know whether i have the
                                            same problem, only that the
                                            crashes come and go, even
                                            when i do not change
                                            anything significant to the
                                            code. It also happens when i
                                            do not call any code that
                                            uses stackless explicitely
                                            (no tasklets are created in
                                            the portion of code that is
                                            actually run, apart from the
                                            main one I guess). Sometimes
                                            i get "unknown opcode"
                                            exceptions; could that be
                                            related?
                                            <div> <br>
                                            </div>
                                            <div>It would be very
                                              helpful and comforting for
                                              the future of my project
                                              if this were resolved. If
                                              I can help, let me know
                                              ... </div>
                                            <div><br>
                                            </div>
                                            <div>Cheers, Lars<br>
                                              <div class="gmail_extra"><br>
                                                <br>
                                                <div class="gmail_quote">
                                                  On Fri, Nov 23, 2012
                                                  at 9:49 PM, Richard
                                                  Tew <span dir="ltr"><<a href="mailto:richard.m.tew@gmail.com" target="_blank">richard.m.tew@gmail.com</a>></span>
                                                  wrote:<br>
                                                  <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                                    <div>On Sat, Nov 24,
                                                      2012 at 7:10 AM,
                                                      Christian Tismer
                                                      <<a href="mailto:tismer@stackless.com" target="_blank">tismer@stackless.com</a>>



                                                      wrote:<br>
                                                      >
                                                      C:\Python27\Lib\site-packages\PySide\examples\mainwindows\sdi\sdi.py<br>
                                                      ><br>
                                                      > Richard, can
                                                      you please tell me
                                                      the version of Qt
                                                      and PySide?<br>
                                                      ><br>
                                                      > I will try
                                                      that on OS X,
                                                      first, because I'm
                                                      busy with building
                                                      PySide<br>
                                                      > anyway. What
                                                      did you install, a
                                                      win installer
                                                      package, a pip
                                                      thing<br>
                                                      > or from
                                                      source?<br>
                                                      <br>
                                                    </div>
                                                    I installed
                                                    PySide-1.1.2.win32-py2.7.exe
                                                    which I downloaded
                                                    from the<br>
                                                    PySide website.  It
                                                    uses QT 4.8 going by
                                                    the PyPI page.<br>
                                                    <br>
                                                    Yes, sdi.py, like
                                                    most examples
                                                    crashes on exit for
                                                    me.  But every<br>
                                                    example I recall
                                                    trying crashed in
                                                    much the same way.<br>
                                                    <br>
                                                  </blockquote>
                                                </div>
                                              </div>
                                            </div>
                                          </blockquote>
                                        </div>
                                      </div>
                                    </div>
                                  </blockquote>
                                </div>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                    </div>
                  </blockquote>
                  <br>
                </div>
              </div>
              <div>
                <pre cols="72">-- 
Christian Tismer             :^)   <a href="mailto:tismer@stackless.com" target="_blank"><mailto:tismer@stackless.com></a>
Software Consulting          :     Have a break! Take a ride on Python's
Karl-Liebknecht-Str. 121     :    *Starship* <a href="http://starship.python.net/" target="_blank">http://starship.python.net/</a>
14482 Potsdam                :     PGP key -> <a href="http://pgp.uni-mainz.de" target="_blank">http://pgp.uni-mainz.de</a>
phone <a href="tel:%2B49%20173%2024%2018%20776" value="+491732418776" target="_blank">+49 173 24 18 776</a>  fax <a href="tel:%2B49%20%2830%29%20700143-0023" value="+49307001430023" target="_blank">+49 (30) 700143-0023</a>
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   <a href="http://www.stackless.com/" target="_blank">http://www.stackless.com/</a></pre>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        ====================================<br>
        Lars van Gemerden<br>
        <a href="mailto:lars@rational-it.com" target="_blank">lars@rational-it.com</a><br>
        <a href="tel:%2B31%206%2026%2088%2055%2039" value="+31626885539" target="_blank">+31 6 26 88 55 39</a><br>
        ====================================<br>
      </div>
    </blockquote>
    <br>
    <br>
    <pre cols="72">-- 
Christian Tismer             :^)   <a href="mailto:tismer@stackless.com" target="_blank"><mailto:tismer@stackless.com></a>
Software Consulting          :     Have a break! Take a ride on Python's
Karl-Liebknecht-Str. 121     :    *Starship* <a href="http://starship.python.net/" target="_blank">http://starship.python.net/</a>
14482 Potsdam                :     PGP key -> <a href="http://pgp.uni-mainz.de" target="_blank">http://pgp.uni-mainz.de</a>
phone <a href="tel:%2B49%20173%2024%2018%20776" value="+491732418776" target="_blank">+49 173 24 18 776</a>  fax <a href="tel:%2B49%20%2830%29%20700143-0023" value="+49307001430023" target="_blank">+49 (30) 700143-0023</a>
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   <a href="http://www.stackless.com/" target="_blank">http://www.stackless.com/</a></pre>
  </div></div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br>====================================<br>Lars van Gemerden<br><a href="mailto:lars@rational-it.com">lars@rational-it.com</a><br>+31 6 26 88 55 39<br>====================================<br>

</div>