Return-Path: Delivered-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Received: (qmail 67420 invoked from network); 21 May 2010 23:54:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 May 2010 23:54:46 -0000 Received: (qmail 29014 invoked by uid 500); 21 May 2010 23:54:46 -0000 Delivered-To: apmail-lucene-pylucene-dev-archive@lucene.apache.org Received: (qmail 28938 invoked by uid 500); 21 May 2010 23:54:45 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 28930 invoked by uid 99); 21 May 2010 23:54:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 May 2010 23:54:45 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [66.159.224.220] (HELO ovaltofu.org) (66.159.224.220) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 May 2010 23:54:39 +0000 Received: from [192.168.0.5] ([192.168.0.5]) (authenticated bits=0) by ovaltofu.org (8.14.3/8.14.4) with ESMTP id o4LNsC0D029827 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 21 May 2010 16:54:14 -0700 (PDT) Message-Id: From: Andi Vajda To: "pylucene-dev@lucene.apache.org" In-Reply-To: <4BF71733.4090905@orcatec.com> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPod Mail (7E18) Mime-Version: 1.0 (iPod Mail 7E18) Subject: Re: pylucene in a virtual environment Date: Fri, 21 May 2010 16:54:34 -0700 References: <1159474112.790412.1274465657888.JavaMail.open-xchange@oxusltgw10.schlund.de> <185218169.793783.1274473698356.JavaMail.open-xchange@oxusltgw10.schlund.de> <4BF703EF.7020405@orcatec.com> <4BF71733.4090905@orcatec.com> X-Virus-Checked: Checked by ClamAV on apache.org On May 21, 2010, at 16:28, Herbert Roitblat wrote: > I believe that it is /home/herb/src/venv/bin What is the exact command you type to build jcc ? to install jcc ? Andi.. > Thanks, > I have been using virtual environments for some time. Almost always > the stuff just installs the way you say. That's why I'm puzzled why > this is not working in the same way. > Thanks again for your help. > Herb > > > On 05/21/2010 04:17 PM, Andi Vajda wrote: >> >> On Fri, 21 May 2010, Herbert Roitblat wrote: >> >>> Thanks, but unfortunately, I don't know what is right either. >>> This is the first time I am trying to set this up in a virtual >>> environment. All I can see is that it's claiming that I don't have >>> write permission Using the virtual environment, I should not need >>> to invoke sudo to install it because it should install in my >>> virtual environment, not in /usr. The permissions error suggests >>> that it is installing it in the global location, rather than the >>> virtual location. >>> >>> I am using Ubuntu 10.04 with Python 2.6.2. >>> >>> My virtual environment is located at ~/herb/venv. >>> >>> >>> I'm sorry to hear that when you run it from your virtual >>> environment, it just works. Clearly I'm doing something wrong. >>> I'll try to lay out what I did. The pylucene directory was mounted >>> under my home directory: >>> >>> ~/pylucene-2.9.2-1/jcc. I did try moving it to under my virtual >>> environment directory, but that made no difference. >>> >>> I changed jcc/setup.py to point to the java jvm, which is in /usr/ >>> lib. >> >> I think we're talking past each other and getting off topic from >> this forum which is about PyLucene and JCC and not about >> virtualenv.py. >> >> Still, if you can answer the question below, maybe I can help you >> debug this: >> >> What is the full path of the python executable you're invoking to >> build >> jcc ? to install jcc ? >> >> Andi.. >> >>> >>> >>> JDK = { >>> 'darwin': '/System/Library/Frameworks/JavaVM.framework/Versions/ >>> Current', >>> 'ipod': '/usr/include/gcc', >>> 'linux2': '/usr/lib/jvm/java-6-sun-1.6.0.20/', >>> 'sunos5': '/usr/jdk/instances/jdk1.6.0', >>> 'win32': 'o:/Java/jdk1.6.0_02', >>> } >>> >>> --- >>> Then I ran setup.py build >>> and setup.py install. That'w when I got the message below: >>> error: JCC.egg-info/PKG-INFO: Permission denied >>> >>> I think that it should go somewhere under my virtual environment >>> directory. I guess under lib? >>> >>> I hope that you have some suggestions or can think of where the >>> location for JCC.egg-info/PKG-INFO is coded. >>> >>> Thanks for your help. >>> Herb >>> >>> >>> >>> >>> >>> >>> On 05/21/2010 02:10 PM, Andi Vajda wrote: >>>> >>>> On Fri, 21 May 2010, herb@orcatec.com wrote: >>>> >>>>> Thanks, Andi. >>>>> Apparently installing this stuff in the virtual environment is a >>>>> bit more >>>>> difficult than installing regular packages. >>>>> >>>> ?? It looks like I am trying to install JCC.egg-info/PKG-INFO in >>>> the wrong place. ?? How do I tell it the right place? I'm on >>>> Ubuntu 10.04, by the way. >>>> >>>> I don't know what's right or wrong for your setup ? Can you be >>>> more specific ? When I build JCC by invoking my virtualenv's >>>> python executable it does the right thing for mine. >>>> >>>> Andi.. >>>> >>>>> Thanks, >>>>> Herb >>>>> >>>>> >>>> ?? ?? (venv)herb@Ubuntu2:~/pylucene-2.9.2-1/jcc$ python setup.py >>>> build >>>>> running build >>>>> running build_py >>>>> copying jcc/config.py -> build/lib.linux-x86_64-2.6/jcc >>>>> running build_ext >>>>> (venv)herb@Ubuntu2:~/pylucene-2.9.2-1/jcc$ python setup.py install >>>>> running install >>>>> running bdist_egg >>>>> running egg_info >>>>> writing JCC.egg-info/PKG-INFO >>>>> error: JCC.egg-info/PKG-INFO: Permission denied >>>>> >>>>> >>>> ?? ?? ?? ?? ?? >>>>> >>>>> >>>>> >>>>> >>>> ?? >>>>> On May 21, 2010 at 6:37 PM Andi Vajda wrote: >>>>> >>>>>> >>>>>> On May 21, 2010, at 11:14, "herb@orcatec.com" >>>>>> wrote: >>>>>> >>>>>>> I set up pylucene and installed it in the standard fashion. >>>>>>> That >>>> ??>> seems to have >>>>>>> worked. Now I am building a virtual environment to do some >>>> ??>> development in. >>>>>>> I ran make from the virtualenv and it worked, but when I try >>>>>>> to make >>>> ??>> install, it >>>>>>> tries to put it in /usr/local/lib/python2.6/dist-packages/ >>>>>>> >>>>>>> I saw a suggestion from Andi about using --home, but I'm not >>>>>>> sure >>>> ??>> where to put >>>>>>> it. Is that what needs to be done? Do I have to build jcc >>>>>>> from the >>>> ??>> virtualenv >>>>>>> as well? In other words, where do I start when putting things >>>>>>> in my >>>>>>> virtualenv? Can I copy from dist-packages? >>>>>> >>>>>> I use virtualenv a lot as I have to have a bunch of branches/ >>>>>> configs >>>> ??> available on the same machine. >>>>>> >>>>>> I always use the python executable that's installed in the >>>>>> virtualenv. >>>>>> You need to make sure that's also the case in the PyLucene >>>>>> Makefile by >>>> ??> editing the section corresponding to your platform to make it >>>> so >>>> ??> (PREFIX_PYTHON). >>>>>> >>>>>> I also always build jcc into the virtualenv first although that >>>> ??> shouldn't strictly be necessary since virtualenv normally >>>> inherits >>>> ??> modules from its origin. >>>>>> >>>>>> Andi.. >>>>>> >>>>>>> >>>>>>> Thanks, >>>>>>> Herb >>>