#43 ridad.py doesn't work with python 3
Closed Opened by ttomecek.

Traceback (most recent call last):
  File "./ridad.py", line 27, in <module>
    import rida.scheduler.main
  File "/opt/rida/rida/scheduler/main.py", line 52, in <module>
    import rida.scheduler.handlers.components
  File "/opt/rida/rida/scheduler/handlers/components.py", line 28, in <module>
    import rida.builder
  File "/opt/rida/rida/builder.py", line 35, in <module>
    from kobo.shortcuts import run
  File "/root/.local/lib/python3.5/site-packages/kobo/shortcuts.py", line 186
    def touch(filename, mode=0644):
                                ^
SyntaxError: invalid token

Hi Thanks for pointing this out.

I'd say "low priority", since if we'd have python3 compatible rida code, then we'll still fail on missing python3 libraries for koji, which we do rely on :/

Lubos

My point here is: https://pagure.io/fm-orchestrator/blob/master/f/ridad.py#_1

I personally don't really care about version of python, but I care about what shebang is suggesting.

Anyway, thanks for reply, will use python 2 then.

ridad.py no longer exists and was superseded by https://pagure.io/fm-orchestrator/pull-request/263 .

There may be still some Python 3 incompatibilities but this will be addressed when the dependent libraries support Python 3.

@mprahl changed the status to Closed

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/mbs/issues/43

Please continue any further discussion there.

Metadata