Comment 1 for bug 1818406

Revision history for this message
dhenry (tfc-duke) wrote :

Ok, I found what's the problem.

In the file /usr/share/gps/support/ui/workflows/__init__.py, line 248 (gnat-gps 17.0.2017-1ubuntu1 from cosmic):

    el = next (gen.next)

shall be:

    el = next (gen)

And then it works.

This line has been modified by the python_2_to_3.diff deb patch during packaging. This is where the bug were introduced.
Note that the original line (before patch) was:

    el = gen.next()

and seems to work fine too for me.

I'm not a python expert, so I don't know why this line had to be patched, and which version shall be used between next(gen) and gen.next().