From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 13 20:51:32 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6481516A404 for ; Fri, 13 Jul 2007 20:51:32 +0000 (UTC) (envelope-from jkoshy.freebsd@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id 3498D13C4B6 for ; Fri, 13 Jul 2007 20:51:32 +0000 (UTC) (envelope-from jkoshy.freebsd@gmail.com) Received: by wa-out-1112.google.com with SMTP id j37so743264waf for ; Fri, 13 Jul 2007 13:51:32 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:message-id:to:cc:subject:in-reply-to:references:user-agent:mime-version:content-type:from:sender; b=qJS9WUaxbn9vaP6eXLOVhe6xY5i3G1LArcC216mEdovQVdUhgRaXyDnTZl11E5hWKA4wkL+8EOtNPwNktL/p9b05J0xAskIU3gfJerFjw2q6lUccDKTkjWNXY0pLAp3a+zAWIP8bCRGAAVDCkwbiTf7efKY6+FP5iAW+O5gV+FY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:message-id:to:cc:subject:in-reply-to:references:user-agent:mime-version:content-type:from:sender; b=LS0GnEHQcY6aU7kEckbzvQezhYbv4bewyDm/ovg/VpYGlUYHX3zUlzOpmjXGBQON9WqZriLaK1OIkQMzcbebqGGfcrjK0WX2clcRjYT3Xzm0XCPfPeN4rA094Uq0wcgDHEv0BzRLKDJaWTJMpUDPqARe9Q2VNa3iz1X0J0GHwUg= Received: by 10.114.88.1 with SMTP id l1mr1998686wab.1184359891964; Fri, 13 Jul 2007 13:51:31 -0700 (PDT) Received: from moria.unixconsulting.co.in ( [219.64.103.101]) by mx.google.com with ESMTP id m31sm25658786wag.2007.07.13.13.51.12 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 Jul 2007 13:51:30 -0700 (PDT) Date: Sat, 14 Jul 2007 02:22:30 +0000 Message-ID: <861wfbk9ll.wl%koshy@moria.unixconsulting.co.in> To: "Mathieu Prevot" In-Reply-To: <3e473cc60707131212u1e3b4552v2dfc5c10cfe8e533@mail.gmail.com> References: <3e473cc60707131205s1a2912c3p9895832de54e6b94@mail.gmail.com> <3e473cc60707131212u1e3b4552v2dfc5c10cfe8e533@mail.gmail.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/21.3 (amd64--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII From: Joseph Koshy Sender: Joseph Koshy Cc: Joseph Koshy , freebsd-hackers@freebsd.org Subject: Re: python modules X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2007 20:51:32 -0000 mp> I copied libpmc.so and tryed 'import libpmc'. I have: mp> ImportError: dynamic module does not define init function (initlibpmc) mp> Are we really far from having a libpmc module ? You may want to browse the following articles in Python's documentation set: "Extending and Embedding the Python Interpreter" (tutorial) "Python/C API Reference Manual" There is an (experimental) Python wrapper for an early version of libpmc(3) here: //depot/user/jkoshy/projects/pmctools/py-libpmc/... However this code has not been kept in sync with libpmc(3). I'm waiting for libpmc to stabilize :). Regards, Koshy