pls
Junior Member
Posts: 24
|
Post by pls on Mar 28, 2019 13:29:37 GMT -8
I have been having problems with the gd2asset program. After reading a little about Python it appears that the python 2.7 no longer likes the following code.
'import Image'
Instead it likes the following code
'from PIL import Image'
I am using python version 2.7.15rc1 with Ubuntu 18.04.
I've done minimal programing with Python so I don't want to mess with the main program or the scripts. But I assume that all places in the program that has the same code above will also cause error messages. It appears that the byte code version of the main program works. I assume that this is because the 'Image' subroutines were inserted in the main byte code. I just had trouble with the scripts.
I will be trying to learn enough python to correct my version of the scripts.
Comments?
pls
|
|
|
Post by jamesbowman on Mar 31, 2019 18:27:54 GMT -8
Yes I have finally switched gd2asset to use Pillow instead of PIL. If you update it with something like this:
sudo pip install -U gameduino2
It should now work.
|
|
pls
Junior Member
Posts: 24
|
Post by pls on Apr 2, 2019 18:09:39 GMT -8
Thanks for the code changes. It all works as before. -pls
|
|