resbuild issue

  • I'm new to oxygine, i am looking into game ui resolutions which led me to the resbuild tool.

    However there seems to be an issue, for some reason it does not build and xml file.

    it would seem there is an error in the file,
    import resbuild.xml_processor as xml_processor.

    it seem that this file can't import the file in the resbuild folder.
    specifically the resbuild.xml_processor is underlined with green.

    do you have any suggestions on how to get this working.

    thanks in advance.

  • administrators

    Hi, please attach console screenshot with errors

  • This post is deleted!

  • sorry this is the correct error message from the cmd:

    Traceback (most recent call last):
    File "C:\oxygine\oxygine-framework\tools\resbuild\", line 9, i
    n <module>
    import Image
    ModuleNotFoundError: No module named 'Image'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File "C:\oxygine\oxygine-framework\tools\", line 7, in <module>
    import resbuild.xml_processor as xml_processor
    File "C:\oxygine\oxygine-framework\tools\resbuild\", line 11,
    in <module>
    from . import (
    File "C:\oxygine\oxygine-framework\tools\resbuild\", line 12,
    in <module>
    from PIL import Image
    ModuleNotFoundError: No module named 'PIL'

  • This post is deleted!


    to resolve the PIL import error i had to install pillow.

    In cmd(windows) type the following:
    pip install Pillow

    Alright, a little history here.

    PIL is an older and unmaintained library, but the owners of it never officially abandoned it. Some people forked it into the project Pillow.

    Pillow uses the same namespace as PIL, so with older versions it was basically a drop in replacement. Now it's had enough improvements where that isn't the case anymore, but they're still keeping it in the PIL namespace.

    So that's why in order to get PIL to work you actually need to install Pillow.

    original thread to fix PIL error

    also my command to generate the atlas was incorrect. so please ignore my above message and follow to instructions in the documentation:

  • administrators

  • i completely missed that.
    thanks oxygine

Log in to reply

Looks like your connection to Oxygine was lost, please wait while we try to reconnect.