Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 708CCCB73 for ; Sun, 30 Nov 2014 16:32:06 +0000 (UTC) Received: (qmail 82022 invoked by uid 500); 30 Nov 2014 16:32:06 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 81984 invoked by uid 500); 30 Nov 2014 16:32:06 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 81973 invoked by uid 99); 30 Nov 2014 16:32:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Nov 2014 16:32:05 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fraser.adams@blueyonder.co.uk designates 80.0.253.73 as permitted sender) Received: from [80.0.253.73] (HELO know-smtprelay-omc-9.server.virginmedia.net) (80.0.253.73) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Nov 2014 16:32:01 +0000 Received: from [192.168.0.6] ([82.46.91.53]) by know-smtprelay-9-imp with bizsmtp id MsXL1p03s194Ho201sXM1X; Sun, 30 Nov 2014 16:31:21 +0000 X-Originating-IP: [82.46.91.53] X-Spam: 0 X-Authority: v=2.1 cv=dJgomYpb c=1 sm=1 tr=0 a=GEK9TSmhdsTMf0kiCCnhgg==:117 a=GEK9TSmhdsTMf0kiCCnhgg==:17 a=rkJuIV0pGx0A:10 a=IkcTkHD0fZMA:10 a=a5Gf7U6LAAAA:8 a=hxrt_1WNm1vZRE_c7y8A:9 a=QEXdDO2ut3YA:10 Message-ID: <547B4658.3000800@blueyonder.co.uk> Date: Sun, 30 Nov 2014 16:31:20 +0000 From: Fraser Adams User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: "users@qpid.apache.org" , proton@qpid.apache.org Subject: Proton Python install shenanigans Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hey all, I've been tearing my hair out a bit trying to figure why I can't see the relevant Python modules. I build Proton on a clean Linux Mint 17 system (which is based on Ubuntu 14.04) make all builds successfully and sudo make install installs the following: fadams@zappa /usr/local/lib/proton/bindings/python $ ls -al total 2120 drwxr-xr-x 2 root root 4096 Nov 30 12:28 . drwxr-xr-x 5 root root 4096 Nov 30 12:20 .. -rw-r--r-- 1 root root 89278 Nov 30 11:29 cproton.py -rw-r--r-- 1 root root 103293 Nov 30 12:28 cproton.pyc -rw-r--r-- 1 root root 103293 Nov 30 12:28 cproton.pyo -rw-r--r-- 1 root root 1445471 Nov 30 12:20 _cproton.so -rw-r--r-- 1 root root 109162 Nov 30 11:20 __init__.py -rw-r--r-- 1 root root 151464 Nov 30 12:28 __init__.pyc -rw-r--r-- 1 root root 151257 Nov 30 12:28 __init__.pyo I set PYTHONPATH=/usr/local/lib/proton/bindings/python but when I try ./msgr-recv.py I get Traceback (most recent call last): File "./msgr-recv.py", line 23, in from proton import * ImportError: No module named proton Now I'm thinking that make install hasn't pulled all of the necessary files into /usr/local/lib/proton/bindings/python the reason I'm thinking that is when I tried running source config.sh I noticed that the PYTHONPATH it created looked like PYTHONPATH=/home/fadams/qpid/git/qpid-proton/tests/python:/home/fadams/qpid/git/qpid-proton/proton-c/bindings/python:/home/fadams/qpid/git/qpid-proton/build/proton-c/bindings/python and this *does* appear to work, the significant bit seems to be the /home/fadams/qpid/git/qpid-proton/proton-c/bindings/python bit, because when I tried: PYTHONPATH=/home/fadams/qpid/git/qpid-proton/proton-c/bindings/python:/usr/local/lib/proton/bindings/python that worked too. So I'm thinking that the directory proton and its contents in qpid-proton/proton-c/bindings/python need to be copied to /usr/local/lib/proton/bindings/python as part of the make install process too. Does that seem about right? Cheers, Frase --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org