Uploaded image for project: 'Apache Open Climate Workbench (Retired)'
  1. Apache Open Climate Workbench (Retired)
  2. CLIMATE-560

Incorrect assumption for installation directory within easy-ocw/install-osx.sh



    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.4, 0.5
    • Fix Version/s: 1.1.0
    • Component/s: easy-ocw
    • Labels:


      I found an incorrect assumption when failing to successfully install OCW via easy-ocw/install-osx.sh

      The output message is as follows

      lmcgibbn@LMC-032857 /usr/local/climate(master) $ ./easy-ocw/install-osx.sh -e
                               Welcome to Easy OCW
      A number of dependencies for OCW will now be installed. Please check the wiki
      for a complete list of dependencies. Additionally, please read the wiki for
      useful installation guidelines and information that may be pertinent to your
      situation. All of this can be found at http://s.apache.org/3p2
      Press [ENTER] to begin installation ...
      Checking for pip ...
      Setting up a virtualenv ...
      Checking for previously installed ocw virtual environment...
       -  Creating a new environment in ~/ocw...
      ./easy-ocw/install-osx.sh: line 161: install_log: Permission denied
      ./easy-ocw/install-osx.sh: line 162: install_log: Permission denied
      Installing conda for package management ...
      Error: conda appears to be already initalized in: //anaconda
      Installing dependencies with conda ...
      Error: cannot open file: ocw-conda-dependencies.txt
      Installing additional Python packages
      If you are familiar with virtualenv you should know that activating
      the new 'ocw' environment is different because we use conda to install
      packages.  An example of the command you want to run is listed in the
      alias below.
      To make it easier to change into the 'ocw' virtualenv add the
      following alias to your ~/.bash_profile
          alias ocw='source ~/ocw/bin/activate ~/ocw/'
      When you want to use ocw in the future, you just have to type 'ocw'
      in your terminal.

      It is the following code which bothers me

      To make it easier to change into the 'ocw' virtualenv add the
      following alias to your ~/.bash_profile
          alias ocw='source ~/ocw/bin/activate ~/ocw/'

      As per CLIMATE-548 I do not think that we should assume OCW is installed in ~/ocw/

      We can discuss how best to address this issue. For the time being it is logged and I will think about a solution myself. Comments welcome.




            • Assignee:
              omkar20895 Omkar Reddy
              lewismc Lewis John McGibbney
            • Votes:
              0 Vote for this issue
              3 Start watching this issue


              • Created: