Import from Another YouTrack Server using Python 2.7.2 Problem

Hi,

I have been trying to Import from another You Track Server,

I followed all of the instructions at http://confluence.jetbrains.net/display/YTD3/Python+Client+Library

And added the connection string in connection_test.py,

I keep getting the following error:

Traceback (most recent call last):
  File "tests/connection_test.py", line 4, in <module>
    from youtrack.connection import Connection, youtrack, os, os
  File "/usr/local/python.2.7.2/lib/python2.7/site-packages/youtrack/connection.
py", line 8, in <module>
    import urllib2_file
ImportError: No module named urllib2_file

Having searched in Google it appears that urllib2_file is no longer being used for later Python files,

Is there an updated script for people with later versions of python,

Or is there a workaround?

Best Regards,

Adrian

2 comments
Comment actions Permalink

Hi,

I have just found out what I was doing wrong,

Now it is coming up with a different error,

Traceback (most recent call last):
  File "tests/connection_test.py", line 4, in <module>
    from youtrack.connection import Connection, youtrack, os, os
ImportError: cannot import name os

Can anyone tell me what this means please?

Best Regards,

Adrian

0
Comment actions Permalink

Hello, Adrian.

Sorry, we had an obsolete information in our documentation, that you should run tests first, we'll fix it. Please, try to run import script, here are the instructions: http://confluence.jetbrains.net/display/YTD3/Import+from+Another+YouTrack+Server

Also, if you want to import all your projects -- you can simply copy your database, and all the data will be imported.

0

Please sign in to leave a comment.