From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 13 11:13:18 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 11:13:18 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 13 11:13:18 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 11:13:18 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Jan 13 11:13:18 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Jan 13 11:13:18 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 13 15:13:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 15:13:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 13 15:13:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 15:13:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Jan 13 15:13:51 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0001.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Jan 13 15:13:51 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 13 15:21:13 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 15:21:13 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 13 15:21:13 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 15:21:13 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Jan 13 15:21:13 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0002.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Jan 13 15:21:13 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 13 16:00:45 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 16:00:45 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 13 16:00:45 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 16:00:45 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Jan 13 16:00:45 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0003.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Jan 13 16:00:45 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 13 20:01:32 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 20:01:33 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 13 20:01:33 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 13 20:01:33 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Jan 13 20:01:34 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0004.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Jan 13 20:01:34 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 14 08:02:13 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 08:02:13 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 14 08:02:13 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 08:02:13 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Jan 14 08:02:14 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0005.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Jan 14 08:02:14 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 14 12:00:42 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 12:00:42 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 14 12:00:42 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 12:00:42 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Jan 14 12:00:43 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0006.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Jan 14 12:00:43 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 14 16:00:42 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 16:00:42 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 14 16:00:42 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 16:00:42 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Jan 14 16:00:42 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0007.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Jan 14 16:00:42 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 14 20:00:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 20:00:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 14 20:00:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 14 20:00:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Jan 14 20:00:39 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0008.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Jan 14 20:00:39 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 15 08:02:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 08:02:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 15 08:02:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 08:02:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Jan 15 08:02:04 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0009.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Jan 15 08:02:04 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 15 12:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 12:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 15 12:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 12:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Jan 15 12:00:48 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0010.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Jan 15 12:00:48 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 15 16:00:41 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 16:00:41 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 15 16:00:41 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 16:00:41 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Jan 15 16:00:41 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0011.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Jan 15 16:00:42 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 15 20:00:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 20:00:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 15 20:00:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 15 20:00:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Jan 15 20:00:38 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0012.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Jan 15 20:00:38 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 16 08:02:26 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 08:02:26 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 16 08:02:26 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 08:02:26 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Jan 16 08:02:27 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0013.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Jan 16 08:02:27 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 16 12:00:45 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 12:00:46 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 16 12:00:46 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 12:00:46 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Jan 16 12:00:46 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0014.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Jan 16 12:00:46 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 16 16:00:45 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 16:00:45 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 16 16:00:45 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 16:00:45 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Jan 16 16:00:46 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0015.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Jan 16 16:00:46 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 16 20:00:40 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 20:00:40 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 16 20:00:40 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 16 20:00:40 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Jan 16 20:00:40 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0016.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Jan 16 20:00:40 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 17 08:02:28 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 08:02:28 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 17 08:02:28 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 08:02:28 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Jan 17 08:02:29 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0017.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Jan 17 08:02:29 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 17 12:00:55 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 12:00:55 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 17 12:00:55 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 12:00:55 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Jan 17 12:00:55 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0018.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Jan 17 12:00:55 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 17 16:00:46 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 16:00:46 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 17 16:00:46 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 16:00:46 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Jan 17 16:00:46 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0019.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Jan 17 16:00:46 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 17 20:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 20:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 17 20:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 17 20:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Jan 17 20:00:49 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0020.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Jan 17 20:00:49 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Jan 18 08:04:11 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 08:04:11 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Jan 18 08:04:11 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 08:04:11 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Jan 18 08:04:11 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0021.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Jan 18 08:04:11 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Jan 18 12:00:59 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 12:00:59 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Jan 18 12:00:59 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 12:00:59 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Jan 18 12:00:59 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0022.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Jan 18 12:00:59 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Jan 18 16:01:22 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 16:01:22 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Jan 18 16:01:22 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 16:01:22 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Jan 18 16:01:23 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0023.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Jan 18 16:01:23 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Jan 18 20:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 20:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Jan 18 20:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 18 20:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Jan 18 20:00:49 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0024.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Jan 18 20:00:49 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Jan 19 08:04:32 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 08:04:32 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Jan 19 08:04:32 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 08:04:32 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Jan 19 08:04:33 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0025.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Jan 19 08:04:33 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Jan 19 12:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 12:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Jan 19 12:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 12:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Jan 19 12:00:57 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0026.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Jan 19 12:00:57 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Jan 19 16:02:42 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 16:02:42 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Jan 19 16:02:42 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 16:02:42 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Jan 19 16:02:43 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0027.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Jan 19 16:02:44 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Jan 19 20:00:44 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 20:00:44 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Jan 19 20:00:44 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 19 20:00:44 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Jan 19 20:00:44 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0028.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Jan 19 20:00:44 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 20 08:06:28 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 08:06:29 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 20 08:06:29 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 08:06:29 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Jan 20 08:06:31 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0029.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Jan 20 08:06:32 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 20 12:01:54 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 12:01:54 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 20 12:01:55 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 12:01:55 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Jan 20 12:01:55 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0030.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Jan 20 12:01:55 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 20 16:00:49 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 16:00:49 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 20 16:00:49 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 16:00:49 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Jan 20 16:00:49 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0031.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Jan 20 16:00:49 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 20 20:00:44 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 20:00:44 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 20 20:00:44 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 20 20:00:44 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Jan 20 20:00:44 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0032.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Jan 20 20:00:44 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 21 08:03:47 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 08:03:47 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 21 08:03:47 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 08:03:47 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Jan 21 08:03:47 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0033.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Jan 21 08:03:47 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 21 12:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 12:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 21 12:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 12:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Jan 21 12:00:58 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0034.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Jan 21 12:00:58 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 21 16:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 16:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 21 16:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 16:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Jan 21 16:00:48 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0035.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Jan 21 16:00:48 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 21 20:00:47 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 20:00:47 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 21 20:00:47 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 21 20:00:47 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Jan 21 20:00:47 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0036.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Jan 21 20:00:47 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 22 08:02:39 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 08:02:39 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 22 08:02:39 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 08:02:39 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Jan 22 08:02:40 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0037.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Jan 22 08:02:40 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 22 12:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 12:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 22 12:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 12:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Jan 22 12:00:48 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0038.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Jan 22 12:00:48 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 22 16:01:12 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 16:01:12 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 22 16:01:12 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 16:01:12 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Jan 22 16:01:13 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0039.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Jan 22 16:01:13 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 22 20:01:09 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 20:01:09 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 22 20:01:09 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 22 20:01:09 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Jan 22 20:01:10 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0040.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Jan 22 20:01:10 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 23 08:02:31 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 08:02:31 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 23 08:02:31 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 08:02:31 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Jan 23 08:02:32 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0041.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Jan 23 08:02:32 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 23 12:00:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 12:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 23 12:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 12:00:52 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Jan 23 12:00:53 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0042.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Jan 23 12:00:53 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 23 16:01:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 16:01:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 23 16:01:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 16:01:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Jan 23 16:01:39 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0043.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Jan 23 16:01:39 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 23 20:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 20:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 23 20:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 23 20:00:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Jan 23 20:00:49 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0044.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Jan 23 20:00:49 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 24 08:03:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 08:03:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 24 08:03:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 08:03:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Jan 24 08:03:04 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0045.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Jan 24 08:03:04 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 24 12:02:40 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 12:02:40 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 24 12:02:40 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 12:02:41 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Jan 24 12:02:42 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0046.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Jan 24 12:02:42 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 24 16:01:16 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 16:01:16 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 24 16:01:16 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 16:01:16 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Jan 24 16:01:16 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0047.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Jan 24 16:01:16 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 24 20:01:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 20:01:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 24 20:01:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 24 20:01:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Jan 24 20:01:48 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0048.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Jan 24 20:01:48 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Jan 25 08:01:56 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 08:01:56 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Jan 25 08:01:56 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 08:01:56 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Jan 25 08:01:58 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0049.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Jan 25 08:01:58 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Jan 25 12:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 12:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Jan 25 12:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 12:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Jan 25 12:00:59 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0050.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Jan 25 12:00:59 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Jan 25 16:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 16:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Jan 25 16:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 16:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Jan 25 16:00:57 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0051.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Jan 25 16:00:57 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Jan 25 20:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 20:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Jan 25 20:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Jan 25 20:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Jan 25 20:00:51 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0052.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Jan 25 20:00:51 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Jan 26 08:05:24 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 08:05:24 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Jan 26 08:05:24 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 08:05:24 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Jan 26 08:05:25 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0053.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Jan 26 08:05:25 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Jan 26 12:01:01 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 12:01:01 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Jan 26 12:01:01 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 12:01:01 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Jan 26 12:01:03 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0054.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Jan 26 12:01:03 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Jan 26 16:00:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 16:00:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Jan 26 16:00:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 16:00:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Jan 26 16:00:50 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0055.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Jan 26 16:00:50 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Jan 26 20:00:44 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 20:00:44 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Jan 26 20:00:44 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Jan 26 20:00:44 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Jan 26 20:00:44 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0056.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Jan 26 20:00:45 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 27 08:06:19 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 08:06:19 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 27 08:06:19 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 08:06:19 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Jan 27 08:06:23 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0057.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Jan 27 08:06:23 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 27 12:02:05 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 12:02:05 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 27 12:02:05 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 12:02:05 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Jan 27 12:02:05 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0058.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Jan 27 12:02:05 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 27 16:01:00 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 16:01:00 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 27 16:01:00 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 16:01:00 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Jan 27 16:01:01 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0059.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Jan 27 16:01:01 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 27 20:00:52 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 20:00:52 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Jan 27 20:00:52 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Jan 27 20:00:52 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Jan 27 20:00:52 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0060.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Jan 27 20:00:52 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 28 08:05:26 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 08:05:26 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 28 08:05:26 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 08:05:26 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Jan 28 08:05:27 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0061.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Jan 28 08:05:27 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 28 12:01:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 12:01:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 28 12:01:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 12:01:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Jan 28 12:01:52 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0062.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Jan 28 12:01:52 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 28 16:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 16:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 28 16:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 16:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Jan 28 16:00:51 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0063.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Jan 28 16:00:51 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 28 20:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 20:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Jan 28 20:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Jan 28 20:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Jan 28 20:00:51 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0064.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Jan 28 20:00:51 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 29 08:07:16 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 08:07:16 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 29 08:07:16 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 08:07:16 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Jan 29 08:07:20 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0065.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Jan 29 08:07:20 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 29 12:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 12:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 29 12:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 12:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Jan 29 12:00:58 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0066.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Jan 29 12:00:58 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 29 16:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 16:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 29 16:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 16:00:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Jan 29 16:00:51 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0067.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Jan 29 16:00:51 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 29 20:00:52 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 20:00:52 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Jan 29 20:00:52 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Jan 29 20:00:52 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Jan 29 20:00:52 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0068.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Jan 29 20:00:52 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 30 08:08:05 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 08:08:06 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 30 08:08:06 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 08:08:06 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Jan 30 08:08:10 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0069.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Jan 30 08:08:10 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 30 12:03:46 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 12:03:46 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 30 12:03:46 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 12:03:46 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Jan 30 12:03:47 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0070.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Jan 30 12:03:47 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 30 16:04:00 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 16:04:00 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 30 16:04:00 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 16:04:00 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Jan 30 16:04:00 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0071.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Jan 30 16:04:00 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 30 20:02:06 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 20:02:06 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Jan 30 20:02:06 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Jan 30 20:02:06 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Jan 30 20:02:07 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0072.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Jan 30 20:02:07 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 31 08:07:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 08:07:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 31 08:07:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 08:07:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Jan 31 08:07:39 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0073.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Jan 31 08:07:39 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 31 12:04:07 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 12:04:07 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 31 12:04:07 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 12:04:07 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Jan 31 12:04:08 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0074.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Jan 31 12:04:08 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 31 16:02:10 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 16:02:10 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 31 16:02:10 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 16:02:10 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Jan 31 16:02:11 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0075.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Jan 31 16:02:11 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 31 20:01:02 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 20:01:02 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Jan 31 20:01:02 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Jan 31 20:01:02 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Jan 31 20:01:02 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0076.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Jan 31 20:01:02 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 1 08:09:20 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 08:09:21 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 1 08:09:21 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 08:09:21 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Feb 1 08:09:22 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0077.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Feb 1 08:09:22 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 1 12:02:36 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 12:02:36 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 1 12:02:36 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 12:02:36 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Feb 1 12:02:37 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0078.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Feb 1 12:02:37 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 1 16:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 16:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 1 16:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 16:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Feb 1 16:00:58 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0079.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Feb 1 16:00:58 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 1 20:00:56 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 20:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 1 20:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 1 20:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Feb 1 20:00:58 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0080.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Feb 1 20:00:58 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 2 08:11:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 08:11:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 2 08:11:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 08:11:48 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Feb 2 08:11:49 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0081.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Feb 2 08:11:49 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 2 12:02:41 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 12:02:41 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 2 12:02:41 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 12:02:41 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Feb 2 12:02:41 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0082.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Feb 2 12:02:41 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 2 16:01:06 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 16:01:06 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 2 16:01:06 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 16:01:06 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Feb 2 16:01:06 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0083.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Feb 2 16:01:06 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 2 20:00:56 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 20:00:56 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 2 20:00:56 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 2 20:00:56 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Feb 2 20:00:57 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0084.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Feb 2 20:00:57 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Feb 3 08:11:30 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 08:11:30 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Feb 3 08:11:30 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 08:11:30 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Feb 3 08:11:33 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0085.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Feb 3 08:11:33 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Feb 3 12:02:30 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 12:02:30 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Feb 3 12:02:30 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 12:02:30 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Feb 3 12:02:31 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0086.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Feb 3 12:02:31 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Feb 3 16:00:54 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 16:00:54 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Feb 3 16:00:54 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 16:00:54 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Feb 3 16:00:54 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0087.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Feb 3 16:00:54 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Feb 3 20:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 20:00:59 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Feb 3 20:00:59 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 3 20:00:59 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Feb 3 20:00:59 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0088.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Feb 3 20:00:59 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Feb 4 08:07:17 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 08:07:18 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Feb 4 08:07:18 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 08:07:18 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Feb 4 08:07:21 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0089.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Feb 4 08:07:21 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Feb 4 12:02:33 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 12:02:34 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Feb 4 12:02:34 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 12:02:34 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Feb 4 12:02:35 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0090.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Feb 4 12:02:35 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Feb 4 16:01:08 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 16:01:08 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Feb 4 16:01:08 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 16:01:09 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Feb 4 16:01:09 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0091.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Feb 4 16:01:09 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Feb 4 20:01:00 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 20:01:00 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Feb 4 20:01:00 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 4 20:01:00 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Feb 4 20:01:00 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0092.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Feb 4 20:01:00 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Feb 5 08:07:35 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 08:07:36 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Feb 5 08:07:36 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 08:07:36 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Feb 5 08:07:37 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0093.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Feb 5 08:07:37 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Feb 5 12:02:35 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 12:02:35 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Feb 5 12:02:35 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 12:02:35 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Feb 5 12:02:35 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0094.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Feb 5 12:02:36 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Feb 5 16:01:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 16:01:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Feb 5 16:01:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 16:01:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Feb 5 16:01:04 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0095.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Feb 5 16:01:04 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Feb 5 20:00:56 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 20:00:56 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Feb 5 20:00:56 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 5 20:00:56 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Feb 5 20:00:57 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0096.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Feb 5 20:00:57 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Feb 6 08:13:30 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 08:13:33 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Feb 6 08:13:33 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 08:13:33 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Feb 6 08:13:40 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0097.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Feb 6 08:13:40 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Feb 6 12:02:32 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 12:02:32 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Feb 6 12:02:32 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 12:02:32 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Feb 6 12:02:34 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0098.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Feb 6 12:02:34 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Feb 6 16:01:02 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 16:01:02 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Feb 6 16:01:02 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 16:01:02 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Feb 6 16:01:02 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0099.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Feb 6 16:01:02 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Feb 6 20:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 20:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Feb 6 20:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 6 20:00:57 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Feb 6 20:00:58 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0100.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Feb 6 20:00:58 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Feb 7 08:21:09 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 08:21:10 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Feb 7 08:21:10 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 08:21:10 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Feb 7 08:21:18 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0101.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Feb 7 08:21:18 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Feb 7 12:03:08 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 12:03:08 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Feb 7 12:03:08 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 12:03:08 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Feb 7 12:03:09 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0102.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Feb 7 12:03:09 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Feb 7 16:01:05 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 16:01:06 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Feb 7 16:01:06 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 16:01:06 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Feb 7 16:01:06 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0103.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Feb 7 16:01:06 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Feb 7 20:01:01 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 20:01:01 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Feb 7 20:01:01 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 7 20:01:01 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Feb 7 20:01:01 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0104.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Feb 7 20:01:01 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 8 08:21:02 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 08:21:06 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 8 08:21:06 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 08:21:07 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Feb 8 08:21:11 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0105.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Feb 8 08:21:11 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 8 12:03:02 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 12:03:02 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 8 12:03:02 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 12:03:02 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Feb 8 12:03:03 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0106.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Feb 8 12:03:03 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 8 16:01:09 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 16:01:09 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 8 16:01:09 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 16:01:09 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Feb 8 16:01:10 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0107.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Feb 8 16:01:10 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 8 20:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 20:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 8 20:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 8 20:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Feb 8 20:00:59 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0108.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Feb 8 20:00:59 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 9 08:08:38 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 08:08:39 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 9 08:08:39 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 08:08:39 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Feb 9 08:08:41 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0109.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Feb 9 08:08:41 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 9 12:02:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 12:02:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 9 12:02:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 12:02:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Feb 9 12:02:50 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0110.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Feb 9 12:02:50 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 9 16:01:10 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 16:01:10 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 9 16:01:10 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 16:01:10 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Feb 9 16:01:11 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0111.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Feb 9 16:01:11 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 9 20:01:04 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 20:01:04 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 9 20:01:04 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 9 20:01:04 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Feb 9 20:01:05 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0112.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Feb 9 20:01:05 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Feb 10 08:18:02 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 08:18:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Feb 10 08:18:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 08:18:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Feb 10 08:18:21 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0113.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Feb 10 08:18:21 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Feb 10 12:03:28 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 12:03:28 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Feb 10 12:03:28 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 12:03:28 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Feb 10 12:03:28 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0114.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Feb 10 12:03:28 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Feb 10 16:01:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 16:01:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Feb 10 16:01:04 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 16:01:04 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Feb 10 16:01:04 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0115.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Feb 10 16:01:04 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Feb 10 20:01:09 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 20:01:09 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Feb 10 20:01:09 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Feb 10 20:01:09 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Feb 10 20:01:09 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0116.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Feb 10 20:01:09 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Feb 11 08:12:25 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 08:12:25 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Feb 11 08:12:25 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 08:12:25 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Feb 11 08:12:29 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0117.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Feb 11 08:12:29 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Feb 11 12:02:29 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 12:02:29 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Feb 11 12:02:29 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 12:02:29 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Feb 11 12:02:30 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0118.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Feb 11 12:02:30 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Feb 11 16:01:00 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 16:01:00 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Feb 11 16:01:00 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 16:01:00 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Feb 11 16:01:01 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0119.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Feb 11 16:01:01 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Feb 11 20:00:54 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 20:00:54 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sat Feb 11 20:00:54 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sat Feb 11 20:00:54 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sat Feb 11 20:00:54 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0120.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sat Feb 11 20:00:54 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Feb 12 08:08:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 08:08:50 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Feb 12 08:08:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 08:08:51 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Feb 12 08:08:53 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0121.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Feb 12 08:08:53 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Feb 12 12:02:37 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 12:02:37 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Feb 12 12:02:37 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 12:02:37 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Feb 12 12:02:38 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0122.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Feb 12 12:02:38 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Feb 12 16:01:04 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 16:01:04 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Feb 12 16:01:04 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 16:01:04 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Feb 12 16:01:04 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0123.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Feb 12 16:01:04 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Feb 12 20:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 20:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Sun Feb 12 20:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Sun Feb 12 20:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Sun Feb 12 20:00:58 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0124.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Sun Feb 12 20:00:58 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Feb 13 08:16:16 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 08:16:16 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Feb 13 08:16:16 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 08:16:16 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Feb 13 08:16:18 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0125.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Feb 13 08:16:18 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Feb 13 12:02:55 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 12:02:55 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Feb 13 12:02:55 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 12:02:55 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Feb 13 12:02:56 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0126.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Feb 13 12:02:56 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Feb 13 16:01:16 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 16:01:17 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Feb 13 16:01:17 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 16:01:17 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Feb 13 16:01:17 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0127.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Feb 13 16:01:17 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Feb 13 20:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 20:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Mon Feb 13 20:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Mon Feb 13 20:00:58 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Mon Feb 13 20:00:58 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0128.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Mon Feb 13 20:00:58 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Feb 14 08:18:18 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 08:18:19 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Feb 14 08:18:19 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 08:18:19 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Feb 14 08:18:22 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0129.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Feb 14 08:18:22 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Feb 14 12:03:12 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 12:03:12 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Feb 14 12:03:12 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 12:03:12 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Feb 14 12:03:13 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0130.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Feb 14 12:03:13 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Feb 14 16:01:21 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 16:01:21 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Feb 14 16:01:21 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 16:01:21 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Feb 14 16:01:21 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0131.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Feb 14 16:01:21 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Feb 14 20:01:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 20:01:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Tue Feb 14 20:01:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Tue Feb 14 20:01:03 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Tue Feb 14 20:01:03 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0132.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Tue Feb 14 20:01:03 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 15 08:25:32 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 08:25:33 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 15 08:25:34 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 08:25:34 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Feb 15 08:25:43 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0133.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Feb 15 08:25:43 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 15 12:05:04 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 12:05:05 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 15 12:05:05 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 12:05:05 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Feb 15 12:05:09 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0134.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Feb 15 12:05:09 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 15 16:01:27 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 16:01:27 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 15 16:01:27 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 16:01:27 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Feb 15 16:01:28 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0135.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Feb 15 16:01:28 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 15 19:27:59 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 19:27:59 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 15 19:27:59 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 19:27:59 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Feb 15 19:27:59 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0136.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Feb 15 19:27:59 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 15 20:12:55 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 20:12:56 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Wed Feb 15 20:12:56 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Wed Feb 15 20:12:56 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Wed Feb 15 20:12:57 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0137.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Wed Feb 15 20:12:57 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 16 08:44:32 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 16 08:44:33 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Thu Feb 16 08:44:33 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Thu Feb 16 08:44:33 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Thu Feb 16 08:44:38 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0138.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Thu Feb 16 08:44:38 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin From reigncracks at hotmail.com Tue Mar 25 16:58:33 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Mar 31 16:33:27 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: Hello, I am trying to port Straw (python script), but it doesn't work. I turned everything on the debug mode and found the problem. It was mxDateTime and I have no idea how to solve this problem. Please, check this url for the more details. http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be in the bottom of this email.) The version is 2.0.3, but I tried 2.0.4 and still have the same result. FreeBSD 5.0-CURRENT has GCC 3.2.2.. ============================= macros to undefine: [] running build_ext building 'mx.DateTime.mxDateTime.mxDateTime' extension creating build/temp.freebsd-5.0-CURRENT-i386-2.2 creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC -Imx/DateTime/mxDateTime -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o -O -pipe -g -march=pentium3 mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of `_Py_NewReference' from incompatible pointer type mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of `_Py_ForgetReference' from incompatible pointer type ============================= So, if you guys know any of hint to fix it, feel free to send me a patch or update the tarball to download egenix-mx-base. Unless, you have any of plan to update the next version soon, hope you will fix this one too. Cheers, Mezz _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 09:43:15 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Mar 31 16:33:27 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E816823.8010908@lemburg.com> Mezz bsdforums.org wrote: > Hello, > > I am trying to port Straw (python script), but it doesn't work. I turned > everything on the debug mode and found the problem. It was mxDateTime > and I have no idea how to solve this problem. > > Please, check this url for the more details. > http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be > in the bottom of this email.) > > The version is 2.0.3, but I tried 2.0.4 and still have the same result. > > FreeBSD 5.0-CURRENT has GCC 3.2.2.. > > ============================= > macros to undefine: [] > running build_ext > building 'mx.DateTime.mxDateTime.mxDateTime' extension > creating build/temp.freebsd-5.0-CURRENT-i386-2.2 > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime > creating build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime > creating > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime > cc -O -pipe -g -march=pentium3 -D_THREAD_SAFE -fPIC > -Imx/DateTime/mxDateTime > -I/usr/local/include/python2.2 -c mx/DateTime/mxDateTime/mxDateTime.c -o > build/temp.freebsd-5.0-CURRENT-i386-2.2/mx/DateTime/mxDateTime/mxDateTime/mxDateTime.o > > -O -pipe -g -march=pentium3 > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_New': > mx/DateTime/mxDateTime/mxDateTime.c:333: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTime_Free': > mx/DateTime/mxDateTime/mxDateTime.c:365: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_New': > mx/DateTime/mxDateTime/mxDateTime.c:3076: warning: passing arg 1 of > `_Py_NewReference' from incompatible pointer type > mx/DateTime/mxDateTime/mxDateTime.c: In function `mxDateTimeDelta_Free': > mx/DateTime/mxDateTime/mxDateTime.c:3103: warning: passing arg 1 of > `_Py_ForgetReference' from incompatible pointer type > ============================= > > So, if you guys know any of hint to fix it, feel free to send me a patch > or update the tarball to download egenix-mx-base. Unless, you have any > of plan to update the next version soon, hope you will fix this one too. It is already fixed in our current beta. The fix is easy: simply remove all of the above lines. Note that the problem only occurs in Python debug builds. Standard builds work just fine. -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From reigncracks at hotmail.com Wed Mar 26 05:01:14 2003 From: reigncracks at hotmail.com (Mezz bsdforums.org) Date: Fri Mar 31 16:33:27 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. Message-ID: >Mezz bsdforums.org wrote: >>Hello, >> >>I am trying to port Straw (python script), but it doesn't work. I turned >>everything on the debug mode and found the problem. It was mxDateTime and >>I have no idea how to solve this problem. >> >>Please, check this url for the more details. >>http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will be >>in the bottom of this email.) >> >>The version is 2.0.3, but I tried 2.0.4 and still have the same result. >> >>FreeBSD 5.0-CURRENT has GCC 3.2.2.. >> >>============================= >>============================= >> >>So, if you guys know any of hint to fix it, feel free to send me a patch >>or update the tarball to download egenix-mx-base. Unless, you have any of >>plan to update the next version soon, hope you will fix this one too. > >It is already fixed in our current beta. The fix is easy: >simply remove all of the above lines. Note that the problem >only occurs in Python debug builds. Standard builds work just >fine. Remove what? Will this effect on mxDateTime? I get the same error with or without Python debug, btw. It's reason why I turn Python debug to find why Straw crashes; it leads me to find mxDateTime has a problem. At least, it has been fixed in the CVS version as you have stated. :-) Umm, do you have any idea when the next version will be release? If you have no idea, then can you show me what to patch? So, I can add this patch in the ports tree for a while, until the next version is releasing. Cheers, Mezz >-- >Marc-Andre Lemburg >eGenix.com _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mal at lemburg.com Wed Mar 26 11:48:49 2003 From: mal at lemburg.com (M.-A. Lemburg) Date: Fri Mar 31 16:33:27 2006 Subject: [egenix-users] mxDateTime is broke in FreeBSD 5.0-CURRENT.. In-Reply-To: References: Message-ID: <3E818591.60605@lemburg.com> Mezz bsdforums.org wrote: >> Mezz bsdforums.org wrote: >> >>> Hello, >>> >>> I am trying to port Straw (python script), but it doesn't work. I >>> turned everything on the debug mode and found the problem. It was >>> mxDateTime and I have no idea how to solve this problem. >>> >>> Please, check this url for the more details. >>> http://www.freebsd.org/cgi/query-pr.cgi?pr=50262 (shorter detail will >>> be in the bottom of this email.) >>> >>> The version is 2.0.3, but I tried 2.0.4 and still have the same result. >>> >>> FreeBSD 5.0-CURRENT has GCC 3.2.2.. >>> >>> ============================= > > > >>> ============================= >>> >>> So, if you guys know any of hint to fix it, feel free to send me a >>> patch or update the tarball to download egenix-mx-base. Unless, you >>> have any of plan to update the next version soon, hope you will fix >>> this one too. >> >> >> It is already fixed in our current beta. The fix is easy: >> simply remove all of the above lines. Note that the problem >> only occurs in Python debug builds. Standard builds work just >> fine. > > Remove what? Will this effect on mxDateTime? Remove the lines with _Py_ForgetReference(). Some compilers also have problems with the free lists; you can disable those by editing the top of mxDateTime.c: /* Define these to have the module use free lists (saves malloc calls) */ #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST > I get the same error with or without Python debug, btw. It's reason why > I turn Python debug to find why Straw crashes; it leads me to find > mxDateTime has a problem. At least, it has been fixed in the CVS version > as you have stated. :-) > > Umm, do you have any idea when the next version will be release? If you > have no idea, then can you show me what to patch? So, I can add this > patch in the ports tree for a while, until the next version is releasing. We planned to release 2.1 in March, but as so often, other things got in the way. The new time frame is end of April and definitely in time for EuroPython 2003 :-) -- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Mar 26 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ Python UK 2003, Oxford: 6 days left EuroPython 2003, Charleroi, Belgium: 90 days left From Timothy.Cole at usfc.com Sun Mar 9 19:02:21 2003 From: Timothy.Cole at usfc.com (Cole, Timothy) Date: Fri Mar 31 16:33:28 2006 Subject: [egenix-users] RE: Psycopg on Solaris 8 with egenix mxDateTime Message-ID: <0E5DE51569488947A432F0A8F10E4501026A4E94@miholhlex01.usfholland.com> Chris, I was able to discover how to get psycopg to compile on Solaris. It turned out to be in the egenix mxDateTime module. Just edit the egenix-mx-base-2.0.4/mx/DateTime/mxDateTimemxDateTime.c file Comment out these lines around line 80 BEFORE you run "python setup.py install". #define MXDATETIME_FREELIST #define MXDATETIMEDELTA_FREELIST like so. /* #define MXDATETIME_FREELIST*/ /* #define MXDATETIMEDELTA_FREELIST */ Hope this works for you. Complete everything else as instructed in the install's/readme's/etc. BTW, My environment is as follows. Solaris 8 on a SunFire 280R Zope 2.6.1 Postgres 7.3.2 Egenix-mx-base 2.0.4 Psycopg 1.1.2 Gcc 3.2.2 Python 2.1.3 Cheers, Timothy Cole Systems Engineer, Midrange Systems -----Original Message----- From: christov@mac.com [mailto:christov@mac.com] Sent: Thursday, March 06, 2003 2:59 PM To: Cole, Timothy Subject: Re: Psycopg on Solaris 8 Hi Tim, My target (or at least immediate target) platform turned into Linux, so I haven't worked on the psycopg issue on Solaris in quite a while. I recall finding that it was really the mx.DateTime module that was broken when compiled with gcc 3.x. I think that I rebuilt everything with SunPro cc 5.0 and it was fine, but I haven't tried anything in months. Good luck, Chris On Wednesday, Mar 5, 2003, at 20:31 US/Pacific, Cole, Timothy wrote: Chris, Hi, was wondering if you had made any headway on the psycopg on Solaris 8? I am running into the same problems and haven't been able to make any forward progress. Any help or pointers would be greatly appreciated. Cheers, Timothy Cole Systems Engineer, Midrange Systems USF Technology Services, Inc. 630 Kenmoor Ave. SE, Suite 200 Grand Rapids,Michigan49546 Ph. 616.802.1108 -- Chris Douty I don't have a funny quotation. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20030309/f10c2558/attachment-0139.htm From justin at gnubian.org Tue Mar 18 21:03:52 2003 From: justin at gnubian.org (Justin Ryan) Date: Fri Mar 31 16:33:28 2006 Subject: [egenix-users] mx.DateTime and Glibc 2.3 Message-ID: <20030318210623.GB24499@gnubia.net> Hello, I'm having some trouble with mx.DateTime which I beleive is related to Glibc v2.3 - however I'm not 100% sure, and would not be able to file a relevant bug report against glibc without a bit more information. Essentially, mx.DateTime is raising an exception with pre-1970 dates when trying to access a DateTime object's ticks() method. On other systems, a negative integer is returned. I was able to install debian stable (glibc 2.2), and do ssomething like the following: <- snip -> $ python Python 2.2 (#1, Apr 25 2002, 17:44:12) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() -315597600.0 >>> <- snip -> I then upgraded my glibc and nothing else, with the following result: <- snip -> $ python Python 2.2.2 (#1, Jan 18 2003, 10:18:59) [GCC 3.2.2 20030109 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from mx.DateTime import DateTime >>> d = DateTime( 1960 ) >>> print d 1960-01-01 00:00:00.00 >>> d.ticks() Traceback (most recent call last): File "", line 1, in ? mx.DateTime.Error: cannot convert value to a time value >>> <- snip -> Because I am not familiar with the c sources to mxdatetime, it's difficult for me to troubleshoot this. Any help is much appreciated - even if it is only providing enough information / guidance to file a relevant report against glibc. Thanks in advance, -Justin