Minecraft icon indicating copy to clipboard operation
Minecraft copied to clipboard

'ImageData' object has no attribute 'texture'

Open BhavayJ opened this issue 5 years ago • 11 comments

when I run the file main.py it says that 'ImageData' object has no attribute 'texture' so what I should do please tell

BhavayJ avatar Nov 06 '20 13:11 BhavayJ

Same problem here. :cry:

HenriWahl avatar Nov 11 '20 20:11 HenriWahl

Just look through the code and replace .texture with get_texture()

ajh123 avatar Dec 13 '20 17:12 ajh123

@ajh123 It seemed to helped however now I am getting green bars across the screen? I should probably say that I used 2to3 to move everything over to python 3. Any idea what could be the reason?

shad0wm1ch avatar Dec 27 '20 19:12 shad0wm1ch

You didn't need to use 2to3, it works. and just change any print "...". to. print("...")

ajh123 avatar Dec 28 '20 11:12 ajh123

I thought that the python3 branch was merged a while ago so that the master branch was compatible with python3. It should be working fine.

On Mon, Dec 28, 2020 at 3:03 AM ajh123 [email protected] wrote:

You didn't need to use 2to3, it works. and just change any print "...". to. print("...")

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/boskee/Minecraft/issues/113#issuecomment-751674722, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKZAPOE6YT2XCY2JJTJ3GFLSXBQWZANCNFSM4TMU26JQ .

r58Playz avatar Dec 30 '20 18:12 r58Playz

image @ajh123 Sorry that was my bad, I don't know why I didn't notice it was already in python 3. Once I change the textures to get_texture thats the program I get. Graphics drivers are up to date, same with python and all the python libraries.

Any idea?

shad0wm1ch avatar Jan 03 '21 15:01 shad0wm1ch

Don’t know what’s gone on there, my solution works for me. Maybe the texture files got corrupted?

ajh123 avatar Jan 03 '21 21:01 ajh123

It must be fault on my end then, thanks anyway!

shad0wm1ch avatar Jan 04 '21 11:01 shad0wm1ch

Just look through the code and replace .texture with get_texture()

Ummm, where is it? @ajh123

HeyItsAnushtubh avatar Jul 28 '21 10:07 HeyItsAnushtubh

Everywhere

ajh123 avatar Jul 28 '21 13:07 ajh123

same problem here

d3cryptofc avatar Sep 25 '22 22:09 d3cryptofc