[solved] ValueError: renpy.display.render.Matrix2D

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
rinrin
Veteran
Posts: 211
Joined: Thu Apr 16, 2009 9:18 am
Completed: Several.
Projects: Several.
Contact:

[solved] ValueError: renpy.display.render.Matrix2D

#1 Post by rinrin » Sat Mar 09, 2013 1:35 pm

I searched the forums (I'm pretty sure I've seen something like this before) but couldn't find anything similar, so I'm starting a new thread.

A player just reported that after installing the game, she can't start it. Here's the traceback:

Code: Select all

Traceback (most recent call last):
  File "renpy.py", line 144, in <module>
  File "renpy.py", line 141, in main
  File "C:\-\Games\Demos\renpy\bootstrap.py", line 215, in bootstrap
    renpy.import_all()
  File "C:\-\Games\Demos\renpy\__init__.py", line 164, in import_all
    import renpy.display.motion # layout @UnresolvedImport
  File "C:\-\Games\Demos\renpy\display\motion.py", line 31, in <module>
    import renpy.display.accelerator
  File "renpy\display\accelerator.pyo", line 12, in <module>
  File "renpy\display\accelerator.pyo", line 10, in __load
  File "render.pxd", line 1, in init renpy.display.accelerator (gen\renpy.display.accelerator.c:3092)
ValueError: renpy.display.render.Matrix2D has the wrong size, try recompiling
Traceback (most recent call last):
  File "renpy.py", line 144, in <module>
  File "renpy.py", line 141, in main
  File "C:\-\Games\Demos\renpy\bootstrap.py", line 215, in bootstrap
    renpy.import_all()
  File "C:\-\Games\Demos\renpy\__init__.py", line 164, in import_all
    import renpy.display.motion # layout @UnresolvedImport
  File "C:\-\Games\Demos\renpy\display\motion.py", line 31, in <module>
    import renpy.display.accelerator
  File "renpy\display\accelerator.pyo", line 12, in <module>
  File "renpy\display\accelerator.pyo", line 10, in __load
  File "render.pxd", line 1, in init renpy.display.accelerator (gen\renpy.display.accelerator.c:3092)
ValueError: renpy.display.render.Matrix2D has the wrong size, try recompiling
Traceback (most recent call last):
  File "renpy.py", line 144, in <module>
  File "renpy.py", line 141, in main
  File "C:\-\Games\Demos\renpy\bootstrap.py", line 215, in bootstrap
    renpy.import_all()
  File "C:\-\Games\Demos\renpy\__init__.py", line 164, in import_all
    import renpy.display.motion # layout @UnresolvedImport
  File "C:\-\Games\Demos\renpy\display\motion.py", line 31, in <module>
    import renpy.display.accelerator
  File "renpy\display\accelerator.pyo", line 12, in <module>
  File "renpy\display\accelerator.pyo", line 10, in __load
  File "render.pxd", line 1, in init renpy.display.accelerator (gen\renpy.display.accelerator.c:3092)
ValueError: renpy.display.render.Matrix2D has the wrong size, try recompiling
(Sorry about the formatting, I copied it from an email.)

Any ideas what could be causing this?
Last edited by rinrin on Sun Mar 10, 2013 6:00 am, edited 1 time in total.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: ValueError: renpy.display.render.Matrix2D has the wrong

#2 Post by PyTom » Sat Mar 09, 2013 10:26 pm

What version of Ren'Py are they using?

This is the sort of thing you'd get if some of the libraries were from one version of Ren'Py, and some were from a different version of Ren'Py.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
rinrin
Veteran
Posts: 211
Joined: Thu Apr 16, 2009 9:18 am
Completed: Several.
Projects: Several.
Contact:

Re: ValueError: renpy.display.render.Matrix2D has the wrong

#3 Post by rinrin » Sat Mar 09, 2013 11:51 pm

Thank you!

Sorry if this sounds like a stupid question, but why would the version of Ren'Py she (possibly) has installed influence a compiled, installed version of the game at all? Since people who don't have Ren'Py can play those, I thought the (compiled) games themselves are completely separate from any Ren'Py installs a user might have on their computer.

Anyway, here's what she says:

Code: Select all

I think I have Ren'Py installed, as I've played other games which require this, but I'm not sure what version I have. 

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: ValueError: renpy.display.render.Matrix2D has the wrong

#4 Post by PyTom » Sun Mar 10, 2013 12:05 am

I have no idea, to be honest. It's just that this is what would happen if you mix multiple distributions of Ren'Py somehow.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
rinrin
Veteran
Posts: 211
Joined: Thu Apr 16, 2009 9:18 am
Completed: Several.
Projects: Several.
Contact:

Re: ValueError: renpy.display.render.Matrix2D has the wrong

#5 Post by rinrin » Sun Mar 10, 2013 5:59 am

Solved!

I'll post about it here just in case anyone encounters similar issues:

It seems the cause of the problem was having several Ren'Py games installed in the same directory, causing different versions of Ren'Py to clash. Uninstalling and reinstalling the game in its own folder fixed the problem.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]