I've posted the question to stackoverflow before realizing that the real knowledge should be here.. I'm copying it here for clarity:
I'm using Canopy Python 2.7.11 to try reading Jira tickets with the Atlassian REST API tutorial "Example #1: Graphing Image Links" sample at https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-version-2-tutorial which uses restkit
But what I get is an error message
\Python>python atlassian_ex1.py RCA-12 Fetching RCA-12 Traceback (most recent call last): File "atlassian_ex1.py", line 107, in <module> graph = build_graph_data(start_issue_key, issue_fetcher) File "atlassian_ex1.py", line 68, in build_graph_data graph = walk(start_issue_key, []) File "atlassian_ex1.py", line 48, in walk issue = get_issue(issue_key) File "atlassian_ex1.py", line 26, in get_issue response = resource.get(headers = {'Content-Type' : 'application/json'}) File "C:\Users\riissane\AppData\Local\Enthought\Canopy\User\lib\site-packages\restkit\resource.py" , line 114, in get params_dict=params_dict, **params) File "C:\Users\riissane\AppData\Local\Enthought\Canopy\User\lib\site-packages\restkit\resource.py" , line 190, in request headers=self.make_headers(headers)) File "C:\Users\riissane\AppData\Local\Enthought\Canopy\User\lib\site-packages\restkit\client.py", line 413, in request return self.perform(request) File "C:\Users\riissane\AppData\Local\Enthought\Canopy\User\lib\site-packages\restkit\client.py", line 286, in perform conn = self.get_connection(request) File "C:\Users\riissane\AppData\Local\Enthought\Canopy\User\lib\site-packages\restkit\client.py", line 188, in get_connection extra_headers=extra_headers, **self.ssl_args) File "C:\Users\riissane\AppData\Local\Enthought\Canopy\User\lib\site-packages\socketpool\pool.py", line 190, in get raise last_error TypeError: wrap_socket() got an unexpected keyword argument 'pool_instance'
The jira server has an https address (the sample uses http) but I have no problems in browsing the Jira tickets with a web browser. I can get the tickets in json format using either Chrome and / or Postman using a call in the format
https://<myserver>/rest/api/2/search?jql=project<myproject>
so I know that the system is accessible and I have right access codes..
But I'm out of ideas about what could be the issue with the Python program.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.