From owner-freebsd-python@FreeBSD.ORG Sun May 2 18:27:17 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 7A9EA16A4CF for ; Sun, 2 May 2004 18:27:17 -0700 (PDT) Received: from lakermmtao10.cox.net (lakermmtao10.cox.net [68.230.240.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F94643D49 for ; Sun, 2 May 2004 18:27:16 -0700 (PDT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by lakermmtao10.cox.net (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP id <20040503012715.MLYZ18696.lakermmtao10.cox.net@mezz.mezzweb.com> for ; Sun, 2 May 2004 21:27:15 -0400 Date: Sun, 02 May 2004 20:27:55 -0500 To: freebsd-python@FreeBSD.org From: Jeremy Messenger Content-Type: multipart/mixed; boundary=----------dQ7JwHHj4NK63YMnimGNpu MIME-Version: 1.0 Message-ID: User-Agent: Opera7.23/Linux M2 build 518 Subject: Is it bug in Straw or Python? 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, 03 May 2004 01:27:17 -0000 ------------dQ7JwHHj4NK63YMnimGNpu Content-Type: text/plain; format=flowed; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hello, I am sure, some of you might remember that net/straw has hit on Python bug sometime ago. So, I am not sure if it's Straw or Python bug. The update version (0.23, not in ports tree yet) of Straw will complain: ======================================= creating /var/tmp/straw/etc/gconf/schemas copying data/straw.schemas -> /var/tmp/straw/etc/gconf/schemas running install_gconf error: Interrupted system call *** Error code 1 ======================================= It complains with and without '-c -O1' in PYDISTUTILS_INSTALLARGS. So, I created a workaround for now like this: ======================================= - msg_sources = translation_files(), + msg_sources = ['glade/strings.c'] + glob.glob('src/lib/*.py'), ======================================= It solves problem, since this is what has in the old version of Straw. Here's what translation_files() that was added looks like in setup.py: ======================================= def translation_files(): '''Files for translation...''' potfile = './po/POTFILES.in' if not os.path.exists(potfile): sys.exit("No such file, '%s'. Please file a bug report.." % potfile) f = open(potfile) files = [] for line in f: # ignore comments and newline if line.startswith('#') or line.startswith('\n'): continue else: files.append(line.strip()) f.close() return files ======================================= Attaching setup.py here in case if anyone want the full of it. P.S. CC me, I am not on this list. Thanks! Cheers, Mezz -- mezz7@cox.net - mezz@FreeBSD.org bsdforums.org 's moderator, mezz. ------------dQ7JwHHj4NK63YMnimGNpu Content-Disposition: attachment; filename=setup.py Content-Type: text/plain; name=setup.py Content-Transfer-Encoding: 8bit #! /usr/bin/env python # # setup.py for Straw # # import imp import sys import glob import os.path from tools.straw_distutils import setup name = 'straw' version = '0.23' # Check for Python < 2.2 if sys.version < '2.2': sys.exit('Error: Python-2.2 or newer is required. Current version:\n %s' % sys.version) def modules_check(): '''Check if necessary modules is installed. The function is executed by distutils (by the install command).''' try: import pygtk pygtk.require('2.0') imp.find_module('gtk') except: sys.exit('Error: PyGTK-1.99.13 or newer is required.') mod_list = [ ('ORBit', 'pyorbit', 0), ('gnome', 'gnome-python', 0), ('gnome.vfs', "gnome-python's gnomevfs", 0), ('gtkhtml2', "gnome-python's gtkhtml2", 1), ('gconf', "gnome-python's gconf", 0)] if sys.version < '2.3': mod_list.append(('bsddb3.db', 'bsddb3', 0)) ok = 1 for m, w, x in mod_list: try: if not x: exec('import %s' % m) else: imp.find_module(m) except ImportError: ok = False print 'Error: %s Python module is required to install %s' \ % (w, name.title()) try: import adns, ADNS except ImportError: print 'Warning: adns Python module not found, will continue without.' # gtk.glade needs special care (ugly...) if ok: path = imp.find_module('gtk') if not os.path.exists(path[1] + '/glade.so'): ok = False print 'Error: %s Python module is required to install %s' \ % ("PyGTK's glade", name.title()) if not ok: sys.exit(1) def translations(): '''Build mo-po mapping from po directory''' trans = [] dest = 'share/locale/%s/LC_MESSAGES/%s.mo' for po in glob.glob('po/*.po'): lang = os.path.splitext(os.path.basename(po))[0] trans.append((dest % (lang , name), po)) return trans def translation_files(): '''Files for translation...''' potfile = './po/POTFILES.in' if not os.path.exists(potfile): sys.exit("No such file, '%s'. Please file a bug report.." % potfile) f = open(potfile) files = [] for line in f: # ignore comments and newline if line.startswith('#') or line.startswith('\n'): continue else: files.append(line.strip()) f.close() return files def data_files(): '''Build list of data files to be installed''' images = glob.glob('images/*.png') files = [ ('share/pixmaps', ['images/straw.png']), ('share/straw', images + ['data/default_subscriptions.opml', 'glade/straw.glade'])] return files long_desc = '''\ Straw is a desktop news aggregator for the GNOME environment. Its aim is to be a faster, easier and more accessible way to read news and blogs than the traditional browser.''' # Let distutils do the work setup(name = name, version = version, description = 'Desktop news aggregator for GNOME', long_description = long_desc, author = 'Juri Pakaste', author_email = 'juri@iki.fi', url = 'http://www.nongnu.org/straw/', license = 'GPL', data_files = data_files(), pot_file = 'po/straw.pot', translations = translations(), config_files = [('gconf/schemas',['data/straw.schemas'], 'with-gconf-schema-file-dir')], scripts = ['src/straw'], modules_check = modules_check, packages = ['straw'], package_dir = {'straw' : 'src/lib'}, msg_sources = translation_files(), desktop_file = ['straw.desktop.in']) ------------dQ7JwHHj4NK63YMnimGNpu-- From owner-freebsd-python@FreeBSD.ORG Sun May 2 18:31:13 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 B88D916A4CF for ; Sun, 2 May 2004 18:31:13 -0700 (PDT) Received: from lakermmtao04.cox.net (lakermmtao04.cox.net [68.230.240.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 198EA43D45 for ; Sun, 2 May 2004 18:31:13 -0700 (PDT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by lakermmtao04.cox.net (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP id <20040503013111.LJFO19546.lakermmtao04.cox.net@mezz.mezzweb.com> for ; Sun, 2 May 2004 21:31:11 -0400 Date: Sun, 02 May 2004 20:31:52 -0500 To: freebsd-python@FreeBSD.org References: From: Jeremy Messenger Content-Type: text/plain; format=flowed; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: User-Agent: Opera7.23/Linux M2 build 518 Subject: Re: Is it bug in Straw or Python? 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, 03 May 2004 01:31:13 -0000 Oh, one more thing.. In case if anyone want to do the test w/ update of net/straw. I have the diff to update it to 0.23 and I am awaing for my mentor, adamw, to approve it. http://people.freebsd.org/~mezz/adamw/straw.diff Cheers, Mezz On Sun, 02 May 2004 20:27:55 -0500, Jeremy Messenger wrote: > Hello, > > I am sure, some of you might remember that net/straw has hit on Python > bug sometime ago. So, I am not sure if it's Straw or Python bug. The > update version (0.23, not in ports tree yet) of Straw will complain: > > ======================================= > creating /var/tmp/straw/etc/gconf/schemas > copying data/straw.schemas -> /var/tmp/straw/etc/gconf/schemas > running install_gconf > error: Interrupted system call > *** Error code 1 > ======================================= > > It complains with and without '-c -O1' in PYDISTUTILS_INSTALLARGS. So, I > created a workaround for now like this: > > ======================================= > - msg_sources = translation_files(), > + msg_sources = ['glade/strings.c'] > + glob.glob('src/lib/*.py'), > ======================================= > > It solves problem, since this is what has in the old version of Straw. > Here's what translation_files() that was added looks like in setup.py: > > ======================================= > def translation_files(): > '''Files for translation...''' > potfile = './po/POTFILES.in' > > if not os.path.exists(potfile): > sys.exit("No such file, '%s'. Please file a bug report.." % > potfile) > > f = open(potfile) > files = [] > > for line in f: > # ignore comments and newline > if line.startswith('#') or line.startswith('\n'): > continue > else: files.append(line.strip()) > > f.close() > return files > ======================================= > > Attaching setup.py here in case if anyone want the full of it. > > P.S. CC me, I am not on this list. Thanks! > > Cheers, > Mezz -- mezz7@cox.net - mezz@FreeBSD.org bsdforums.org 's moderator, mezz. From owner-freebsd-python@FreeBSD.ORG Sun May 2 19:08:13 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 2DF4B16A4CF for ; Sun, 2 May 2004 19:08:13 -0700 (PDT) Received: from miffy.openlook.org (openlook.org [211.236.182.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D16643D46 for ; Sun, 2 May 2004 19:08:12 -0700 (PDT) (envelope-from perky@miffy.openlook.org) Received: by miffy.openlook.org (Postfix, from userid 1000) id B19D4A919; Mon, 3 May 2004 11:08:11 +0900 (KST) Date: Mon, 3 May 2004 11:08:11 +0900 From: Hye-Shik Chang To: Jeremy Messenger Message-ID: <20040503020811.GA36288@i18n.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Accept-Language: ko, en User-Agent: Mutt/1.5.6i cc: freebsd-python@FreeBSD.org Subject: Re: Is it bug in Straw or Python? 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, 03 May 2004 02:08:13 -0000 On Sun, May 02, 2004 at 08:27:55PM -0500, Jeremy Messenger wrote: > Hello, > > I am sure, some of you might remember that net/straw has hit on Python bug > sometime ago. So, I am not sure if it's Straw or Python bug. The update > version (0.23, not in ports tree yet) of Straw will complain: > > ======================================= > creating /var/tmp/straw/etc/gconf/schemas > copying data/straw.schemas -> /var/tmp/straw/etc/gconf/schemas > running install_gconf > error: Interrupted system call > *** Error code 1 > ======================================= > > It complains with and without '-c -O1' in PYDISTUTILS_INSTALLARGS. So, I > created a workaround for now like this: > > ======================================= > - msg_sources = translation_files(), > + msg_sources = ['glade/strings.c'] + glob.glob('src/lib/*.py'), > ======================================= > I couldn't reproduce the problem on my desktop (CURRENT Apr 30 and 2.3.3_5). Which version of FreeBSD and Python do you use? Hye-Shik From owner-freebsd-python@FreeBSD.ORG Sun May 2 19:13:55 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 8376216A4CE for ; Sun, 2 May 2004 19:13:55 -0700 (PDT) Received: from lakermmtao11.cox.net (lakermmtao11.cox.net [68.230.240.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE1AB43D4C for ; Sun, 2 May 2004 19:13:54 -0700 (PDT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by lakermmtao11.cox.net (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP id <20040503021354.NPXG18803.lakermmtao11.cox.net@mezz.mezzweb.com>; Sun, 2 May 2004 22:13:54 -0400 To: Hye-Shik Chang References: <20040503020811.GA36288@i18n.org> Message-ID: From: Jeremy Messenger Content-Type: text/plain; format=flowed; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Sun, 02 May 2004 21:14:33 -0500 In-Reply-To: <20040503020811.GA36288@i18n.org> User-Agent: Opera7.23/Linux M2 build 518 cc: freebsd-python@FreeBSD.org Subject: Re: Is it bug in Straw or Python? 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, 03 May 2004 02:13:55 -0000 On Mon, 3 May 2004 11:08:11 +0900, Hye-Shik Chang wrote: > On Sun, May 02, 2004 at 08:27:55PM -0500, Jeremy Messenger wrote: >> Hello, >> >> I am sure, some of you might remember that net/straw has hit on Python >> bug >> sometime ago. So, I am not sure if it's Straw or Python bug. The update >> version (0.23, not in ports tree yet) of Straw will complain: >> >> ======================================= >> creating /var/tmp/straw/etc/gconf/schemas >> copying data/straw.schemas -> /var/tmp/straw/etc/gconf/schemas >> running install_gconf >> error: Interrupted system call >> *** Error code 1 >> ======================================= >> >> It complains with and without '-c -O1' in PYDISTUTILS_INSTALLARGS. So, I >> created a workaround for now like this: >> >> ======================================= >> - msg_sources = translation_files(), >> + msg_sources = ['glade/strings.c'] >> + glob.glob('src/lib/*.py'), >> ======================================= >> > > I couldn't reproduce the problem on my desktop (CURRENT Apr 30 and > 2.3.3_5). Which version of FreeBSD and Python do you use? I use ULE, libc_r, 5.2-CURRENT (April 26th) and python-2.3.3_5. Anything else? If you use my diff above, then you might have to edit files/patch-setup.py if you haven't already done yet. Cheers, Mezz > Hye-Shik -- mezz7@cox.net - mezz@FreeBSD.org bsdforums.org 's moderator, mezz.