LISTSERV mailing list manager LISTSERV 16.5

Help for QSERV-L Archives


QSERV-L Archives

QSERV-L Archives


QSERV-L@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

QSERV-L Home

QSERV-L Home

QSERV-L  December 2013

QSERV-L December 2013

Subject:

Re: Fwd: [HSC Forum] "Installing virtualenv with eups"

From:

Mario Juric <[log in to unmask]>

Reply-To:

General discussion for qserv (LSST prototype baseline catalog)

Date:

Mon, 16 Dec 2013 12:04:08 -0700

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (193 lines)

On 12/16/13 1:50 , Fabrice Jammes wrote:
> Hello Jacek,
> 

Hi Fabrice,
	EUPS should be compatible with everything from Python 2.2 to 2.7, so I
don't think you need to worry about much about it. I believe most
distros still don't make /usr/bin/python python 3; when they begin,
we'll update EUPS to handle it. Also, I don't think it's good policy to
have 'python' executable be Python 3 -- there are unfortunately many,
many, libraries that still require 2.x and expect 'python' to be of that
flavor. If python 3 is needed, I'd recommend calling the binary python3.

	Regarding its use with virtualenv, EUPS has been designed with
virtual-env like functionality in mind -- specifically, it manages the
PYTHON_PATH for you. So using the two together is likely to generate
conflicts (though it may not be impossible).

	But I think the point with EUPS is that you shouldn't need to use
virtualenv. Is there something specific that would prevent you from just
wrapping packages with .build (or, soon, with pkgbuild scripts), and let
EUPS manage them? (and my apologies in advance if I missed that
discussion if it already happened -- just point me to it and I'll read up).

Cheers,
-- Mario

> I see at least 3 solutions :
> 
> 1. re-building python : it's a bit awkward because eups already needs
> python
> and this implies python is already installed on the environnement before
> installing eups.
> Furthermore, if eups install a python version it is not compatible with,
> it will nevertheless swith to use
> it (instead of system python) and then fails.
> 
> 2. use systemp python : there's example file in HSC build script. The
> problem with this solution
> is that the install tool may have to manage conflict between system
> python libs and eups-installed python libs.
> 
> 3. use virtualenv : i think it's a good solution, but eups can't do this
> at the moment.
> 
> Maybe it would be a good idea to make eups always run with system
> python, indeed it would solve point 1. and 3.
> I can test quickly if it work by updating eups source (in peculiar eups
> executable which invoke python), and them put a ticket so that
> eups install tools take in account this improvment.
> 
> If this solution is too complicated, i will then try point 2.
> 
> Do you think this proposal is reasonable ?
> 
> Have a nice day,
> 
> Fabrice
> 
> 
> On 12/13/2013 06:33 PM, Jacek Becla wrote:
>> Fabrice
>>
>> Why do we want to / have to use virtualenv? Can we not
>> rely on eups and do all the things that we wanted to
>> do via virtualenv inside eups?
>>
>> Thanks,
>> Jacek
>>
>>
>>
>> On 12/13/2013 09:17 AM, Fabrice Jammes wrote:
>>>
>>> For information, a reply from Jim Bosch about eups and virtualenv. It
>>> seems that mixing this two software may be quite difficult ...
>>>
>>>
>>>
>>> -------- Original Message --------
>>> Subject:     [HSC Forum] "Installing virtualenv with eups"
>>> Date:     Fri, 13 Dec 2013 17:09:45 -0000
>>> From:     [log in to unmask]
>>> Reply-To:     [log in to unmask]
>>> To:     [log in to unmask]
>>>
>>>
>>>
>>>
>>>
>>> jbosch <http://hsca.ipmu.jp:8080/users/11/jbosch/> posted a comment
>>> <http://hsca.ipmu.jp:8080/question/167/installing-virtualenv-with-eups/?comment=169#comment-169>
>>>
>>>
>>>
>>> Commented by jbosch:
>>>
>>> I think I agree with your statement about what eups' behavior should be,
>>> but I'm afraid I'm not enough of a eups expert to be able to make that
>>> change myself (or even understand all its ramifications). I'm somewhat
>>> concerned about the idea of trying to use virtualenv with eups, though,
>>> as I think they're likely to conflict in more ways than this. As I
>>> understand it, both of them want to take control over your environment
>>> and determine which versions of other packages will be used, and I'm
>>> concerned that makes them fundamentally incompatible.
>>>
>>> In reply to fjammes's question: Installing virtualenv with eups
>>>
>>> Hello,
>>>
>>> I need to install virtualenv with eups but i run in a tricky problem :
>>>
>>> |[eups@clrlsst-dbmaster-vm eups]$ /usr/bin/python -S -c "import
>>> traceback"
>>> [eups@clrlsst-dbmaster-vm eups]$
>>> /opt/lsst/Linux64/python/virtualenv/bin/python -S -c "import traceback"
>>> Traceback (most recent call last):
>>>    File "<string>", line 1, in <module>
>>> ImportError: No module named traceback
>>> |
>>>
>>> So, it seems virtualenv doesn't import all python standard library.
>>>
>>> The problems is that after having installed virtualenv, eups use
>>> opt/lsst/Linux64/python/virtualenv/bin/python and return next error
>>> message :
>>>
>>> |[eups@clrlsst-dbmaster-vm eups]$ eups
>>> Traceback (most recent call last):
>>>    File "/opt/lsst/eups/bin/eups_impl.py", line 26, in <module>
>>>      import eups.cmd
>>>    File "/opt/lsst/eups/python/eups/__init__.py", line 1, in <module>
>>>      from exceptions import *
>>>    File "/opt/lsst/eups/python/eups/exceptions.py", line 5, in <module>
>>>      import sys, traceback
>>> ImportError: No module named traceback
>>> |
>>>
>>> So, my build scripts, or setup/unsetup commands doesn't work anymore.
>>>
>>> Is there a way to force eups to always use a fixed python version ?
>>>
>>> Thanks,
>>>
>>> Fabrice
>>>
>>> To change freqency and content of these alerts, please visit your user
>>> profile <http://hsca.ipmu.jp:8080/users/38/fjammes/subscriptions/>.
>>>
>>> If you believe that this message was sent in an error, please email
>>> about it the forum administrator at [log in to unmask]
>>>
>>> ------------------------------------------------------------------------
>>>
>>> Sincerely,
>>> Administrator
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> Use REPLY-ALL to reply to list
>>>
>>> To unsubscribe from the QSERV-L list, click the following link:
>>> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1
>>>
>>
>> ########################################################################
>> Use REPLY-ALL to reply to list
>>
>> To unsubscribe from the QSERV-L list, click the following link:
>> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1
> 
> ########################################################################
> Use REPLY-ALL to reply to list
> 
> To unsubscribe from the QSERV-L list, click the following link:
> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1


-- 
Mario Juric,
Data Mgmt. Project Scientist, Large Synoptic Survey Telescope
Web : http://research.majuric.org     Phone : +1 617 744 9003

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

March 2018
February 2018
January 2018
December 2017
August 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use