12 Replies Latest reply: Jun 10, 2014 12:47 PM by Mike Garabedian RSS

steelscript Application Framework, AWS AMI

John Whitlow

Hello,

 

I followed instructions, as far as I know, to get Steelscript loaded on an AWS AMI instance, but missing the Application Framework piece. 

 

Any thoughts?

 

Thanks,

 

John

 

[root@ip-172-31-38-98 pip-1.1]# steel about -v

4

Installed SteelScript Packages

Core packages:

  steelscript                               0.9.1

  steelscript.netprofiler                   0.9.1

  steelscript.netshark                      0.9.1

 

 

Application Framework packages:

None.

 

 

Paths to source:

  /usr/lib/python2.6/site-packages

 

 

Python information:

  Version      : 2.6.9

  Version tuple: ('2', '6', '9')

  Compiler     : GCC 4.8.2 20131212 (Red Hat 4.8.2-7)

  Build        : ('unknown', 'Mar 28 2014 00:06:37')

  Architecture : ('64bit', 'ELF')

 

 

Platform information:

  platform : Linux-3.10.35-43.137.amzn1.x86_64-x86_64-with-glibc2.2.5

  system   : Linux

  node     : ip-172-31-38-98

  release  : 3.10.35-43.137.amzn1.x86_64

  version  : #1 SMP Wed Apr 2 09:36:59 UTC 2014

  machine  : x86_64

  processor: x86_64

 

 

Python path:

['/usr/bin', '/usr/lib/python2.6/site-packages/pip-1.1-py2.6.egg', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/PIL', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info']

[root@ip-172-31-38-98 pip-1.1]#

  • Re: steelscript Application Framework, AWS AMI
    John Whitlow

    I tried installing again to see where the problem resides during the process. 

     

    From Riverbed Steelscript for Python Quick -

    - pip install steelscript - appear sucessfull

    - steel install - missing distributions..

     

     

     

    [root@ip-172-31-31-106 ec2-user]# pip install steelscript

    Requirement already satisfied (use --upgrade to upgrade): steelscript in /usr/lib/python2.6/site-packages

    Requirement already satisfied (use --upgrade to upgrade): requests>=2.1.0 in /usr/lib/python2.6/site-packages (from steelscript)

    Requirement already satisfied (use --upgrade to upgrade): importlib in /usr/lib/python2.6/site-packages (from steelscript)

    Cleaning up...

    [root@ip-172-31-31-106 ec2-user]# steel install

    Traceback (most recent call last):

      File "/usr/bin/steel", 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>=2.1.0

    [root@ip-172-31-31-106 ec2-user]#

    • Re: Re: steelscript Application Framework, AWS AMI
      Mike Garabedian

      For your second problem - we were able to replicate the issue and it seems to be related to an older version of setuptools.

       

      Can you try creating a virtualenv and installing steelscript into there?

       

      > cd <project_directory>

      > sudo pip install -U virtualenv    # updates the system virtualenv package to the latest version

      > virtualenv steel_virtualenv        # creates new virtualenv in the current directory

      > source steel_virtualenv/bin/activate

      > pip install steelscript

      > steel install

       

      Mike

      • Re: steelscript Application Framework, AWS AMI
        John Whitlow

        Hi Mike,

         

        Regarding this problem, the virtual environment did allow me to run 'steel install' successfully.

         

        Subsequently running - steel install --appfwk did not work correctly, however..

         

        (steel_virtualenv)[root@ip-172-31-31-106 ec2-user]# steel install --appfwk

        Checking if pip is installed...done

        Package steelscript already installed

        Package steelscript.netprofiler already installed

        Package steelscript.netshark already installed

        Installing django-admin-tools...done

        Installing steelscript.appfwk.....failed

        Command failed: pip install   steelscript.appfwk

             File "numpy/core/setup.py", line 682, in get_mathlib_info

         

         

         

         

         

         

           RuntimeError: Broken toolchain: cannot link a simple C program

         

         

           ----------------------------------------

           Cleaning up...

           Command python setup.py egg_info failed with error code 1 in /home/ec2-user/steel_virtualenv/build/pandas

           Storing debug log for failure in /root/.pip/pip.log

        See log for details: /root/.steelscript/steel.log

        (steel_virtualenv)[root@ip-172-31-31-106 ec2-user]#

  • Re: steelscript Application Framework, AWS AMI
    Mike Garabedian

    Hi John,

     

    In order to install the Application Framework, an additional parameter needs to be specified to the "steel install" command:

     

         > steel install --appfwk

     

    We will add some helpful text to the "steel about" command to make that more clear.

     

    Thanks,

    Mike

    • Re: steelscript Application Framework, AWS AMI
      John Whitlow

      Hi Mike,

       

      Regarding this problem; the following resulted from 'steel install --appfwk'

       

       

       

      [root@ip-172-31-38-98 ec2-user]# steel install --appfwk

      Checking if pip is installed...done

      Installing steelscript...done

      Installing steelscript.netprofiler...done

      Installing steelscript.netshark...done

      Installing django-admin-tools...failed

      Command failed: pip install  --allow-unverified django-admin-tools django-admin-tools==0.5.1

         Usage: /usr/bin/pip install [OPTIONS] PACKAGE_NAMES...

       

       

         /usr/bin/pip install: error: no such option: --allow-unverified

      See log for details: /root/.steelscript/steel.log

      [root@ip-172-31-38-98 ec2-user]#