Installing Python Client Library

Hello,

I'm trying to install the Python Client Library so I can transfer projects to another host.

I've read this documentation but downloaded the Python Client Library and installed Python but I can't authenticate or run commands and I'm not sure if I'm following it correctly.

http://confluence.jetbrains.com/display/YTD5/Python+Client+Library#PythonClientLibrary-GettingStarted

Does the Python Client Library and Python need to be extracted to a specific loactions?

To execute the commands do I just open Python and use them in there? I keep getting syntax errors.

Dan
2 comments
Comment actions Permalink
Hello Dan,

Sorry for not responding earlier!
Default locations should be ok. Please, provide me with errors you observe.

Thank you.
0
Comment actions Permalink
Hello,

I've found out where to run the command thanks to reading this:

http://redsunsoft.com/2013/11/youtrack-importing-issues-from-a-csv-file/

I ran the import script with our details and got the following errors:
Traceback (most recent call last):
  File "youtrack2youtrack.py", line 632, in <module>
    main()
  File "youtrack2youtrack.py", line 101, in main
    project_ids, params=params)
  File "youtrack2youtrack.py", line 246, in youtrack2youtrack
    target = Connection(target_url, target_login, target_password)
  File "C:\youtrack-rest-python-library-master\youtrack-rest-python-library-mast
er\python\youtrack\connection.py", line 51, in __init__
    self._login(*self._credentials)
  File "C:\youtrack-rest-python-library-master\youtrack-rest-python-library-mast
er\python\youtrack\connection.py", line 59, in _login
    headers={'Content-Length': '0', 'Connection': 'keep-alive'})
  File "C:\youtrack-rest-python-library-master\youtrack-rest-python-library-mast
er\python\httplib2\__init__.py", line 1544, in request
    (response, content) = self._request(conn, authority, uri, request_uri, metho
d, body, headers, redirections, cachekey)
  File "C:\youtrack-rest-python-library-master\youtrack-rest-python-library-mast
er\python\httplib2\__init__.py", line 1294, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, he
aders)
  File "C:\youtrack-rest-python-library-master\youtrack-rest-python-library-mast
er\python\httplib2\__init__.py", line 1268, in _conn_request
    conn.connect()
  File "C:\youtrack-rest-python-library-master\youtrack-rest-python-library-mast
er\python\httplib2\__init__.py", line 1019, in connect
    raise socket.error, msg
socket.error: [Errno 10054] An existing connection was forcibly closed by the re
mote host
0

Please sign in to leave a comment.