Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-4836

FIWARE.Question.Tech.Data.BigData-Analysis.Fiware - run Cosmos CLI error

    Details

      Description

      Created question in FIWARE Q/A platform on 26-04-2015 at 13:04
      Please, ANSWER this question AT http://stackoverflow.com/questions/29876888/fiware-run-cosmos-cli-error

      Question:
      Fiware - run Cosmos CLI error

      Description:
      Im trying to run code from
      http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/BigData_Analysis_-_User_and_Programmer_Guide

      And Im stuck at line

      "easy_install
      https://forge.fi-ware.org/frs/download.php/1309/cosmos-0.16.0-py2.7.egg"

      System print out:

      Downloading https://forge.fi-ware.org/frs/download.php/1309/cosmos-0.16.0-py2.7.egg
      Processing cosmos-0.16.0-py2.7.egg
      removing '/usr/lib/python2.6/site-packages/cosmos-0.16.0-py2.7.egg' (and everything under it)
      creating /usr/lib/python2.6/site-packages/cosmos-0.16.0-py2.7.egg
      Extracting cosmos-0.16.0-py2.7.egg to /usr/lib/python2.6/site-packages
      SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/site-packages/cosmos-0.16.0-py2.7.egg/cosmos/cli/command_util.py', 145, 20, ' return

      {k: v for k, v in json.iteritems() if k not in filter_keys}

      \n'))

      cosmos 0.16.0 is already the active version in easy-install.pth
      Installing cosmos script to /usr/bin

      Installed /usr/lib/python2.6/site-packages/cosmos-0.16.0-py2.7.egg
      Processing dependencies for cosmos==0.16.0
      Searching for cosmos==0.16.0
      Reading http://pypi.python.org/simple/cosmos/
      No local packages or download links found for cosmos==0.16.0
      error: Could not find suitable distribution for Requirement.parse('cosmos==0.16.0')

      But after that I realized that Im using image from conference and cosmos should be installed, so I run

      1. cosmos

      And this is my system print out:

      Traceback (most recent call last):
      File "/usr/bin/cosmos", line 5, in <module>
      from pkg_resources import load_entry_point
      File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in <module>
      working_set.require(_requires_)
      File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
      needed = self.resolve(parse_requirements(requirements))
      File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
      raise DistributionNotFound(req)
      pkg_resources.DistributionNotFound: requests

      How to run cosmos properly ??

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-17 06:05|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-17 06:05|CREATED monitor | # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-17 09:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-17 09:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-17 12:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-17 12:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-18 06:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-18 06:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

          • Assignee:
            frb Francisco Romero
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: