Mantis Import

Hello,

I try to run the Mantis Import but I got some errors:

[ssturm@dev python]$ python tests/connection_test.py

Traceback (most recent call last):

  File "tests/connection_test.py", line 4, in ?

    from youtrack.connection import Connection, youtrack, os, os

  File "/home/ssturm/python/youtrack/connection.py", line 12

    self.http = httplib2.Http() if proxy_info is None else httplib2.Http(proxy_info=proxy_info)

                                 ^

SyntaxError: invalid syntax

6 comments
Comment actions Permalink

Hello, Stefan!

What Python version do you use? To find it out you can just type

python --version

in your commnad line.

0
Comment actions Permalink

Ohh.. Old...

Python 2.4.3 (#1, Sep  3 2009, 15:37:37)

0
Comment actions Permalink

Can you update it? To some latest 2.* version.

0
Comment actions Permalink

I managed to run it on a different server. No it runs, but now I get this error:

Traceback (most recent call last):

  File "mantis2youtrack.py", line 455, in <module>

    main()

  File "mantis2youtrack.py", line 25, in main

    mantis_port, mantis_login, mantis_pass, mantis_product_names)

  File "mantis2youtrack.py", line 332, in mantis2youtrack

    bundle = field.bundle

AttributeError: 'CustomField' object has no attribute 'bundle'

0
Comment actions Permalink

Hello,

now I'm one step further, but now I get the next error:

Importing components to project [ 19 ]

Traceback (most recent call last):

  File "mantis2youtrack.py", line 455, in <module>

    main()

  File "mantis2youtrack.py", line 25, in main

    mantis_port, mantis_login, mantis_pass, mantis_product_names)

  File "mantis2youtrack.py", line 377, in mantis2youtrack

    lambda component, yt_bundle, value_mapping:

  File "mantis2youtrack.py", line 267, in add_values_to_fields

    add_values_to_bundle_safe(connection, bundle, yt_values)

  File "/root/python/youtrack/importHelper.py", line 141, in add_values_to_bundle_safe

    raise e

youtrack.YouTrackException: Error for [/admin/customfield/ownedFieldBundle/Improve%20Digital%20Subsystems/?defaultAssignee=&element_name=ownedField]: 405: Method Not Allowed

0
Comment actions Permalink

Hello, Stefan.

Do you have subsystem with empty name in your project?

0

Please sign in to leave a comment.