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 oxyresbuild.py file,
    import resbuild.xml_processor as xml_processor.

    it seem that this file can't import the xml_processor.py 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\process_atlas.py", 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\oxyresbuild.py", line 7, in <module>
    import resbuild.xml_processor as xml_processor
    File "C:\oxygine\oxygine-framework\tools\resbuild\xml_processor.py", line 11,
    in <module>
    from . import (
    File "C:\oxygine\oxygine-framework\tools\resbuild\process_atlas.py", line 12,
    in <module>
    from PIL import Image
    ModuleNotFoundError: No module named 'PIL'



  • This post is deleted!


  • RESOLVED

    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:
    https://github.com/oxygine/oxygine-framework/wiki/atlasses


  • 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.