Hi Hasanyasin/Jesus:<div><br></div><div>On a clean machine (Windows 7 professional) with Python 2.7 using your exe, test_all.py fails - causing an app crash.</div><div><br></div><div>Ran each test individually:</div><div><br>
</div><div>test_associate pass</div><div>test_basic crash</div><div>test_compare</div><div><div><br></div><div>Traceback (most recent call last):</div><div>  File &quot;test_compare.py&quot;, line 273, in &lt;module&gt;</div>
<div>    unittest.main (defaultTest = &#39;suite&#39;)</div><div>  File &quot;c:\python27\lib\unittest\main.py&quot;, line 94, in __init__</div><div>    self.parseArgs(argv)</div><div>  File &quot;c:\python27\lib\unittest\main.py&quot;, line 149, in parseArgs</div>
<div>    self.createTests()</div><div>  File &quot;c:\python27\lib\unittest\main.py&quot;, line 158, in createTests</div><div>    self.module)</div><div>  File &quot;c:\python27\lib\unittest\loader.py&quot;, line 128, in loadTestsFromNames</div>
<div>    suites = [self.loadTestsFromName(name, module) for name in names]</div><div>  File &quot;c:\python27\lib\unittest\loader.py&quot;, line 100, in loadTestsFromName</div><div>    parent, obj = obj, getattr(obj, part)</div>
<div>AttributeError: &#39;module&#39; object has no attribute &#39;suite&#39;</div><div><br></div><div>test_compat crash</div></div><div>test_cursor_pget_bug crash</div><div>test_db pass</div><div>test_dbenv crash</div><div>
test_dbobj crash</div><div>test_dbshelve crash</div><div>test_dbtables crash</div><div>test_distributed_transactions Ran 4 tests in 16.974 secs but crashes</div><div>test_early_close crash</div><div>test_fileid pass</div>
<div>test_get_none pass</div><div>test_join pass (no output)</div><div>test_lock pass</div><div>test_misc pass</div><div>test_pickle pass</div><div>test_queue crash</div><div>test_recno crash</div><div>test_replication crash</div>
<div>test_sequence crash</div><div>test_thread pass</div><div><br></div><div>Just thought i&#39;d let you know...</div><div><br></div><div>Best</div><div>Sujoy</div><div><br><div class="gmail_quote">On Thu, Mar 10, 2011 at 3:08 PM, sujoy chaudhuri <span dir="ltr">&lt;<a href="mailto:chaudhuri.sujoy@gmail.com">chaudhuri.sujoy@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hasanyasin.phila wrote:<div><br></div><div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><pre>You can download the binary from:
<a href="http://code.google.com/p/pybsddb-win/downloads/list" target="_blank">http://code.google.com/p/pybsddb-win/downloads/list</a></pre></span></div><div>Thanks! Also followed your instructions on building. Works brilliantly.</div>
<div>
<br></div><div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><pre>A friendly suggestion: Leave windows as soon as possible switching to a free posix system such as bsd or linux.</pre>
</span></div><div><br></div><div>I am. Clients are another story...need to convince them first. But writing in Python means the shift will be easier when they do get convinced! ;)</div><div><br></div><font color="#888888"><div>
Sujoy</div></font><div><div></div><div class="h5"><div>
<br><div class="gmail_quote">On Wed, Mar 9, 2011 at 2:19 PM, sujoy chaudhuri <span dir="ltr">&lt;<a href="mailto:chaudhuri.sujoy@gmail.com" target="_blank">chaudhuri.sujoy@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<pre style="font-family:&#39;Times New Roman&#39;;font-size:medium"><span style="font-family:monospace;font-size:small"><pre><font face="arial"><span style="white-space:normal">Hi Hasanyasin | Jesus,</span></font></pre>
</span></pre><pre style="font-family:&#39;Times New Roman&#39;;font-size:medium">hasanyasin.phila wrote:</pre><pre><pre style="font-family:&#39;Times New Roman&#39;;white-space:normal;font-size:medium">Run: python setup.py bdist --formats=wininst</pre>


<pre><font face="arial"><span style="white-space:normal">Followed your instructions using the free (and no longer available) MSVC++ 2003 Toolkit...and get the message:</span></font></pre>
<pre><font face="arial"><span style="white-space:normal">&quot;error: Python was built with Visual Studio 2003; </span></font><span style="font-family:arial;white-space:normal">extensions must be built with a compiler than can generate compatible binaries. </span><span style="font-family:arial;white-space:normal">Visual Studio 2003 was not found on this system. If you have Cygwin installed, </span><span style="font-family:arial;white-space:normal">you can try compiling with MingW32, by passing &quot;-c mingw32&quot; to setup.py.&quot;</span></pre>


