From owner-freebsd-python@FreeBSD.ORG Sun May 30 14:08:50 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 233B316A4CE for ; Sun, 30 May 2004 14:08:50 -0700 (PDT) Received: from fluid.sparcs.net (dor22235.kaist.ac.kr [143.248.222.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 930AB43D62 for ; Sun, 30 May 2004 14:08:49 -0700 (PDT) (envelope-from tinuviel@fluid.sparcs.net) Received: from tinuviel by fluid.sparcs.net with local (Exim 4.34) id 1BUXX5-0004VQ-JV; Mon, 31 May 2004 06:07:51 +0900 Date: Mon, 31 May 2004 06:07:51 +0900 To: python-list@python.org, debian-python@lists.debian.org, freebsd-python@freebsd.org, catalog-sig@python.org Message-ID: <20040530210751.GA17302@fluid.sparcs.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i From: Seo Sanghyeon Subject: Table of Python Packages X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2004 21:08:50 -0000 For those who may be concerned: this mail is sent to comp.lang.python, debian-python, freebsd-python, and catalog-sig. I created a table of Python packages in Debian, FreeBSD, and Gentoo. http://sparcs.kaist.ac.kr/~tinuviel/pypackage/list.cgi The table is created as follow: first I made a list of all packages in Debian Python section, Freebsd Python category, and Gentoo dev-python. And I checked equivalence by hand, alphabetically sorted packages by name, and wrote a small cgi script to create a table and make links to package description pages. Sources and data are located at the directory: http://sparcs.kaist.ac.kr/~tinuviel/pypackage/ What do you think about this? Is this a good idea? If it is a good idea, how can it be made more useful? Now I am thinking about adding NetBSD packages and PyPI references... This table shows which modules are not packaged for distributions. Those modules would be good candidates for packaing. Perhaps maintainers may learn from the each other. Any other thoughts? From owner-freebsd-python@FreeBSD.ORG Mon May 31 15:32:52 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79B5516A4CE; Mon, 31 May 2004 15:32:52 -0700 (PDT) Received: from miffy.openlook.org (openlook.org [211.236.182.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id B508343D39; Mon, 31 May 2004 15:32:51 -0700 (PDT) (envelope-from perky@miffy.openlook.org) Received: by miffy.openlook.org (Postfix, from userid 1000) id 4A0FAA927; Tue, 1 Jun 2004 07:32:31 +0900 (KST) Date: Tue, 1 Jun 2004 07:32:31 +0900 From: Hye-Shik Chang To: "Marc G. Fournier" Message-ID: <20040531223231.GA17254@i18n.org> References: <20040531190956.G81588@ganymede.hub.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline In-Reply-To: <20040531190956.G81588@ganymede.hub.org> X-Accept-Language: ko, en User-Agent: Mutt/1.5.6i cc: freebsd-ports@freebsd.org cc: freebsd-python@freebsd.org Subject: Re: MySQL db connect after upgrade to Zope 2.7.0 ... X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 May 2004 22:32:52 -0000 --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 31, 2004 at 07:10:54PM -0300, Marc G. Fournier wrote: >=20 > Can't seem to find any *answers* on Google, but a few ppl asking about it= =20 > ... >=20 > Just upgraded, and am getting: >=20 > 2004-05-31T22:03:54 ERROR(200) Shared.DC.ZRDB.Connection Error connecting= =20 > to relational database. > Traceback (most recent call last): > File "/usr/local/www/Zope/lib/python/Shared/DC/ZRDB/Connection.py", lin= e=20 > 69, in __setstate__ > try: self.connect(self.connection_string) > File=20 > "/home/ports/usr/ports/www/zope-zmysqlda/work/lib/python/Products/ZMySQ= LDA/DA.py", line 126, in connect > File=20 > "/home/ports/usr/ports/www/zope-zmysqlda/work/lib/python/Products/ZMySQ= LDA/db.py", line 183, in __init__ > AttributeError: server_capabilities >=20 > How do I fix? :( Or even debug? >=20 > Thanks ... >=20 According to: http://www.google.com/search?q=3Dcache:Oti-fgNOtvoJ:www.dzug.org/mailinglis= ten/zope/archive/2004/2004-04/1082980237427+AttributeError:+server_capabili= ties&hl=3Dko http://www.google.com/search?q=3Dcache:Eoq-GsF17nUJ:mooya.ath.cx/CubeDeZope= /1068486456/index_html+AttributeError:+server_capabilities&hl=3Dko This may be working fix. --- ZMySQLDA/db.py.orig Tue Jun 1 07:29:02 2004 +++ ZMySQLDA/db.py Tue Jun 1 07:29:32 2004 @@ -180,7 +180,7 @@ self.connection=3Dconnection self.kwargs =3D kwargs =3D self._parse_connection_string(connectio= n) self.db=3Dapply(self.Database_Connection, (), kwargs) - self.transactions =3D self.db.server_capabilities & CLIENT.TRANSACTIONS + self.transactions =3D 1 if self._try_transactions =3D=3D '-': self.transactions =3D 0 elif not self.transactions and self._try_transactions =3D=3D '+': Hye-Shik --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAu7J+DWUsWc/bS6QRAmQjAKDENGzjNufFQz4AVFF38QDuVfhp4QCfb7vp nyuW/MqbbwmbKWttQYvG2dg= =bWPc -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7-- From owner-freebsd-python@FreeBSD.ORG Mon May 31 16:40:16 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 785FD16A4CF for ; Mon, 31 May 2004 16:40:16 -0700 (PDT) Received: from mail.zoper.com (mail.zoper.com [199.232.160.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id B85B143D2F for ; Mon, 31 May 2004 16:40:15 -0700 (PDT) (envelope-from list@zettai.net) Received: (qmail 32288 invoked by uid 1012); 31 May 2004 23:40:14 -0000 Received: from list@zettai.net by beta.zettai.net by uid 89 with qmail-scanner-1.22 (clamdscan: 0.70. spamassassin: 2.63. Clear:RC:1(200.119.54.218):. Processed in 0.255684 secs); 31 May 2004 23:40:14 -0000 Received: from unknown (HELO 192.168.0.2) (list@zettai.net@200.119.54.218) by 0 with SMTP; 31 May 2004 23:40:14 -0000 Date: Mon, 31 May 2004 18:40:13 -0500 From: george donnelly To: Hye-Shik Chang X-Priority: 3 In-Reply-To: <20040531223231.GA17254@i18n.org> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Mailer: Mailsmith 2.1.1 (Blindsider) cc: "Marc G. Fournier" cc: freebsd-ports@freebsd.org cc: freebsd-python@freebsd.org Subject: Re: MySQL db connect after upgrade to Zope 2.7.0 ... X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 May 2004 23:40:16 -0000 Hye-Shik Chang on 6/1/04 wrote: >"/home/ports/usr/ports/www/zope-zmysqlda/work/lib/python/Products/ >ZMySQLDA/db.py", line 183, in __init__ >> AttributeError: server_capabilities >>=20 >> How do I fix? :( Or even debug? use version 0.91 of Mysqldb/mysql-python <--> george donnelly ~ http://www.zettai.net/ ~ "Quality Zope Hosting" Shared and Dedicated Zope Hosting ~ Zope Servers ~ Zope Websites Yahoo, AIM: zettainet ~ ICQ: 51907738 ~ Sales (USA): 1-866-967-3669 From owner-freebsd-python@FreeBSD.ORG Mon May 31 17:14:12 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F73516A4CE; Mon, 31 May 2004 17:14:12 -0700 (PDT) Received: from ganymede.hub.org (u46n208.hfx.eastlink.ca [24.222.46.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0A5743D41; Mon, 31 May 2004 17:14:11 -0700 (PDT) (envelope-from scrappy@hub.org) Received: by ganymede.hub.org (Postfix, from userid 1000) id C48685DC90; Mon, 31 May 2004 21:14:12 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id BB5CA5CA36; Mon, 31 May 2004 21:14:12 -0300 (ADT) Date: Mon, 31 May 2004 21:14:12 -0300 (ADT) From: "Marc G. Fournier" To: Hye-Shik Chang In-Reply-To: <20040531223231.GA17254@i18n.org> Message-ID: <20040531211358.X81588@ganymede.hub.org> References: <20040531190956.G81588@ganymede.hub.org> <20040531223231.GA17254@i18n.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-ports@freebsd.org cc: freebsd-python@freebsd.org Subject: Re: MySQL db connect after upgrade to Zope 2.7.0 ... X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2004 00:14:12 -0000 that did it ... something that maybe should be added to the port itself? On Tue, 1 Jun 2004, Hye-Shik Chang wrote: > On Mon, May 31, 2004 at 07:10:54PM -0300, Marc G. Fournier wrote: >> >> Can't seem to find any *answers* on Google, but a few ppl asking about it >> ... >> >> Just upgraded, and am getting: >> >> 2004-05-31T22:03:54 ERROR(200) Shared.DC.ZRDB.Connection Error connecting >> to relational database. >> Traceback (most recent call last): >> File "/usr/local/www/Zope/lib/python/Shared/DC/ZRDB/Connection.py", line >> 69, in __setstate__ >> try: self.connect(self.connection_string) >> File >> "/home/ports/usr/ports/www/zope-zmysqlda/work/lib/python/Products/ZMySQLDA/DA.py", line 126, in connect >> File >> "/home/ports/usr/ports/www/zope-zmysqlda/work/lib/python/Products/ZMySQLDA/db.py", line 183, in __init__ >> AttributeError: server_capabilities >> >> How do I fix? :( Or even debug? >> >> Thanks ... >> > > According to: > http://www.google.com/search?q=cache:Oti-fgNOtvoJ:www.dzug.org/mailinglisten/zope/archive/2004/2004-04/1082980237427+AttributeError:+server_capabilities&hl=ko > http://www.google.com/search?q=cache:Eoq-GsF17nUJ:mooya.ath.cx/CubeDeZope/1068486456/index_html+AttributeError:+server_capabilities&hl=ko > > This may be working fix. > > --- ZMySQLDA/db.py.orig Tue Jun 1 07:29:02 2004 > +++ ZMySQLDA/db.py Tue Jun 1 07:29:32 2004 > @@ -180,7 +180,7 @@ > self.connection=connection > self.kwargs = kwargs = self._parse_connection_string(connection) > self.db=apply(self.Database_Connection, (), kwargs) > - self.transactions = self.db.server_capabilities & CLIENT.TRANSACTIONS > + self.transactions = 1 > if self._try_transactions == '-': > self.transactions = 0 > elif not self.transactions and self._try_transactions == '+': > > Hye-Shik > ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664 From owner-freebsd-python@FreeBSD.ORG Wed Jun 2 11:47:05 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AEA816A4CE for ; Wed, 2 Jun 2004 11:47:05 -0700 (PDT) Received: from ararat.rokomworldwide.com (64.83.41.72.dsl72-bus-nova.cavtel.net [64.83.41.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id E167A43D1F for ; Wed, 2 Jun 2004 11:47:04 -0700 (PDT) (envelope-from reed@intersiege.com) Received: from ASSP-nospam (localhost.rokomworldwide.com [127.0.0.1]) by ararat.rokomworldwide.com (Postfix) with ESMTP id 4829C5D32 for ; Wed, 2 Jun 2004 14:47:12 -0400 (EDT) Received: from 192.168.1.107 ([192.168.1.107] helo=[192.168.1.107]) by ASSP-nospam ; 2 Jun 04 18:47:12 -0000 Message-ID: <40BE20A5.10402@intersiege.com> Date: Wed, 02 Jun 2004 14:47:01 -0400 From: "Reed L. O'Brien" User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-python@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: I would like to help chase down this problem X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 18:47:05 -0000 But I don't know how. If some one could point me at tasks I will gladly do them. Zope and Plone seem to work OK together threads in python as does Trac and Subversion. mod_python 3.1.3 though chokes with threads enabled Mod_python error: "PythonHandler mod_python.servlet" Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/mod_python/apache.py", line 287, in HandlerDispatch log=debug) File "/usr/local/lib/python2.3/site-packages/mod_python/apache.py", line 457, in import_module module = imp.load_module(mname, f, p, d) File "/usr/local/lib/python2.3/site-packages/mod_python/servlet.py", line 30, in ? from mod_python import apache, util, Session, Cookie File "/usr/local/lib/python2.3/site-packages/mod_python/Session.py", line 35, in ? tempdir = tempfile.gettempdir() File "/usr/local/lib/python2.3/tempfile.py", line 242, in gettempdir tempdir = _get_default_tempdir() File "/usr/local/lib/python2.3/tempfile.py", line 188, in _get_default_tempdir raise IOError, (_errno.ENOENT, IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/'] So if I recompile without threads and load mpservlets It fails on no module pthread: FreeBSD 5.2.1 Python 2.3.4 mod_python 3.1.3 mp servletsfrom http://home.comcast.net/~d.popowich/mpservlets Do I need a www writable tmp file? drwxrwxrwt 4 root wheel 4608 Jun 2 14:25 tmp How can I test? TIA Reed L. O'Brien 4.6692016090