Rally Software

 View Only
  • 1.  pyral 1.0.1 working on some systems not working on others

    Posted Jul 14, 2014 08:29 AM
    If I use 1.0.1 with WS API 2.0 I get : "IndexError: list index out of range" on our test and production systems, both running 2014.1-1 onprem

    If I use 0.94 with WS API 1.43 it works on our test system

    However on our production system (also running 2014.1) I get the "StopIteration" exception with 1.43


  • 2.  Re: pyral 1.0.1 working on some systems not working on others

    Posted Jul 14, 2014 11:47 AM
    Michael, I'm not able to reproduce this myself with v1.0.1, which is where that "Index out of range" issue was addressed.

    The best bet here might be to post a new issue to the GitHub repo for the Rally python SDK at:
    https://github.com/RallyTools/RallyRestToolkitForPython/issues


  • 3.  Re: pyral 1.0.1 working on some systems not working on others

    Posted Jul 25, 2014 03:56 AM
    Hello John,

    I am experiencing the same issue as Michael in our test and production environment. I have the latest github pulled and installed.

    Can you investigate this issue?

    Cheers

    Amine

    Here is my laptop configuration
    OS X Maverick (10.9.4)
    Python 2.7.5
    pyral 1. 0.1
    requests 2.3.0


    Here is the traceback I get:

    ➜  examples git:(master) ✗ ./periscope.py
    |rally1.rallydev.com| |amchouki@cisco.com| |********| |default| |default|
    ERROR: AttributeError: 'RallyRESTResponse' object has no attribute 'page' for response from request to get next data page for Workspaces
    ERROR: Unable to access item 3 (2 items served so far from a container purported to be 5 items in length)
    Traceback (most recent call last):
      File "./periscope.py", line 33, in <module>
        main(sys.argv[1:])
      File "./periscope.py", line 23, in main
        for workspace in rally.getWorkspaces():
      File "/Library/Python/2.7/site-packages/pyral/restapi.py", line 394, in getWorkspaces
        wkspcs  = self.contextHelper.getAccessibleWorkspaces()
      File "/Library/Python/2.7/site-packages/pyral/context.py", line 393, in getAccessibleWorkspaces
        wksp = [wksp for wksp in self._subs_workspaces if wksp.Name == workspace][0]
    IndexError: list index out of range

    ➜  RallyRestToolkitForPython git:(master) ✗ cat rally.hist.periscope
    2014-07-22 17:26:31.223 Following entries record Rally REST API interaction via https://rally1.rallydev.com/slm/webservice/v2.0 for user: amchouki@cisco.com
    2014-07-22 17:26:31.446 GET https://rally1.rallydev.com/slm/webservice/v2.0/Workspace/468262680/Projects?fetch="ObjectID,Name,State"&pagesize=200&start_index=1?pagesize=200&start=1
    2014-07-22 17:26:31.983 200 https://rally1.rallydev.com/slm/webservice/v2.0/Workspace/468262680/Projects?fetch="ObjectID,Name,State"&pagesize=200&start_index=1?pagesize=200&start=1 TotalResultCount 6


  • 4.  Re: pyral 1.0.1 working on some systems not working on others

    Posted Jul 25, 2014 11:56 AM
    Amine, please submit a case with Rally Support or submit your issue to https://github.com/RallyTools/RallyRestToolkitForPython/issues.