From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 13 11:13:17 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 11:13:17 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Jan 13 11:13:17 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 11:13:17 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Jan 13 11:13:17 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 11:13:17 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 13 11:13:18 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 11:13:18 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Jan 13 11:13:18 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 11:13:18 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 13 15:13:50 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0001.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 15:13:50 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Jan 13 15:13:50 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 15:13:50 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Jan 13 15:13:50 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 15:13:50 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 13 15:13:50 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 15:13:50 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Jan 13 15:13:50 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 15:13:50 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 13 15:21:13 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0002.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 15:21:13 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Jan 13 15:21:13 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 15:21:13 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Jan 13 15:21:13 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 15:21:13 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 13 15:21:13 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 15:21:13 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Jan 13 15:21:13 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 15:21:13 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 13 16:00:45 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0003.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 16:00:45 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Jan 13 16:00:45 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 16:00:45 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Jan 13 16:00:45 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 16:00:45 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 13 16:00:45 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 16:00:45 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Jan 13 16:00:45 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 16:00:45 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 13 20:01:31 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0004.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 20:01:32 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Jan 13 20:01:32 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 20:01:32 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Jan 13 20:01:32 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 20:01:32 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 13 20:01:32 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 20:01:32 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Jan 13 20:01:32 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 20:01:32 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 14 08:02:13 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0005.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 08:02:13 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Jan 14 08:02:13 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 08:02:13 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Jan 14 08:02:13 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 08:02:13 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 14 08:02:13 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 08:02:13 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Jan 14 08:02:13 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 08:02:13 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 14 12:00:42 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0006.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 12:00:42 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Jan 14 12:00:42 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 12:00:42 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Jan 14 12:00:42 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 12:00:42 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 14 12:00:42 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 12:00:42 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Jan 14 12:00:42 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 12:00:42 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 14 16:00:41 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0007.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 16:00:41 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Jan 14 16:00:41 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 16:00:41 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Jan 14 16:00:41 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 16:00:41 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 14 16:00:41 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 16:00:41 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Jan 14 16:00:42 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 16:00:42 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 14 20:00:37 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0008.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 20:00:38 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Jan 14 20:00:38 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 20:00:38 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Jan 14 20:00:38 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 20:00:38 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 14 20:00:38 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 20:00:38 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Jan 14 20:00:38 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 20:00:38 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 15 08:02:03 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0009.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 08:02:03 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Jan 15 08:02:03 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 08:02:03 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Jan 15 08:02:03 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 08:02:03 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 15 08:02:03 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 08:02:03 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Jan 15 08:02:03 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 08:02:03 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 15 12:00:48 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0010.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 12:00:48 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Jan 15 12:00:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 12:00:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Jan 15 12:00:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 12:00:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 15 12:00:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 12:00:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Jan 15 12:00:48 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 12:00:48 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 15 16:00:41 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0011.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 16:00:41 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Jan 15 16:00:41 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 16:00:41 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Jan 15 16:00:41 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 16:00:41 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 15 16:00:41 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 16:00:41 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Jan 15 16:00:41 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 16:00:41 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 15 20:00:38 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0012.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 20:00:38 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Jan 15 20:00:38 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 20:00:38 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Jan 15 20:00:38 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 20:00:38 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 15 20:00:38 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 20:00:38 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Jan 15 20:00:38 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 20:00:38 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 16 08:02:26 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0013.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 08:02:26 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Jan 16 08:02:26 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 08:02:26 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Jan 16 08:02:26 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 08:02:26 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 16 08:02:26 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 08:02:26 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Jan 16 08:02:26 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 08:02:26 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 16 12:00:45 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0014.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 12:00:45 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Jan 16 12:00:45 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 12:00:45 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Jan 16 12:00:45 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 12:00:45 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 16 12:00:45 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 12:00:45 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Jan 16 12:00:45 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 12:00:45 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 16 16:00:45 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0015.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 16:00:45 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Jan 16 16:00:45 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 16:00:45 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Jan 16 16:00:45 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 16:00:45 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 16 16:00:45 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 16:00:45 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Jan 16 16:00:45 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 16:00:45 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 16 20:00:39 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0016.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 20:00:39 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Jan 16 20:00:39 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 20:00:39 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Jan 16 20:00:39 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 20:00:39 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 16 20:00:39 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 20:00:39 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Jan 16 20:00:39 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 20:00:39 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 17 08:02:28 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0017.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 08:02:28 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Jan 17 08:02:28 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 08:02:28 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Jan 17 08:02:28 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 08:02:28 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 17 08:02:28 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 08:02:28 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Jan 17 08:02:28 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 08:02:28 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 17 12:00:54 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0018.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 12:00:54 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Jan 17 12:00:54 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 12:00:54 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Jan 17 12:00:54 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 12:00:54 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 17 12:00:54 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 12:00:54 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Jan 17 12:00:54 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 12:00:54 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 17 16:00:46 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0019.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 16:00:46 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Jan 17 16:00:46 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 16:00:46 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Jan 17 16:00:46 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 16:00:46 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 17 16:00:46 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 16:00:46 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Jan 17 16:00:46 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 16:00:46 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 17 20:00:48 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0020.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 20:00:48 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Jan 17 20:00:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 20:00:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Jan 17 20:00:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 20:00:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 17 20:00:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 20:00:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Jan 17 20:00:48 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 20:00:48 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Jan 18 08:04:10 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0021.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 08:04:10 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Jan 18 08:04:10 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 08:04:10 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Jan 18 08:04:10 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 08:04:10 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Jan 18 08:04:10 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 08:04:10 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Jan 18 08:04:10 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 08:04:10 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Jan 18 12:00:58 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0022.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 12:00:58 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Jan 18 12:00:58 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 12:00:58 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Jan 18 12:00:59 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 12:00:59 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Jan 18 12:00:59 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 12:00:59 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Jan 18 12:00:59 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 12:00:59 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Jan 18 16:01:22 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0023.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 16:01:22 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Jan 18 16:01:22 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 16:01:22 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Jan 18 16:01:22 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 16:01:22 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Jan 18 16:01:22 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 16:01:22 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Jan 18 16:01:22 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 16:01:22 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Jan 18 20:00:48 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0024.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 20:00:48 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Jan 18 20:00:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 20:00:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Jan 18 20:00:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 20:00:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Jan 18 20:00:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 20:00:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Jan 18 20:00:48 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 20:00:48 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Jan 19 08:04:32 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0025.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 08:04:32 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Jan 19 08:04:32 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 08:04:32 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Jan 19 08:04:32 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 08:04:32 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Jan 19 08:04:32 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 08:04:32 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Jan 19 08:04:32 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 08:04:32 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Jan 19 12:00:56 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0026.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 12:00:56 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Jan 19 12:00:56 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 12:00:56 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Jan 19 12:00:56 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 12:00:56 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Jan 19 12:00:57 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 12:00:57 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Jan 19 12:00:57 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 12:00:57 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Jan 19 16:02:41 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0027.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 16:02:41 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Jan 19 16:02:41 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 16:02:41 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Jan 19 16:02:41 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 16:02:41 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Jan 19 16:02:41 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 16:02:41 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Jan 19 16:02:41 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 16:02:41 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Jan 19 20:00:44 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0028.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 20:00:44 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Jan 19 20:00:44 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 20:00:44 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Jan 19 20:00:44 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 20:00:44 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Jan 19 20:00:44 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 20:00:44 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Jan 19 20:00:44 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 20:00:44 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 20 08:06:26 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0029.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 08:06:26 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Jan 20 08:06:26 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 08:06:26 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Jan 20 08:06:26 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 08:06:26 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 20 08:06:27 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 08:06:27 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Jan 20 08:06:27 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 08:06:27 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 20 12:01:53 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0030.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 12:01:54 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Jan 20 12:01:54 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 12:01:54 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Jan 20 12:01:54 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 12:01:54 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 20 12:01:54 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 12:01:54 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Jan 20 12:01:54 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 12:01:54 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 20 16:00:48 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0031.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 16:00:48 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Jan 20 16:00:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 16:00:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Jan 20 16:00:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 16:00:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 20 16:00:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 16:00:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Jan 20 16:00:48 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 16:00:48 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 20 20:00:44 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0032.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 20:00:44 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Jan 20 20:00:44 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 20:00:44 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Jan 20 20:00:44 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 20:00:44 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 20 20:00:44 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 20:00:44 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Jan 20 20:00:44 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 20:00:44 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 21 08:03:46 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0033.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 08:03:46 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Jan 21 08:03:46 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 08:03:46 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Jan 21 08:03:46 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 08:03:46 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 21 08:03:46 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 08:03:46 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Jan 21 08:03:46 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 08:03:46 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 21 12:00:58 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0034.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 12:00:58 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Jan 21 12:00:58 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 12:00:58 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Jan 21 12:00:58 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 12:00:58 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 21 12:00:58 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 12:00:58 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Jan 21 12:00:58 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 12:00:58 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 21 16:00:46 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0035.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 16:00:48 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Jan 21 16:00:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 16:00:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Jan 21 16:00:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 16:00:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 21 16:00:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 16:00:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Jan 21 16:00:48 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 16:00:48 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 21 20:00:47 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0036.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 20:00:47 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Jan 21 20:00:47 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 20:00:47 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Jan 21 20:00:47 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 20:00:47 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 21 20:00:47 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 20:00:47 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Jan 21 20:00:47 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 20:00:47 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 22 08:02:39 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0037.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 08:02:39 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Jan 22 08:02:39 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 08:02:39 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Jan 22 08:02:39 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 08:02:39 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 22 08:02:39 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 08:02:39 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Jan 22 08:02:39 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 08:02:39 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 22 12:00:47 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0038.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 12:00:47 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Jan 22 12:00:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 12:00:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Jan 22 12:00:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 12:00:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 22 12:00:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 12:00:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Jan 22 12:00:48 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 12:00:48 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 22 16:01:12 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0039.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 16:01:12 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Jan 22 16:01:12 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 16:01:12 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Jan 22 16:01:12 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 16:01:12 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 22 16:01:12 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 16:01:12 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Jan 22 16:01:12 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 16:01:12 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 22 20:01:09 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0040.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 20:01:09 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Jan 22 20:01:09 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 20:01:09 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Jan 22 20:01:09 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 20:01:09 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 22 20:01:09 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 20:01:09 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Jan 22 20:01:09 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 20:01:09 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 23 08:02:30 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0041.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 08:02:30 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Jan 23 08:02:30 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 08:02:30 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Jan 23 08:02:30 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 08:02:30 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 23 08:02:30 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 08:02:31 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Jan 23 08:02:31 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 08:02:31 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 23 12:00:50 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0042.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 12:00:50 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Jan 23 12:00:50 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 12:00:50 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Jan 23 12:00:50 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 12:00:50 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 23 12:00:50 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 12:00:50 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Jan 23 12:00:50 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 12:00:50 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 23 16:01:37 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0043.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 16:01:37 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Jan 23 16:01:37 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 16:01:37 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Jan 23 16:01:37 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 16:01:37 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 23 16:01:37 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 16:01:37 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Jan 23 16:01:37 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 16:01:37 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 23 20:00:48 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0044.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 20:00:48 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Jan 23 20:00:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 20:00:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Jan 23 20:00:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 20:00:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 23 20:00:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 20:00:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Jan 23 20:00:48 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 20:00:48 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 24 08:03:02 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0045.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 08:03:02 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Jan 24 08:03:03 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 08:03:03 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Jan 24 08:03:03 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 08:03:03 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 24 08:03:03 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 08:03:03 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Jan 24 08:03:03 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 08:03:03 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 24 12:02:38 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0046.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 12:02:39 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Jan 24 12:02:39 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 12:02:39 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Jan 24 12:02:39 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 12:02:39 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 24 12:02:39 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 12:02:39 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Jan 24 12:02:39 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 12:02:39 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 24 16:01:15 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0047.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 16:01:15 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Jan 24 16:01:15 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 16:01:15 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Jan 24 16:01:15 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 16:01:15 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 24 16:01:15 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 16:01:15 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Jan 24 16:01:15 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 16:01:15 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 24 20:01:48 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0048.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 20:01:48 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Jan 24 20:01:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 20:01:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Jan 24 20:01:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 20:01:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 24 20:01:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 20:01:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Jan 24 20:01:48 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 20:01:48 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Jan 25 08:01:56 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0049.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 08:01:56 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Jan 25 08:01:56 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 08:01:56 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Jan 25 08:01:56 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 08:01:56 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Jan 25 08:01:56 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 08:01:56 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Jan 25 08:01:56 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 08:01:56 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Jan 25 12:00:58 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0050.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 12:00:58 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Jan 25 12:00:58 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 12:00:58 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Jan 25 12:00:58 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 12:00:58 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Jan 25 12:00:58 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 12:00:58 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Jan 25 12:00:58 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 12:00:58 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Jan 25 16:00:57 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0051.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 16:00:57 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Jan 25 16:00:57 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 16:00:57 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Jan 25 16:00:57 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 16:00:57 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Jan 25 16:00:57 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 16:00:57 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Jan 25 16:00:57 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 16:00:57 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Jan 25 20:00:50 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0052.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 20:00:51 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Jan 25 20:00:51 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 20:00:51 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Jan 25 20:00:51 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 20:00:51 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Jan 25 20:00:51 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 20:00:51 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Jan 25 20:00:51 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 20:00:51 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Jan 26 08:05:22 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0053.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 08:05:22 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Jan 26 08:05:22 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 08:05:22 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Jan 26 08:05:22 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 08:05:22 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Jan 26 08:05:22 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 08:05:22 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Jan 26 08:05:22 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 08:05:22 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Jan 26 12:01:01 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0054.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 12:01:01 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Jan 26 12:01:01 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 12:01:01 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Jan 26 12:01:01 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 12:01:01 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Jan 26 12:01:01 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 12:01:01 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Jan 26 12:01:01 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 12:01:01 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Jan 26 16:00:50 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0055.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 16:00:50 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Jan 26 16:00:50 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 16:00:50 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Jan 26 16:00:50 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 16:00:50 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Jan 26 16:00:50 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 16:00:50 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Jan 26 16:00:50 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 16:00:50 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Jan 26 20:00:44 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0056.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 20:00:44 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Jan 26 20:00:44 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 20:00:44 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Jan 26 20:00:44 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 20:00:44 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Jan 26 20:00:44 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 20:00:44 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Jan 26 20:00:44 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 20:00:44 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 27 08:06:17 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0057.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 08:06:17 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Jan 27 08:06:18 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 08:06:18 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Jan 27 08:06:18 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 08:06:18 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 27 08:06:18 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 08:06:18 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Jan 27 08:06:18 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 08:06:18 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 27 12:02:04 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0058.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 12:02:04 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Jan 27 12:02:04 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 12:02:04 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Jan 27 12:02:04 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 12:02:04 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 27 12:02:04 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 12:02:04 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Jan 27 12:02:04 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 12:02:04 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 27 16:01:00 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0059.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 16:01:00 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Jan 27 16:01:00 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 16:01:00 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Jan 27 16:01:00 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 16:01:00 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 27 16:01:00 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 16:01:00 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Jan 27 16:01:00 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 16:01:00 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 27 20:00:52 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0060.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 20:00:52 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Jan 27 20:00:52 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 20:00:52 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Jan 27 20:00:52 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 20:00:52 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Jan 27 20:00:52 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 20:00:52 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Jan 27 20:00:52 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 20:00:52 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 28 08:05:24 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0061.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 08:05:25 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Jan 28 08:05:25 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 08:05:25 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Jan 28 08:05:25 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 08:05:25 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 28 08:05:25 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 08:05:25 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Jan 28 08:05:25 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 08:05:25 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 28 12:01:50 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0062.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 12:01:50 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Jan 28 12:01:50 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 12:01:50 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Jan 28 12:01:50 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 12:01:50 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 28 12:01:50 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 12:01:50 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Jan 28 12:01:50 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 12:01:50 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 28 16:00:50 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0063.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 16:00:50 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Jan 28 16:00:50 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 16:00:50 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Jan 28 16:00:51 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 16:00:51 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 28 16:00:51 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 16:00:51 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Jan 28 16:00:51 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 16:00:51 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 28 20:00:51 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0064.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 20:00:51 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Jan 28 20:00:51 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 20:00:51 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Jan 28 20:00:51 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 20:00:51 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Jan 28 20:00:51 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 20:00:51 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Jan 28 20:00:51 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 20:00:51 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 29 08:07:13 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0065.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 08:07:14 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Jan 29 08:07:14 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 08:07:14 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Jan 29 08:07:14 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 08:07:14 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 29 08:07:14 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 08:07:14 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Jan 29 08:07:14 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 08:07:14 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 29 12:00:57 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0066.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 12:00:57 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Jan 29 12:00:57 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 12:00:57 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Jan 29 12:00:57 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 12:00:57 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 29 12:00:57 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 12:00:57 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Jan 29 12:00:57 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 12:00:57 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 29 16:00:51 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0067.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 16:00:51 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Jan 29 16:00:51 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 16:00:51 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Jan 29 16:00:51 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 16:00:51 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 29 16:00:51 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 16:00:51 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Jan 29 16:00:51 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 16:00:51 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 29 20:00:52 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0068.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 20:00:52 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Jan 29 20:00:52 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 20:00:52 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Jan 29 20:00:52 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 20:00:52 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Jan 29 20:00:52 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 20:00:52 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Jan 29 20:00:52 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 20:00:52 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 30 08:08:02 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0069.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 08:08:03 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Jan 30 08:08:03 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 08:08:03 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Jan 30 08:08:03 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 08:08:03 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 30 08:08:03 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 08:08:03 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Jan 30 08:08:03 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 08:08:03 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 30 12:03:45 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0070.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 12:03:45 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Jan 30 12:03:45 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 12:03:45 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Jan 30 12:03:45 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 12:03:45 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 30 12:03:45 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 12:03:45 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Jan 30 12:03:45 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 12:03:45 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 30 16:03:59 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0071.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 16:03:59 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Jan 30 16:03:59 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 16:03:59 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Jan 30 16:03:59 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 16:03:59 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 30 16:03:59 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 16:03:59 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Jan 30 16:03:59 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 16:03:59 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 30 20:02:05 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0072.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 20:02:05 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Jan 30 20:02:05 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 20:02:05 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Jan 30 20:02:05 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 20:02:05 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Jan 30 20:02:05 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 20:02:06 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Jan 30 20:02:06 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 20:02:06 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 31 08:07:37 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0073.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 08:07:37 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Jan 31 08:07:37 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 08:07:37 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Jan 31 08:07:37 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 08:07:37 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 31 08:07:37 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 08:07:37 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Jan 31 08:07:37 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 08:07:37 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 31 12:04:06 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0074.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 12:04:07 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Jan 31 12:04:07 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 12:04:07 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Jan 31 12:04:07 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 12:04:07 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 31 12:04:07 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 12:04:07 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Jan 31 12:04:07 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 12:04:07 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 31 16:02:09 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0075.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 16:02:09 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Jan 31 16:02:09 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 16:02:09 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Jan 31 16:02:09 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 16:02:09 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 31 16:02:09 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 16:02:09 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Jan 31 16:02:09 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 16:02:09 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 31 20:01:02 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0076.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 20:01:02 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Jan 31 20:01:02 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 20:01:02 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Jan 31 20:01:02 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 20:01:02 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Jan 31 20:01:02 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 20:01:02 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Jan 31 20:01:02 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 20:01:02 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 1 08:09:20 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0077.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 08:09:20 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Feb 1 08:09:20 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 08:09:20 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Feb 1 08:09:20 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 08:09:20 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 1 08:09:20 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 08:09:20 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Feb 1 08:09:20 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 08:09:20 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 1 12:02:34 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0078.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 12:02:34 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Feb 1 12:02:34 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 12:02:34 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Feb 1 12:02:34 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 12:02:34 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 1 12:02:34 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 12:02:34 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Feb 1 12:02:34 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 12:02:34 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 1 16:00:57 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0079.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 16:00:57 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Feb 1 16:00:57 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 16:00:57 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Feb 1 16:00:58 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 16:00:58 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 1 16:00:58 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 16:00:58 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Feb 1 16:00:58 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 16:00:58 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 1 20:00:56 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0080.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 20:00:56 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Feb 1 20:00:56 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 20:00:56 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Feb 1 20:00:56 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 20:00:56 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 1 20:00:56 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 20:00:56 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Feb 1 20:00:56 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 20:00:56 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 2 08:11:46 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0081.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 08:11:46 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Feb 2 08:11:46 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 08:11:46 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Feb 2 08:11:46 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 08:11:46 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 2 08:11:46 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 08:11:46 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Feb 2 08:11:46 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 08:11:47 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 2 12:02:40 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0082.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 12:02:40 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Feb 2 12:02:40 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 12:02:40 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Feb 2 12:02:40 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 12:02:40 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 2 12:02:40 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 12:02:40 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Feb 2 12:02:40 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 12:02:40 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 2 16:01:05 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0083.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 16:01:05 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Feb 2 16:01:05 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 16:01:05 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Feb 2 16:01:06 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 16:01:06 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 2 16:01:06 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 16:01:06 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Feb 2 16:01:06 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 16:01:06 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 2 20:00:56 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0084.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 20:00:56 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Feb 2 20:00:56 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 20:00:56 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Feb 2 20:00:56 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 20:00:56 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 2 20:00:56 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 20:00:56 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Feb 2 20:00:56 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 20:00:56 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Feb 3 08:11:27 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0085.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 08:11:27 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Feb 3 08:11:27 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 08:11:27 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Feb 3 08:11:27 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 08:11:27 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Feb 3 08:11:27 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 08:11:27 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Feb 3 08:11:27 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 08:11:27 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Feb 3 12:02:29 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0086.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 12:02:29 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Feb 3 12:02:29 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 12:02:29 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Feb 3 12:02:30 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 12:02:30 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Feb 3 12:02:30 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 12:02:30 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Feb 3 12:02:30 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 12:02:30 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Feb 3 16:00:53 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0087.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 16:00:53 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Feb 3 16:00:53 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 16:00:53 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Feb 3 16:00:53 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 16:00:53 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Feb 3 16:00:53 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 16:00:53 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Feb 3 16:00:53 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 16:00:53 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Feb 3 20:00:58 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0088.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 20:00:58 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Feb 3 20:00:58 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 20:00:58 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Feb 3 20:00:58 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 20:00:58 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Feb 3 20:00:58 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 20:00:58 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Feb 3 20:00:58 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 20:00:58 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Feb 4 08:07:16 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0089.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 08:07:16 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Feb 4 08:07:16 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 08:07:16 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Feb 4 08:07:16 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 08:07:16 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Feb 4 08:07:16 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 08:07:16 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Feb 4 08:07:16 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 08:07:16 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Feb 4 12:02:32 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0090.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 12:02:32 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Feb 4 12:02:32 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 12:02:32 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Feb 4 12:02:32 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 12:02:32 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Feb 4 12:02:32 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 12:02:32 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Feb 4 12:02:32 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 12:02:32 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Feb 4 16:01:07 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0091.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 16:01:08 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Feb 4 16:01:08 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 16:01:08 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Feb 4 16:01:08 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 16:01:08 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Feb 4 16:01:08 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 16:01:08 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Feb 4 16:01:08 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 16:01:08 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Feb 4 20:00:59 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0092.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 20:00:59 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Feb 4 20:00:59 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 20:00:59 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Feb 4 20:00:59 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 20:00:59 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Feb 4 20:00:59 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 20:00:59 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Feb 4 20:00:59 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 20:00:59 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Feb 5 08:07:33 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0093.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 08:07:33 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Feb 5 08:07:33 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 08:07:33 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Feb 5 08:07:33 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 08:07:33 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Feb 5 08:07:33 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 08:07:33 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Feb 5 08:07:33 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 08:07:34 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Feb 5 12:02:34 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0094.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 12:02:34 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Feb 5 12:02:34 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 12:02:34 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Feb 5 12:02:34 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 12:02:34 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Feb 5 12:02:34 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 12:02:34 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Feb 5 12:02:34 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 12:02:34 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Feb 5 16:01:03 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0095.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 16:01:03 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Feb 5 16:01:03 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 16:01:03 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Feb 5 16:01:03 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 16:01:03 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Feb 5 16:01:03 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 16:01:03 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Feb 5 16:01:03 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 16:01:03 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Feb 5 20:00:56 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0096.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 20:00:56 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Feb 5 20:00:56 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 20:00:56 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Feb 5 20:00:56 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 20:00:56 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Feb 5 20:00:56 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 20:00:56 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Feb 5 20:00:56 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 20:00:56 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Feb 6 08:13:22 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0097.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 08:13:23 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Feb 6 08:13:23 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 08:13:23 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Feb 6 08:13:23 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 08:13:24 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Feb 6 08:13:24 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 08:13:25 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Feb 6 08:13:25 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 08:13:25 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Feb 6 12:02:32 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0098.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 12:02:32 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Feb 6 12:02:32 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 12:02:32 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Feb 6 12:02:32 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 12:02:32 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Feb 6 12:02:32 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 12:02:32 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Feb 6 12:02:32 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 12:02:32 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Feb 6 16:01:02 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0099.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 16:01:02 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Feb 6 16:01:02 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 16:01:02 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Feb 6 16:01:02 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 16:01:02 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Feb 6 16:01:02 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 16:01:02 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Feb 6 16:01:02 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 16:01:02 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Feb 6 20:00:57 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0100.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 20:00:57 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Feb 6 20:00:57 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 20:00:57 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Feb 6 20:00:57 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 20:00:57 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Feb 6 20:00:57 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 20:00:57 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Feb 6 20:00:57 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 20:00:57 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Feb 7 08:21:00 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0101.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 08:21:01 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Feb 7 08:21:01 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 08:21:01 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Feb 7 08:21:01 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 08:21:02 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Feb 7 08:21:02 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 08:21:02 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Feb 7 08:21:02 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 08:21:02 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Feb 7 12:03:07 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0102.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 12:03:07 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Feb 7 12:03:07 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 12:03:07 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Feb 7 12:03:07 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 12:03:07 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Feb 7 12:03:07 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 12:03:07 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Feb 7 12:03:07 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 12:03:07 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Feb 7 16:01:05 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0103.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 16:01:05 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Feb 7 16:01:05 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 16:01:05 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Feb 7 16:01:05 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 16:01:05 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Feb 7 16:01:05 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 16:01:05 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Feb 7 16:01:05 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 16:01:05 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Feb 7 20:01:00 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0104.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 20:01:01 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Feb 7 20:01:01 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 20:01:01 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Feb 7 20:01:01 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 20:01:01 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Feb 7 20:01:01 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 20:01:01 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Feb 7 20:01:01 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 20:01:01 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 8 08:20:58 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0105.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 08:20:58 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Feb 8 08:20:59 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 08:20:59 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Feb 8 08:20:59 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 08:20:59 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 8 08:20:59 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 08:20:59 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Feb 8 08:20:59 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 08:20:59 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 8 12:03:01 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0106.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 12:03:01 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Feb 8 12:03:01 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 12:03:01 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Feb 8 12:03:01 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 12:03:01 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 8 12:03:01 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 12:03:01 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Feb 8 12:03:01 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 12:03:01 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 8 16:01:09 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0107.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 16:01:09 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Feb 8 16:01:09 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 16:01:09 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Feb 8 16:01:09 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 16:01:09 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 8 16:01:09 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 16:01:09 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Feb 8 16:01:09 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 16:01:09 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 8 20:00:58 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0108.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 20:00:58 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Feb 8 20:00:58 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 20:00:58 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Feb 8 20:00:58 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 20:00:58 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 8 20:00:58 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 20:00:58 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Feb 8 20:00:58 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 20:00:58 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 9 08:08:36 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0109.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 08:08:36 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Feb 9 08:08:37 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 08:08:37 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Feb 9 08:08:37 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 08:08:37 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 9 08:08:37 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 08:08:37 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Feb 9 08:08:37 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 08:08:37 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 9 12:02:49 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0110.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 12:02:49 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Feb 9 12:02:49 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 12:02:49 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Feb 9 12:02:49 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 12:02:49 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 9 12:02:49 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 12:02:49 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Feb 9 12:02:50 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 12:02:50 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 9 16:01:10 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0111.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 16:01:10 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Feb 9 16:01:10 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 16:01:10 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Feb 9 16:01:10 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 16:01:10 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 9 16:01:10 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 16:01:10 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Feb 9 16:01:10 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 16:01:10 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 9 20:01:03 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0112.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 20:01:03 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Feb 9 20:01:03 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 20:01:03 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Feb 9 20:01:03 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 20:01:03 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 9 20:01:03 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 20:01:03 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Feb 9 20:01:03 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 20:01:03 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Feb 10 08:17:55 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0113.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 08:17:56 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Feb 10 08:17:57 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 08:17:57 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Feb 10 08:17:57 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 08:17:57 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Feb 10 08:17:58 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 08:17:58 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Feb 10 08:17:58 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 08:17:58 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Feb 10 12:03:27 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0114.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 12:03:27 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Feb 10 12:03:27 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 12:03:27 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Feb 10 12:03:27 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 12:03:27 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Feb 10 12:03:27 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 12:03:27 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Feb 10 12:03:27 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 12:03:27 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Feb 10 16:01:03 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0115.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 16:01:03 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Feb 10 16:01:03 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 16:01:03 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Feb 10 16:01:03 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 16:01:03 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Feb 10 16:01:03 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 16:01:03 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Feb 10 16:01:03 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 16:01:03 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Feb 10 20:01:08 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0116.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 20:01:08 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Feb 10 20:01:08 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 20:01:08 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Feb 10 20:01:08 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 20:01:08 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Feb 10 20:01:08 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 20:01:08 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Feb 10 20:01:08 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 20:01:08 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Feb 11 08:12:23 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0117.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 08:12:23 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Feb 11 08:12:23 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 08:12:23 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Feb 11 08:12:23 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 08:12:23 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Feb 11 08:12:23 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 08:12:24 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Feb 11 08:12:24 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 08:12:24 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Feb 11 12:02:29 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0118.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 12:02:29 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Feb 11 12:02:29 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 12:02:29 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Feb 11 12:02:29 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 12:02:29 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Feb 11 12:02:29 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 12:02:29 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Feb 11 12:02:29 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 12:02:29 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Feb 11 16:01:00 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0119.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 16:01:00 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Feb 11 16:01:00 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 16:01:00 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Feb 11 16:01:00 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 16:01:00 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Feb 11 16:01:00 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 16:01:00 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Feb 11 16:01:00 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 16:01:00 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Feb 11 20:00:54 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0120.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 20:00:54 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sat Feb 11 20:00:54 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 20:00:54 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sat Feb 11 20:00:54 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 20:00:54 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sat Feb 11 20:00:54 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 20:00:54 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sat Feb 11 20:00:54 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 20:00:54 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Feb 12 08:08:48 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0121.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 08:08:48 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Feb 12 08:08:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 08:08:48 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Feb 12 08:08:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 08:08:48 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Feb 12 08:08:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 08:08:48 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Feb 12 08:08:48 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 08:08:48 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Feb 12 12:02:36 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0122.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 12:02:36 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Feb 12 12:02:36 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 12:02:36 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Feb 12 12:02:36 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 12:02:36 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Feb 12 12:02:36 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 12:02:36 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Feb 12 12:02:37 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 12:02:37 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Feb 12 16:01:03 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0123.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 16:01:03 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Feb 12 16:01:03 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 16:01:03 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Feb 12 16:01:03 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 16:01:03 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Feb 12 16:01:04 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 16:01:04 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Feb 12 16:01:04 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 16:01:04 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Feb 12 20:00:58 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0124.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 20:00:58 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Sun Feb 12 20:00:58 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 20:00:58 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Sun Feb 12 20:00:58 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 20:00:58 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Sun Feb 12 20:00:58 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 20:00:58 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Sun Feb 12 20:00:58 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 20:00:58 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Feb 13 08:16:11 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0125.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 08:16:11 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Feb 13 08:16:12 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 08:16:12 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Feb 13 08:16:12 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 08:16:12 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Feb 13 08:16:12 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 08:16:12 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Feb 13 08:16:12 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 08:16:12 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Feb 13 12:02:54 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0126.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 12:02:54 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Feb 13 12:02:54 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 12:02:54 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Feb 13 12:02:54 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 12:02:54 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Feb 13 12:02:54 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 12:02:54 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Feb 13 12:02:54 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 12:02:54 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Feb 13 16:01:16 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0127.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 16:01:16 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Feb 13 16:01:16 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 16:01:16 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Feb 13 16:01:16 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 16:01:16 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Feb 13 16:01:16 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 16:01:16 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Feb 13 16:01:16 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 16:01:16 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Feb 13 20:00:58 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0128.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 20:00:58 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Mon Feb 13 20:00:58 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 20:00:58 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Mon Feb 13 20:00:58 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 20:00:58 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Mon Feb 13 20:00:58 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 20:00:58 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Mon Feb 13 20:00:58 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 20:00:58 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Feb 14 08:18:14 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0129.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 08:18:15 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Feb 14 08:18:15 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 08:18:15 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Feb 14 08:18:15 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 08:18:15 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Feb 14 08:18:15 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 08:18:15 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Feb 14 08:18:16 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 08:18:16 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Feb 14 12:03:10 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0130.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 12:03:10 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Feb 14 12:03:10 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 12:03:10 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Feb 14 12:03:10 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 12:03:10 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Feb 14 12:03:10 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 12:03:10 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Feb 14 12:03:11 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 12:03:11 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Feb 14 16:01:20 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0131.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 16:01:20 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Feb 14 16:01:20 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 16:01:20 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Feb 14 16:01:20 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 16:01:20 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Feb 14 16:01:20 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 16:01:20 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Feb 14 16:01:20 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 16:01:21 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Feb 14 20:01:03 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0132.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 20:01:03 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Tue Feb 14 20:01:03 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 20:01:03 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Tue Feb 14 20:01:03 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 20:01:03 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Tue Feb 14 20:01:03 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 20:01:03 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Tue Feb 14 20:01:03 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 20:01:03 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 15 08:25:20 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0133.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 08:25:22 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Feb 15 08:25:22 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 08:25:23 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Feb 15 08:25:23 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 08:25:23 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 15 08:25:23 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 08:25:23 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Feb 15 08:25:23 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 08:25:23 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 15 12:05:04 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0134.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 12:05:04 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Feb 15 12:05:04 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 12:05:04 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Feb 15 12:05:04 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 12:05:04 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 15 12:05:04 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 12:05:04 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Feb 15 12:05:04 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 12:05:04 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 15 16:01:27 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0135.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 16:01:27 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Feb 15 16:01:27 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 16:01:27 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Feb 15 16:01:27 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 16:01:27 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 15 16:01:27 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 16:01:27 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Feb 15 16:01:27 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 16:01:27 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 15 19:27:59 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0136.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 19:27:59 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Feb 15 19:27:59 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 19:27:59 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Feb 15 19:27:59 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 19:27:59 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 15 19:27:59 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 19:27:59 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Feb 15 19:27:59 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 19:27:59 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 15 20:12:51 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0137.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 20:12:51 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Wed Feb 15 20:12:51 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 20:12:51 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Wed Feb 15 20:12:52 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 20:12:52 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Wed Feb 15 20:12:52 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 20:12:52 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Wed Feb 15 20:12:52 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 20:12:52 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 16 08:44:23 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0138.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 16 08:44:23 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Thu Feb 16 08:44:24 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 16 08:44:24 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Thu Feb 16 08:44:24 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 16 08:44:24 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Thu Feb 16 08:44:24 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 16 08:44:24 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Thu Feb 16 08:44:24 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 16 08:44:25 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Thu Jan 2 23:17:15 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Mar 31 16:33:26 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) Message-ID: <1041567435.6172.16.camel@bracknell.smullyan.org> Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a segfault right off the bat: smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python Python 2.3a1 (#1, Jan 1 2003, 12:14:23) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mx.DateTime Segmentation fault I have strace output if anyone cares to see it. My python is configured --with-pydebug. Is there a later pre-release build of mx.DateTime I should be using with 2.3? Thanks, Jacob Smullyan -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : /mailman-archives/egenix-users/attachments/20030102/1dedc14b/attachment-0139.bin From mal at lemburg.com Fri Jan 3 11:25:53 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Mar 31 16:33:26 2006 Subject: [egenix-users] mx.DateTime segfault with Python 2.3a1 (Linux) In-Reply-To: <1041567435.6172.16.camel@bracknell.smullyan.org> References: <1041567435.6172.16.camel@bracknell.smullyan.org> Message-ID: <3E156531.9080302@lemburg.com> Jacob Smullyan wrote: > Testing mx.DateTime (egenix-mx-base-2.0.4) with the 2.3 alpha, I get a > segfault right off the bat: > > smulloni@bracknell smulloni $ /home/smulloni/python-2.3a1/bin/python > Python 2.3a1 (#1, Jan 1 2003, 12:14:23) > [GCC 2.95.3 20010315 (release)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>>>import mx.DateTime > > Segmentation fault > > I have strace output if anyone cares to see it. > > My python is configured --with-pydebug. That's due to Python 2.3 having pymalloc enabled by default. The egenix-mx-base 2.1 beta 5 (see this lists archive) doesn't have this problem anymore. > Is there a later pre-release build of mx.DateTime I should be using with > 2.3? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From bzimmer at ziclix.com Sun Jan 5 00:06:49 2003 From: bzimmer at ziclix.com (brian zimmer) Date: Fri Mar 31 16:33:26 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 Message-ID: <00e201c2b480$a2c55490$f35e2a41@mountain> zxDateTime 0.2 is available here: http://sourceforge.net/projects/zxpy/ zxDateTime is a Java implementation of the popular CPython mx.DateTime module. This release includes bug fixes as well as a new DataHandler for zxJDBC to convert all java.[util|sql] Date-like objects into appropriate mx.DateTime objects when queried or sent to the JDBC driver. It has been tested with both Jython 2.1 and current CVS. Feel free to contact me with any comments, suggestions, questions or complaints. thanks, brian zimmer, (bzimmer@ziclix.com) From mal at lemburg.com Mon Jan 6 13:19:00 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Mar 31 16:33:26 2006 Subject: [egenix-users] [ANN] zxDateTime 0.2 In-Reply-To: <00e201c2b480$a2c55490$f35e2a41@mountain> References: <00e201c2b480$a2c55490$f35e2a41@mountain> Message-ID: <3E197434.4060507@lemburg.com> brian zimmer wrote: > zxDateTime 0.2 is available here: > http://sourceforge.net/projects/zxpy/ > > zxDateTime is a Java implementation of the popular CPython > mx.DateTime module. Way cool, Brian :-) > This release includes bug fixes as well as a new DataHandler > for zxJDBC to convert all java.[util|sql] Date-like objects > into appropriate mx.DateTime objects when queried or sent to > the JDBC driver. > > It has been tested with both Jython 2.1 and current CVS. > > Feel free to contact me with any comments, suggestions, > questions or complaints. > > thanks, > > brian zimmer, (bzimmer@ziclix.com) -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From werschlein at interlace.ch Mon Jan 6 14:36:39 2003 From: werschlein at interlace.ch (Thomas Werschlein) Date: Fri Mar 31 16:33:26 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? Message-ID: Hello I try to use a StringIO stream as tidy output stream, but always get the following error: "outputstream must be a file object or None" Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file no matter what? Thanks, Thomas From mal at lemburg.com Mon Jan 6 14:49:28 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Mar 31 16:33:26 2006 Subject: [egenix-users] does mx.Tidy not accept StringIO as outputstream? In-Reply-To: References: Message-ID: <3E198968.9000107@lemburg.com> Thomas Werschlein wrote: > Hello > > I try to use a StringIO stream as tidy output stream, but always get > the following error: > "outputstream must be a file object or None" > > Just to be sure it's not me: is mx.Tidy.tidy() expecting a _real_ file > no matter what? Right. The reason is that tidy itself needs a real FILE*. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From smulloni at smullyan.org Tue Jan 7 16:40:16 2003 From: smulloni at smullyan.org (Jacob Smullyan) Date: Fri Mar 31 16:33:26 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas Message-ID: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> I have tried to compile the latest version of the experimental package for which I can find a download link, 0.7.0. It fails with two errors that I see mentioned as fixed in the announcement to this list (on 25 Sept.) for its release (requiring gmp, and then, when that is installed, a python error involving distutils). Is there a later release which fixes this problems lurking somewhere? It would be awfully convenient if the download page for betas was linked to on egenix.com. Also, mailman on egenix.com needs to be configured to link to the correct url for the egenix-users archives! Cheers, jacob smullyan From mal at lemburg.com Tue Jan 7 23:48:41 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Mar 31 16:33:26 2006 Subject: [egenix-users] experimental package compilation problems/download sites for betas In-Reply-To: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> References: <56547.209.208.218.222.1041975616.squirrel@bracknell.smullyan.org> Message-ID: <3E1B5949.1010403@lemburg.com> Jacob Smullyan wrote: > I have tried to compile the latest version of the experimental package for > which I can find a download link, 0.7.0. It fails with two errors that I > see mentioned as fixed in the announcement to this list (on 25 Sept.) for > its release (requiring gmp, and then, when that is installed, a python > error involving distutils). Is there a later release which fixes this > problems lurking somewhere? Could you post more details on those errors ? GMP should not be required and the only build related problem I know of in that release is caused by header file problems on some Solaris boxes. > It would be awfully convenient if the download page for betas was linked > to on egenix.com. True, we'll do that for the next beta cycle. Here are the links again: http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py1.5.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.zip http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py1.5_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.0.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.1.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.win32-py2.2.exe http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.1_1.i386.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5.tar.gz http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.0_1.src.rpm http://www.egenix.com/files/python/egenix-mx-base-2.1.0b5-py2.2_1.i386.rpm (the announcement is here: http://lists.egenix.com/mailman-archives/egenix-users/2002-August/000078.html) A release candidate is due shortly. > Also, mailman on egenix.com needs to be configured to > link to the correct url for the egenix-users archives! Thanks. I upgraded to Mailman 2.1 and it seems that the config files have changed a bit in that area. -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/ From holtwick at spirito.de Wed Jan 8 09:44:42 2003 From: holtwick at spirito.de (Dirk Holtwick) Date: Fri Mar 31 16:33:26 2006 Subject: [egenix-users] mx packages under mac os x Message-ID: <3E1BE4FA.6090202@spirito.de> just for information, the mxBase and parts of the mxExperimental packages compile quite good under apples mac os x. but there's a problem in mxUID, where the package tries to get the hostname and ip and this fails if you don't have a connection to the net. this should be captured by a try/except clause. dirk From mal at lemburg.com Wed Jan 8 11:41:44 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Mar 31 16:33:26 2006 Subject: [egenix-users] mx packages under mac os x In-Reply-To: <3E1BE4FA.6090202@spirito.de> References: <3E1BE4FA.6090202@spirito.de> Message-ID: <3E1C0068.6090906@lemburg.com> Dirk Holtwick wrote: > just for information, the mxBase and parts of the mxExperimental > packages compile quite good under apples mac os x. > > but there's a problem in mxUID, where the package tries to get the > hostname and ip and this fails if you don't have a connection to the > net. this should be captured by a try/except clause. Could you try this code in mx/UID/mxUID/__init__.py: ### Python part of module initialization # Set IDs def _init(): global _hostid import os,string,time try: # Try to use the IP address as host id import socket try: ip = socket.gethostbyname(socket.gethostname()) except socket.error: raise ImportError, 'no network connection' ip = map(int, string.split(ip, '.')) _hostid = reduce(lambda x,y: (x+y) % 65536, ip) except ImportError: try: # Use the data from the root stat as host id _hostid = reduce(lambda x,y: (x+y) % 65536, os.stat(os.sep)) except os.error: # Fallback to a constant _hostid = 0x2003 setids(_hostid, os.getpid(), 0xdeadbeef & long(time.time() / 1000)) _init() This should work in all situations. BTW, does anyone know how to get at the MAC address of the network card on the various platforms ? -- Marc-Andre Lemburg CEO eGenix.com Software GmbH _______________________________________________________________________ eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,... Python Consulting: http://www.egenix.com/ Python Software: http://www.egenix.com/files/python/