Skip to content

Instantly share code, notes, and snippets.

/error.py Secret
Created Oct 13, 2017

Embed
What would you like to do?
Terminating due to unhandled exception:
Traceback (most recent call last):
File "./FoFiX.py", line 311, in <module>
main = Main()
File "./FoFiX.py", line 191, in __init__
self.engine = GameEngine(self.config)
File "/opt/fofix-git/fofix/core/GameEngine.py", line 304, in __init__
self.data = Data(self.resource, self.svg)
File "/opt/fofix-git/fofix/core/Data.py", line 123, in __init__
self.loadImgDrawing(self, "star1", os.path.join("themes",themename,"star1.png"), textureSize = (128, 128))
File "/opt/fofix-git/fofix/core/Data.py", line 450, in loadImgDrawing
imgDrawing = self.getImgDrawing(fileName)
File "/opt/fofix-git/fofix/core/Data.py", line 413, in getImgDrawing
imgDrawing = ImgDrawing(self.svg, fileName1)
File "/opt/fofix-git/fofix/core/Image.py", line 205, in __init__
self.texture = Texture(ImgData)
File "/opt/fofix-git/fofix/core/Texture.py", line 66, in __init__
self.loadFile(name)
File "/opt/fofix-git/fofix/core/Texture.py", line 70, in loadFile
self.loadImage(Image.open(name))
File "/opt/fofix-git/fofix/core/Texture.py", line 77, in loadImage
string = image.tobytes('raw', 'RGBA', 0, -1)
File "/home/brott/.local/lib/python2.7/site-packages/Pillow-1.7.8-py2.7-linux-x86_64.egg/PIL/Image.py", line 510, in __getattr__
raise AttributeError(name)
AttributeError: tobytes
If you make a bug report about this error, please include the contents of the following log file:
/home/brott/.fofix/fofix.log
The log file already includes the traceback given above.
Traceback (most recent call last):
File "./FoFiX.py", line 311, in <module>
main = Main()
File "./FoFiX.py", line 191, in __init__
self.engine = GameEngine(self.config)
File "/opt/fofix-git/fofix/core/GameEngine.py", line 304, in __init__
self.data = Data(self.resource, self.svg)
File "/opt/fofix-git/fofix/core/Data.py", line 123, in __init__
self.loadImgDrawing(self, "star1", os.path.join("themes",themename,"star1.png"), textureSize = (128, 128))
File "/opt/fofix-git/fofix/core/Data.py", line 450, in loadImgDrawing
imgDrawing = self.getImgDrawing(fileName)
File "/opt/fofix-git/fofix/core/Data.py", line 413, in getImgDrawing
imgDrawing = ImgDrawing(self.svg, fileName1)
File "/opt/fofix-git/fofix/core/Image.py", line 205, in __init__
self.texture = Texture(ImgData)
File "/opt/fofix-git/fofix/core/Texture.py", line 66, in __init__
self.loadFile(name)
File "/opt/fofix-git/fofix/core/Texture.py", line 70, in loadFile
self.loadImage(Image.open(name))
File "/opt/fofix-git/fofix/core/Texture.py", line 77, in loadImage
string = image.tobytes('raw', 'RGBA', 0, -1)
File "/home/brott/.local/lib/python2.7/site-packages/Pillow-1.7.8-py2.7-linux-x86_64.egg/PIL/Image.py", line 510, in __getattr__
raise AttributeError(name)
AttributeError: tobytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.