<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2657.73">
<TITLE>RE: [Pyrex] Newbie question</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Vanitha,</FONT>
</P>
<P><FONT SIZE=2>This bug is an incompatibility between Pyrex 0.9.3 build_ext.py and Python 2.4. distutils/build_ext.py For full details see:</FONT></P>
<P><FONT SIZE=2><A HREF="http://lists.copyleft.no/pipermail/pyrex/2004-December/001084.html" TARGET="_blank">http://lists.copyleft.no/pipermail/pyrex/2004-December/001084.html</A></FONT>
</P>
<P><FONT SIZE=2>This is fixed in 0.9.3.1 (or you could apply the patch yourself if you didn't want any other updates)</FONT>
</P>
<P><FONT SIZE=2>Grant M.</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: pyrex-bounces@lists.copyleft.no</FONT>
<BR><FONT SIZE=2>[<A HREF="mailto:pyrex-bounces@lists.copyleft.no">mailto:pyrex-bounces@lists.copyleft.no</A>]On Behalf Of vanitha@cs.wisc.edu</FONT>
<BR><FONT SIZE=2>Sent: 26 November 2005 14:56</FONT>
<BR><FONT SIZE=2>To: pyrex@lists.copyleft.no</FONT>
<BR><FONT SIZE=2>Subject: Re: [Pyrex] Newbie question</FONT>
</P>
<BR>
<P><FONT SIZE=2>Hi Grant:</FONT>
<BR><FONT SIZE=2>I'm using Pyrex 0.9.3 along with Python 2.4 and gcc on Linux.</FONT>
<BR><FONT SIZE=2>I think I'll have to upgrade to 0.9.3.1 to get the distutils patch.</FONT>
<BR><FONT SIZE=2>Here is the whole error message anyways!</FONT>
</P>
<P><FONT SIZE=2>python setup.py build_ext --inplace</FONT>
<BR><FONT SIZE=2>> running build_ext</FONT>
<BR><FONT SIZE=2>> building 'foo' extension</FONT>
<BR><FONT SIZE=2>> Traceback (most recent call last):</FONT>
<BR><FONT SIZE=2>> File "setup.py", line 6, in ?</FONT>
<BR><FONT SIZE=2>> cmdclass = {'build_ext' : build_ext}</FONT>
<BR><FONT SIZE=2>> File "/afs/cs.wisc.edu/u/v/a/vanitha/lib/python2.4/distutils/core.py",</FONT>
<BR><FONT SIZE=2>> line 149, in setup</FONT>
<BR><FONT SIZE=2>> dist.run_commands()</FONT>
<BR><FONT SIZE=2>> File "/afs/cs.wisc.edu/u/v/a/vanitha/lib/python2.4/distutils/dist.py",</FONT>
<BR><FONT SIZE=2>> line 946, in run_commands</FONT>
<BR><FONT SIZE=2>> self.run_command(cmd)</FONT>
<BR><FONT SIZE=2>> File "/afs/cs.wisc.edu/u/v/a/vanitha/lib/python2.4/distutils/dist.py",</FONT>
<BR><FONT SIZE=2>> line 966, in run_command</FONT>
<BR><FONT SIZE=2>> cmd_obj.run()</FONT>
<BR><FONT SIZE=2>> File</FONT>
<BR><FONT SIZE=2>> "/afs/cs.wisc.edu/u/v/a/vanitha/lib/python2.4/distutils/command/build_ext.py",</FONT>
<BR><FONT SIZE=2>> line 279, in run</FONT>
<BR><FONT SIZE=2>> self.build_extensions()</FONT>
<BR><FONT SIZE=2>> File</FONT>
<BR><FONT SIZE=2>> "/afs/cs.wisc.edu/u/v/a/vanitha/lib/python2.4/distutils/command/build_ext.py",</FONT>
<BR><FONT SIZE=2>> line 405, in build_extensions</FONT>
<BR><FONT SIZE=2>> self.build_extension(ext)</FONT>
<BR><FONT SIZE=2>> File</FONT>
<BR><FONT SIZE=2>> "/afs/cs.wisc.edu/u/v/a/vanitha/lib/python2.4/distutils/command/build_ext.py",</FONT>
<BR><FONT SIZE=2>> line 442, in build_extension</FONT>
<BR><FONT SIZE=2>> sources = self.swig_sources(sources, ext)</FONT>
<BR><FONT SIZE=2>> TypeError: swig_sources() takes exactly 2 arguments (3 given)</FONT>
</P>
<P><FONT SIZE=2>Thanks,</FONT>
</P>
<P><FONT SIZE=2>- Vanitha</FONT>
</P>
<P><FONT SIZE=2>Original Message:</FONT>
</P>
<P><FONT SIZE=2>Vanitha,</FONT>
</P>
<P><FONT SIZE=2>What version of Pyrex are you using? I built the sample extension you</FONT>
<BR><FONT SIZE=2>provided without encountering an error with Pyrex 0.9.3.1, Python 2.4.1 and</FONT>
<BR><FONT SIZE=2>MSVC 7.0. The stack trace that you provided seems to be lacking the final</FONT>
<BR><FONT SIZE=2>error message because the line it terminates on is:</FONT>
</P>
<P><FONT SIZE=2>### distutils/command/build_ext.py ###</FONT>
<BR><FONT SIZE=2> def build_extensions(self):</FONT>
<BR><FONT SIZE=2> # First, sanity-check the 'extensions' list</FONT>
<BR><FONT SIZE=2> self.check_extensions_list(self.extensions)</FONT>
</P>
<P><FONT SIZE=2> for ext in self.extensions:</FONT>
<BR><FONT SIZE=2> self.build_extension(ext) # <-- this is where your</FONT>
<BR><FONT SIZE=2>stack trace terminates</FONT>
</P>
<P><FONT SIZE=2>Are you able to repost your error and also some information about your build</FONT>
<BR><FONT SIZE=2>environment?</FONT>
</P>
<P><FONT SIZE=2>Regards,</FONT>
</P>
<P><FONT SIZE=2>Grant M.</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Pyrex mailing list</FONT>
<BR><FONT SIZE=2>Pyrex@lists.copyleft.no</FONT>
<BR><FONT SIZE=2><A HREF="http://lists.copyleft.no/mailman/listinfo/pyrex" TARGET="_blank">http://lists.copyleft.no/mailman/listinfo/pyrex</A></FONT>
</P>
</BODY>
<!--[object_id=#infocomp.com#]--><P><FONT face=Arial color=#808080 size=1>Important notice: This message is intended for the individual(s) and entity(s) addressed. The information contained in this transmission and any attached, may be confidential and may also be the subject of legal privilege, public interest immunity or legal professional privilege. Any review, retransmission, dissemination or other use of, taking of any action in reliance upon this information by person or entities other than the recipient is prohibited and requires authorization from the sender. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person) you may not copy or deliver this message to anyone. In such cases you should destroy this message and kindly notify the sender by reply email. </FONT></P>
<P><FONT face=Arial color=#808080 size=1>WARNING: Although Infocomp has taken reasonable precautions so that no viruses are present in this e-mail, the company cannot accept responsibility for any loss or damage arising from the use of e-mail attachments.</FONT></P></HTML>