<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
It is not about the exe. It fails at the same test with the same
error on other platforms too. I didn't look at the tests; but it
looks like the problem is in tests itself. Here is the debian
exception traceback:<br>
<br>
Traceback (most recent call last):<br>
File "test_compare.py", line 273, in <module><br>
unittest.main (defaultTest = 'suite')<br>
File "/usr/local/lib/python2.7/unittest/main.py", line 94, in
__init__<br>
self.parseArgs(argv)<br>
File "/usr/local/lib/python2.7/unittest/main.py", line 149, in
parseArgs<br>
self.createTests()<br>
File "/usr/local/lib/python2.7/unittest/main.py", line 158, in
createTests<br>
self.module)<br>
File "/usr/local/lib/python2.7/unittest/loader.py", line 128, in
loadTestsFromNames<br>
suites = [self.loadTestsFromName(name, module) for name in
names]<br>
File "/usr/local/lib/python2.7/unittest/loader.py", line 100, in
loadTestsFromName<br>
parent, obj = obj, getattr(obj, part)<br>
AttributeError: 'module' object has no attribute 'suite'<br>
<br>
On 03/28/2011 08:23 AM, sujoy chaudhuri wrote:
<blockquote
cite="mid:AANLkTimCzaUaHkHTZOga8QROBHJLUyCuYvNzFFuoaHPu@mail.gmail.com"
type="cite">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 "test_compare.py", line 273, in <module></div>
<div> unittest.main (defaultTest = 'suite')</div>
<div> File "c:\python27\lib\unittest\main.py", line 94, in
__init__</div>
<div> self.parseArgs(argv)</div>
<div> File "c:\python27\lib\unittest\main.py", line 149, in
parseArgs</div>
<div> self.createTests()</div>
<div> File "c:\python27\lib\unittest\main.py", line 158, in
createTests</div>
<div> self.module)</div>
<div> File "c:\python27\lib\unittest\loader.py", line 128, in
loadTestsFromNames</div>
<div> suites = [self.loadTestsFromName(name, module) for name
in names]</div>
<div> File "c:\python27\lib\unittest\loader.py", line 100, in
loadTestsFromName</div>
<div> parent, obj = obj, getattr(obj, part)</div>
<div>AttributeError: 'module' object has no attribute 'suite'</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'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"><<a moz-do-not-send="true"
href="mailto:chaudhuri.sujoy@gmail.com">chaudhuri.sujoy@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">Hasanyasin.phila wrote:
<div><br>
</div>
<div><span style="font-family: 'Times New Roman'; font-size:
medium;">
<pre>You can download the binary from:
<a moz-do-not-send="true" 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: 'Times New Roman'; 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 class="h5">
<div>
<br>
<div class="gmail_quote">On Wed, Mar 9, 2011 at 2:19
PM, sujoy chaudhuri <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:chaudhuri.sujoy@gmail.com"
target="_blank">chaudhuri.sujoy@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt
0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
204, 204); padding-left: 1ex;">
<pre style="font-family: 'Times New Roman'; 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: 'Times New Roman'; font-size: medium;">hasanyasin.phila wrote:</pre>
<pre><pre style="font-family: 'Times New Roman'; 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;">"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 "-c mingw32" to setup.py."</span></pre>
<pre style="font-family: 'Times New Roman'; 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><br>
<div class="gmail_quote">On Tue, Mar 8, 2011
at 7:15 PM, sujoy chaudhuri <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:chaudhuri.sujoy@gmail.com"
target="_blank">chaudhuri.sujoy@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin: 0pt 0pt 0pt 0.8ex;
border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
Jesus wrote:
<div><br>
</div>
<div>
<pre style="font-family: 'Times New Roman'; 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
"/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/sys/types.h",
and the line 135 of "db/include/db.h"?.
</pre>
<div style="font-family: 'Times New
Roman'; font-size: medium;">Thanks for
the quick response Jesus. The relevant
lines are:</div>
<div style="font-family: 'Times New
Roman'; font-size: medium;"><br>
</div>
<div style="font-family: 'Times New
Roman'; font-size: medium;">...from
types.h (under mingw/include/sys)</div>
<div style="font-family: 'Times New
Roman'; font-size: medium;"><br>
</div>
<div>
<div><font size="3" face="'Times New
Roman'">#ifndef<span
style="white-space: pre-wrap;">
</span>_NO_OLDNAMES</font></div>
<div><font size="3" face="'Times New
Roman'">typedef _ssize_t ssize_t;</font></div>
<div><font size="3" face="'Times New
Roman'">#endif</font></div>
<div><font size="3" face="'Times New
Roman'">#endif /* Not _SSIZE_T_ */</font></div>
</div>
<div style="font-family: 'Times New
Roman'; font-size: medium;"><br>
</div>
<div style="font-family: 'Times New
Roman'; font-size: medium;">(the
offending line is typedef _ssize_t
ssize_t;)</div>
<div style="font-family: 'Times New
Roman'; font-size: medium;">
<br>
</div>
<div style="font-family: 'Times New
Roman'; font-size: medium;">...and
from db.h (under
.../bsddb3-5.1.1/db/include)</div>
<div style="font-family: 'Times New
Roman'; font-size: medium;"><br>
</div>
<div>
<div><font size="3" face="'Times New
Roman'">#define<span
style="white-space: pre-wrap;">
</span>off_t<span
style="white-space: pre-wrap;">
</span>__db_off_t</font></div>
<div><font size="3" face="'Times New
Roman'">typedef int64_t off_t;</font></div>
<div><font size="3" face="'Times New
Roman'">typedef int pid_t;</font></div>
<div><font size="3" face="'Times New
Roman'">#ifdef _WIN64</font></div>
<div><font size="3" face="'Times New
Roman'">typedef int64_t ssize_t;</font></div>
<div>
<font size="3" face="'Times New
Roman'">#else</font></div>
<div><font size="3" face="'Times New
Roman'">typedef int32_t ssize_t;</font></div>
<div><font size="3" face="'Times New
Roman'">#endif</font></div>
</div>
<div><font size="3" face="'Times New
Roman'"><br>
</font></div>
<div><font size="3" face="'Times New
Roman'">(line 138 is </font>typedef
int32_t ssize_t;)</div>
<div style="font-family: 'Times New
Roman'; font-size: medium;"><br>
</div>
<div style="font-family: 'Times New
Roman'; font-size: medium;">Thanks for
the help!</div>
<div style="font-family: 'Times New
Roman'; font-size: medium;">
<br>
</div>
<font color="#888888">
<div style="font-family: 'Times New
Roman'; font-size: medium;">Sujoy</div>
</font>
<div>
<div><br>
<div class="gmail_quote">On Tue, Mar
8, 2011 at 12:53 PM, sujoy
chaudhuri <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:chaudhuri.sujoy@gmail.com"
target="_blank">chaudhuri.sujoy@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid
rgb(204, 204, 204);
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:
'Times New Roman';
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 'ssize_t'
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/sys/t
ypes
.h:104: error: previous declaration of 'ssize_t' was here
error: command 'gcc' 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>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
pybsddb mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pybsddb@jcea.es">pybsddb@jcea.es</a>
<a class="moz-txt-link-freetext" href="https://mailman.jcea.es/listinfo/pybsddb">https://mailman.jcea.es/listinfo/pybsddb</a>
<a class="moz-txt-link-freetext" href="http://www.jcea.es/programacion/pybsddb.htm">http://www.jcea.es/programacion/pybsddb.htm</a></pre>
</blockquote>
</body>
</html>