<pre style="font-family:&#39;Times New Roman&#39;;white-space:normal;font-size:medium"><span style="font-family:arial;font-size:small">Dont have Visual Studio 2003. Tried with Visual Studio 2008 with the same result</span>...<span style="font-family:arial;font-size:small">thats the reason i was trying with mingw  - but since the headers are incompatible... :(</span></pre>


</pre><div>Help!</div><div><div></div><div><br><div class="gmail_quote">On Tue, Mar 8, 2011 at 7:15 PM, sujoy chaudhuri <span dir="ltr">&lt;<a href="mailto:chaudhuri.sujoy@gmail.com" target="_blank">chaudhuri.sujoy@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Jesus wrote:<div><br></div><div><pre style="font-family:&#39;Times New Roman&#39;;font-size:medium">I am not familiar with Windows compilation. I have spend some time
trying to find a Windows developer, without success so far :-(

Could you possibly show us the line 104 of
&quot;/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/sys/types.h&quot;,
and the line 135 of &quot;db/include/db.h&quot;?.
</pre><div style="font-family:&#39;Times New Roman&#39;;font-size:medium">Thanks for the quick response Jesus. The relevant lines are:</div><div style="font-family:&#39;Times New Roman&#39;;font-size:medium"><br>
</div><div style="font-family:&#39;Times New Roman&#39;;font-size:medium">...from types.h (under mingw/include/sys)</div><div style="font-family:&#39;Times New Roman&#39;;font-size:medium"><br></div><div><div><font face="&#39;Times New Roman&#39;" size="3">#ifndef<span style="white-space:pre-wrap">        </span>_NO_OLDNAMES</font></div>



<div><font face="&#39;Times New Roman&#39;" size="3">typedef _ssize_t ssize_t;</font></div><div><font face="&#39;Times New Roman&#39;" size="3">#endif</font></div><div><font face="&#39;Times New Roman&#39;" size="3">#endif /* Not _SSIZE_T_ */</font></div>



</div><div style="font-family:&#39;Times New Roman&#39;;font-size:medium"><br></div><div style="font-family:&#39;Times New Roman&#39;;font-size:medium">(the offending line is typedef _ssize_t ssize_t;)</div><div style="font-family:&#39;Times New Roman&#39;;font-size:medium">



<br></div><div style="font-family:&#39;Times New Roman&#39;;font-size:medium">...and from db.h (under .../bsddb3-5.1.1/db/include)</div><div style="font-family:&#39;Times New Roman&#39;;font-size:medium"><br></div>
<div><div><font face="&#39;Times New Roman&#39;" size="3">#define<span style="white-space:pre-wrap">        </span>off_t<span style="white-space:pre-wrap">        </span>__db_off_t</font></div>
<div><font face="&#39;Times New Roman&#39;" size="3">typedef int64_t off_t;</font></div><div><font face="&#39;Times New Roman&#39;" size="3">typedef int pid_t;</font></div>
<div><font face="&#39;Times New Roman&#39;" size="3">#ifdef _WIN64</font></div><div><font face="&#39;Times New Roman&#39;" size="3">typedef int64_t ssize_t;</font></div><div>
<font face="&#39;Times New Roman&#39;" size="3">#else</font></div><div><font face="&#39;Times New Roman&#39;" size="3">typedef int32_t ssize_t;</font></div><div><font face="&#39;Times New Roman&#39;" size="3">#endif</font></div>



</div><div><font face="&#39;Times New Roman&#39;" size="3"><br></font></div><div><font face="&#39;Times New Roman&#39;" size="3">(line 138 is </font>typedef int32_t ssize_t;)</div>
<div style="font-family:&#39;Times New Roman&#39;;font-size:medium"><br></div><div style="font-family:&#39;Times New Roman&#39;;font-size:medium">Thanks for the help!</div><div style="font-family:&#39;Times New Roman&#39;;font-size:medium">



<br></div><font color="#888888"><div style="font-family:&#39;Times New Roman&#39;;font-size:medium">Sujoy</div></font><div><div></div><div><br><div class="gmail_quote">On Tue, Mar 8, 2011 at 12:53 PM, sujoy chaudhuri <span dir="ltr">&lt;<a href="mailto:chaudhuri.sujoy@gmail.com" target="_blank">chaudhuri.sujoy@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi:<div><br></div><div>Am trying to install on windows with:</div><div><br></div><div>$ python setup.py build -c mingw32</div>



<div><br></div><div>...and am getting an error:</div><div><br></div><div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><pre>In file included from Modules/bsddb.h:99,

                 from Modules/_bsddb.c:95:

db/include/db.h:135: error: conflicting types for &#39;ssize_t&#39;

/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/sys/t
ypes

.h:104: error: previous declaration of &#39;ssize_t&#39; was here

error: command &#39;gcc&#39; failed with exit status 1</pre><pre>This was reported by Lynton on Nov 10th, 2009.</pre><pre>Any fix for this issue?</pre><pre>Thanks</pre><pre>Sujoy</pre></span></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>