Error when building

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.
Message
Author
bluedragon77
Newbie
Posts: 13
Joined: Sun May 17, 2015 7:46 pm
Contact:

Error when building

#1 Post by bluedragon77 »

Hello when I try to build my game this is the traceback I get:
I'm sorry, but an uncaught exception occurred.

Code: Select all

While running game code:
  File "launcher/game/distribute.rpy", line 997, in script
    python hide:
  File "launcher/game/distribute.rpy", line 1004, in <module>
    open_directory=True,
  File "launcher/game/distribute.rpy", line 400, in __init__
    self.add_python()
  File "launcher/game/distribute.rpy", line 651, in add_python
    True)
  File "launcher/game/distribute.rpy", line 522, in add_file
    raise Exception("{} does not exist.".format(path))
Exception: /usr/share/games/renpy/lib/linux-i686/pythonw does not exist.

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "launcher/game/distribute.rpy", line 997, in script
    python hide:
  File "/usr/share/games/renpy/renpy/ast.py", line 756, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/usr/share/games/renpy/renpy/python.py", line 1382, in py_exec_bytecode
    exec bytecode in globals, locals
  File "launcher/game/distribute.rpy", line 1004, in <module>
    open_directory=True,
  File "launcher/game/distribute.rpy", line 400, in __init__
    self.add_python()
  File "launcher/game/distribute.rpy", line 651, in add_python
    True)
  File "launcher/game/distribute.rpy", line 522, in add_file
    raise Exception("{} does not exist.".format(path))
Exception: /usr/share/games/renpy/lib/linux-i686/pythonw does not exist.

Linux-3.19.0-21-generic-x86_64-with-Ubuntu-15.04-vivid
Ren'Py 6.17.6.512
Ren'Py Launcher 6.17.6.512
The folder /usr/share/games/renpy/lib/ really does not exist.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: Error when building

#2 Post by PyTom »

You're not using the official Ren'Py, downloaded from http://www.renpy.org/. Linux distros tend to remove a lot of Ren'Py when they package it, and so you wind up having this sort of problem.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

bluedragon77
Newbie
Posts: 13
Joined: Sun May 17, 2015 7:46 pm
Contact:

Re: Error when building

#3 Post by bluedragon77 »

it seems so...any idea why they remove it?

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: Error when building

#4 Post by PyTom »

They have policies, like not distributing things like windows programs, that Ren'Py proper doesn't comply with.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

lucy15
Newbie
Posts: 11
Joined: Fri Jul 10, 2015 12:15 pm
Deviantart: sarahmizuki
Contact:

Re: Error when building

#5 Post by lucy15 »

hello, I have the same problem, but I download the official ren'py What should I do ?
Thank's
Attachments
Capture d’écran 2015-07-11 à 11.42.16.png

bluedragon77
Newbie
Posts: 13
Joined: Sun May 17, 2015 7:46 pm
Contact:

Re: Error when building

#6 Post by bluedragon77 »

We are missing some information here(We can't see the part that is hidden behind the slider on the right side). Could you press the open traceback button and copy paste it here into the code tag nicely?

lucy15
Newbie
Posts: 11
Joined: Fri Jul 10, 2015 12:15 pm
Deviantart: sarahmizuki
Contact:

Re: Error when building

#7 Post by lucy15 »

sure! sorry
Attachments
Capture d’écran 2015-07-11 à 12.45.23.png

rosieangel
Newbie
Posts: 5
Joined: Thu Jul 09, 2015 10:03 am
Deviantart: rosieangel
Contact:

Re: Error when building

#8 Post by rosieangel »

maybe try to set the zip file to true

lucy15
Newbie
Posts: 11
Joined: Fri Jul 10, 2015 12:15 pm
Deviantart: sarahmizuki
Contact:

Re: Error when building

#9 Post by lucy15 »

But it is already true, no?

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: Error when building

#10 Post by PyTom »

Um... does the mentioned directory exist? This is the sort of error you'd get if Ren'Py can't create the zip file.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

bluedragon77
Newbie
Posts: 13
Joined: Sun May 17, 2015 7:46 pm
Contact:

Re: Error when building

#11 Post by bluedragon77 »

I have never used OSX, but does your system have .zip file support?

lucy15
Newbie
Posts: 11
Joined: Fri Jul 10, 2015 12:15 pm
Deviantart: sarahmizuki
Contact:

Re: Error when building

#12 Post by lucy15 »

No he doesn't exist, yes I have zip support

lucy15
Newbie
Posts: 11
Joined: Fri Jul 10, 2015 12:15 pm
Deviantart: sarahmizuki
Contact:

Re: Error when building

#13 Post by lucy15 »

I creat a zip file of my game and when I try to building the game, I have that
Attachments
Capture d’écran 2015-07-14 à 12.26.55.png

lucy15
Newbie
Posts: 11
Joined: Fri Jul 10, 2015 12:15 pm
Deviantart: sarahmizuki
Contact:

Re: Error when building

#14 Post by lucy15 »

Any idea ?

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: Error when building

#15 Post by PyTom »

This is a pickling problem. Chances are, it means you're creating a function in a python block, rather than init python block.

Probably the best way to diagnose this is to add the code:

Code: Select all

init python:
    config.use_cpickle = False
    config.save_dump = True
to your game, save, and then post the error message and save_dump.txt.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users