You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@climate.apache.org by "Cameron Goodale (JIRA)" <ji...@apache.org> on 2014/06/04 21:07:01 UTC

[jira] [Commented] (CLIMATE-451) Getting Errors in virtualenv wrapper after running easy-ocw/install-osx.sh

    [ https://issues.apache.org/jira/browse/CLIMATE-451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14018023#comment-14018023 ] 

Cameron Goodale commented on CLIMATE-451:
-----------------------------------------

After a lot of trial and error, [~mjoyce] suggested we remove the virtualenvwrapper from the os x install script.  I removed it and ran some tests and everything works well.

If people use the -e flag (and have easy-ocw create the virtualenv for them) I also added in a suggestion that users setup an alias to make changing into the ocw environment easier.

> Getting Errors in virtualenv wrapper after running easy-ocw/install-osx.sh 
> ---------------------------------------------------------------------------
>
>                 Key: CLIMATE-451
>                 URL: https://issues.apache.org/jira/browse/CLIMATE-451
>             Project: Apache Open Climate Workbench
>          Issue Type: Bug
>          Components: build process
>    Affects Versions: 0.3-incubating
>         Environment: OS X 10.8.5
>            Reporter: Cameron Goodale
>            Assignee: Cameron Goodale
>             Fix For: 0.4
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> I am able to use the install-osx.sh script to install a new 'ocw' virtual env, but when I try to switch into the virtualenv using the 'workon' command I get this error:
> {code}
> $ workon ocw
> -bash: virtualenv_deactivate: command not found
> Error: could not find environment: ocw
> -bash: [: ==: unary operator expected
> {code}
> Also I noticed that when I run the 'lsvirtualenv' command I get the following error:
> {code}
> $ lsvirtualenv
> ocw
> ===
> Error: did not expect more than one argument.
> showvirtualenv [env]
> {code}
> After some googling I think the error message is actually coming from conda's cli activate.py script.
> https://github.com/conda/conda/blob/master/conda/cli/activate.py  (See lines 53 and 95)
> Need to work on this a little more to sort out this bug.



--
This message was sent by Atlassian JIRA
(v6.2#6252)