Import from Trac to YouTrack SyntaxError

Hello.

I'm trying to import a project from Trac to YouTrack using this link http://confluence.jetbrains.com/display/YTD4/Import+from+Trac, but when executing the command that begin the import I got the below error:

  File "trac2youtrack.py", line 21
    print "url   : " + target_url
    ^
SyntaxError: invalid syntax

What this can be? Could you suggest something?

Regards,
Sergiu
2 comments
Comment actions Permalink
I've tried another version of Python 2.7 (above was 3.3), and I got another error

Traceback (most recent call last):
  File "C:\youtrack-rest-python-library-master\python\trac2youtrack.py", line 4,
in <module>
    from tracLib.client import Client
  File "C:\youtrack-rest-python-library-master\python\tracLib\client.py", line 1
, in <module>
    from trac.env import Environment
ImportError: No module named trac.env
0
Comment actions Permalink
Hi Sergui,
You have to install Trac python modules.
Something like this:
pip install Trac
prettyPrint();
0

Please sign in to leave a comment.