Ren'Py won't start up... UPDATE @ bottom of page.

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
e-imi
Newbie
Posts: 15
Joined: Thu Dec 28, 2006 3:28 am
Location: Canada
Contact:

Ren'Py won't start up... UPDATE @ bottom of page.

#1 Post by e-imi »

Hello~

I just joined today, you might have remembered a post I made as a guest a couple months ago, but that doesn't matter.

BTW, I use a Mac OSX.

I started up Ren'Py (finally) after downloading "My Teacher". I opened the program up, and it told me to pick the file. I picked the My teacher.py and it did nothing and closed the program. After that I got a Traceback.txt. I says this:
I'm sorry, but an exception occured while executing your Ren'Py
script.

AttributeError: 'module' object has no attribute 'font'

After initialization, but before game start.

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

File "/Users/e-imi/Desktop/My teacher - final 1.14-mac/renpy/bootstrap.py", line 165, in bootstrap
File "/Users/e-imi/Desktop/My teacher - final 1.14-mac/renpy/main.py", line 264, in main
File "/Users/e-imi/Desktop/My teacher - final 1.14-mac/renpy/display/core.py", line 888, in __init__
File "/Users/e-imi/Desktop/My teacher - final 1.14-mac/renpy/display/core.py", line 569, in __init__
AttributeError: 'module' object has no attribute 'font'

After initialization, but before game start.

Ren'Py Version: Ren'Py 5.6.4a
I just don't under stand it! I thought you guys would definatley know what I'm doing wrong and how I could fix it.

Please help~ I can't wait to start playing around in Ren'Py!!

Thank you, Merry Christmas and have a Happy New Year!

BTW, I hope I put this in the right forum~ ^^;
Last edited by e-imi on Sun Mar 18, 2007 3:13 am, edited 1 time in total.

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:

#2 Post by PyTom »

Well, you do need to run the app, as it includes libraries that aren't in the default mac install of Python.

The problem is we don't know why the app is failing. Could you run the "Console" program, and see if any output is written to it when running the app? Thanks.

Enerccio
Miko-Class Veteran
Posts: 616
Joined: Thu Oct 26, 2006 4:23 pm
Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
Location: Slovakia, Kosice
Contact:

#3 Post by Enerccio »

Sorry i cannot help, since i only posted what renpy compiled itself, and i dont have mac so i cannot really tell what is wrong. But i am glad, that you tryed my game :D
Image
http://www.bishojo.tk is technically ONLINE!
Songs of Araiah promo: http://www.youtube.com/watch?v=CalchucuoDU

e-imi
Newbie
Posts: 15
Joined: Thu Dec 28, 2006 3:28 am
Location: Canada
Contact:

#4 Post by e-imi »

PyTom wrote:Well, you do need to run the app, as it includes libraries that aren't in the default mac install of Python.

The problem is we don't know why the app is failing. Could you run the "Console" program, and see if any output is written to it when running the app? Thanks.
Okay, now this is getting a bit confusing with all this code and text. XD' -nervous laughter-

Okay, so when we ran the console program, this is what we got.
#!/usr/bin/env python

# Copyright 2004-2006 PyTom <pytom@bishoujo.us>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software,
# and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import os
import os.path
import sys

# Functions to be customized by distributors. ################################

# Given the Ren'Py base directory (usually the directory containing
# this file), this is expected to return the path to the common directory.
def path_to_common(renpy_base):
return renpy_base + "/common"

# Given a directory holding a Ren'Py game, this is expected to return
# the path to a directory that will hold save files.
def path_to_saves(gamedir):
return gamedir + "/saves"

# Returns the path to the Ren'Py base directory (containing common and
# the launcher, usually.)
def path_to_renpy_base():
renpy_base = os.path.dirname(sys.argv[0])
renpy_base = os.environ.get('RENPY_BASE', renpy_base)
renpy_base = os.path.abspath(renpy_base)

return renpy_base




##############################################################################

# The version of the Mac Launcher and py4renpy that we use.
mac_linux_version = (5, 6, 2)

if __name__ == "__main__":

# Check for mac compatibility.
if "mac_version" in globals():
mac_version(mac_linux_version)

# Check py4renpy compatibility.
try:
import py4renpy
if py4renpy.version < mac_linux_version:
print "The version of py4renpy that you are using is too old. Please go to"
print "http://www.bishoujo.us/renpy/linux.html, and download the latest"
print "version."
sys.exit(-1)
except ImportError:
pass

renpy_base = path_to_renpy_base()

# Add paths.
if os.path.exists(renpy_base + "/module"):
sys.path.append(renpy_base + "/module")

sys.path.append(renpy_base)

# This is looked for by the mac launcher.
if os.path.exists(renpy_base + "/renpy.zip"):
sys.path.append(renpy_base + "/renpy.zip")

# Start Ren'Py proper.
import renpy.bootstrap
renpy.bootstrap.bootstrap(renpy_base)
Heh heh heh... Does this help at all? Or did I just do it all wrong? ^^;;

-hits head-

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:

#5 Post by PyTom »

Well, this is very odd, since this is just the source code for Ren'Py. How are you running this?

What I suggest doing is:

- Downloading the latest version of Ren'Py. (Just so that I can easily remember the various filenames.)

- Run the console program. Click clear to clear it out.

- Double-click the renpy application.

- See if any messages show up on the console.

e-imi
Newbie
Posts: 15
Joined: Thu Dec 28, 2006 3:28 am
Location: Canada
Contact:

#6 Post by e-imi »

Well, I tried doing what you suggested (I think) and this is the message I got:
===== Fri Dec 29 2006 ===== 22:56:25 America/Canada
=====
File "/Users/e-imi/Desktop/My teacher - final 1.14-mac/renpy/bootstrap.py", line 165, in bootstrap
File "/Users/e-imi/Desktop/My teacher - final 1.14-mac/renpy/main.py", line 264, in main
File "/Users/e-imi/Desktop/My teacher - final 1.14-mac/renpy/display/core.py", line 888, in __init__
File "/Users/e-imi/Desktop/My teacher - final 1.14-mac/renpy/display/core.py", line 569, in __init__
AttributeError: 'module' object has no attribute 'font'

After initialization, but before game start.


When my Mom tried to originally download the Ren'Py 5.6.5 application on her Mac OSX G5 (Panther) she kept getting the message:

"Safari can’t open the page “http://localhost/dl/5.6.5/renpy-5.6.5-full.zip” because it could not connect to the server “localhost”.

The same happened when she tried to download the Ren'Py Launcher for Macintosh 5.6.2 (Mac OS X). It didn't work using Explorer either. She ended up getting my Dad to download both to his PC and then e-mailing the downloads to her. I'm wondering if something happened during this process which is causing problems now. :?
Image

e-imi
Newbie
Posts: 15
Joined: Thu Dec 28, 2006 3:28 am
Location: Canada
Contact:

#7 Post by e-imi »

I just tried to open the Ren'Py 5.6.5 application again and got this trace back message:

I'm sorry, but an exception occured while executing your Ren'Py
script.

Error: (-5551, 'undefined selector was passed to Gestalt')

While executing game script on line 5 of /home/tom/ab/renpy/data/editor.rpy.
While executing python code on line 18 of /home/tom/ab/renpy/data/editor.rpy.

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

File "/Users/e-imi/Ren'Py/renpy-5.6.5/renpy/bootstrap.py", line 165, in bootstrap
File "/Users/e-imi/Ren'Py/renpy-5.6.5/renpy/main.py", line 231, in main
File "/Users/e-imi/Ren'Py/renpy-5.6.5/renpy/execution.py", line 97, in run
File "/Users/e-imi/Ren'Py/renpy-5.6.5/renpy/ast.py", line 379, in execute
File "/Users/e-imi/Ren'Py/renpy-5.6.5/renpy/python.py", line 837, in py_exec_bytecode
File "/home/tom/ab/renpy/data/editor.rpy", line 18, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/platform.py", line 563, in mac_ver
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/platform.py", line 532, in _mac_ver_lookup
Error: (-5551, 'undefined selector was passed to Gestalt')

While executing game script on line 5 of /home/tom/ab/renpy/data/editor.rpy.
While executing python code on line 18 of /home/tom/ab/renpy/data/editor.rpy.

Ren'Py Version: Ren'Py 5.6.5b

Do you make anything of this?
Image

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:

#8 Post by PyTom »

This helps, thanks. I now have a good idea of what the problem is, where it's occuring, and how to fix it. (Unfortunately, it seems to be a bug in the version of Python Apple ships... which will make the workaround harder. I'll probably implement it in the launcher, which means that older games will work under the new launcher.)

Oh, I don't know why you would be seeing a link to localhost anywhere. It should be http://www.renpy.org in all cases. If you find that link, let me know how.

Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

#9 Post by Jake »

PyTom wrote:Oh, I don't know why you would be seeing a link to localhost anywhere. It should be http://www.renpy.org in all cases. If you find that link, let me know how.
On the "Download Ren'Py" page, the links are decribed as (e.g.):

Code: Select all

<a class="http" href="http:/dl/5.6.5/renpy-5.6.5-full.zip">renpy-5.6.5-full.zip</a>
- it seems that while Opera on my (G4 Powerbook) mac interprets this fine, Safari reads it as:

http://dl/5.6.5/renpy-5.6.5-full.zip

I guess there could be some version-of-Safari difference between my machine and e-imi's that causes it to look at localhost instead of trying to resolve 'dl', but I'm guessing it's the same 'problem'. As I understand it,

Code: Select all

<a class="http" href="./dl/5.6.5/renpy-5.6.5-full.zip">renpy-5.6.5-full.zip</a>
should be fine on all platforms, and any web browser should default to HTTP if the protocol isn't specified...



(Of course, Opera's clearly just being too permissive, Safari must be doing the technically-right thing. It's an Apple application, after all, and all Apple applications are utterly perfect. Uncle Steve told me so.)
Server error: user 'Jake' not found

NetGenSuperstar
Regular
Posts: 113
Joined: Sun Oct 08, 2006 1:29 am
Location: BEHIND YOU!!!
Contact:

#10 Post by NetGenSuperstar »

Jake wrote:On the "Download Ren'Py" page, the links are decribed as (e.g.):

Code: Select all

<a class="http" href="http:/dl/5.6.5/renpy-5.6.5-full.zip">renpy-5.6.5-full.zip</a>
- it seems that while Opera on my (G4 Powerbook) mac interprets this fine, Safari reads it as:

http://dl/5.6.5/renpy-5.6.5-full.zip
Yeah, I've noticed that, too. I use Safari as well.

e-imi
Newbie
Posts: 15
Joined: Thu Dec 28, 2006 3:28 am
Location: Canada
Contact:

#11 Post by e-imi »

Thanks everyone for helping me. I hope that Ren'Py will get fixed soon~

Happy New Year too!~
Image

e-imi
Newbie
Posts: 15
Joined: Thu Dec 28, 2006 3:28 am
Location: Canada
Contact:

#12 Post by e-imi »

Yay! n____n~

I so happy to see this OSX update, especially now that I have some time to dedicate to this program. Unfortunately, once again, I can't seem to get this new version working on my MAC OSX 3.9 Panther.

I followed all your steps exactly. First, I downloaded the game I wanted to play (My Teacher) Step 1, then I downloaded both the Ren'Py Launcher 6.1.0 and the renpy-6.1.0 (Step 2). Then I followed Step 3 by double-clicking Ren'Py Launcher 6.1.0. The program lauched as it should, asked me to select the game I wanted to play and I chose My Teacher.py. Then the lancher quit and I had the following trace back:
Traceback wrote:I'm sorry, but an exception occured while executing your Ren'Py
script.

AttributeError: 'module' object has no attribute 'font'

After initialization, but before game start.

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

File "/Users/e-imi/Desktop/Surprise!/renpy-6.1.0/renpy/bootstrap.py", line 166, in bootstrap
File "/Users/e-imi/Desktop/Surprise!/renpy-6.1.0/renpy/main.py", line 266, in main
File "/Users/e-imi/Desktop/Surprise!/renpy-6.1.0/renpy/display/core.py", line 900, in __init__
File "/Users/e-imi/Desktop/Surprise!/renpy-6.1.0/renpy/display/core.py", line 587, in __init__
AttributeError: 'module' object has no attribute 'font'

After initialization, but before game start.

Ren'Py Version: Ren'Py 6.1.0c
Again, I am stumped with this. :? What can I do? I'm really looking forward to playing and hopefully creating a game myself. Can you help? Am I simply forgetting a step or missing something? Thanks for any help with this.
Image

User avatar
DaFool
Lemma-Class Veteran
Posts: 4171
Joined: Tue Aug 01, 2006 12:39 pm
Contact:

#13 Post by DaFool »

You should be able to download and play My Teacher separately without needing the Launcher.

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:

#14 Post by PyTom »

Just a status report: I'm actively working on this, and I'll be releasing something that should work once I figure out the magic incantation to compile 10.3.9 stuff on 10.4. (Silly me, thinking it would just work.)
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

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:

#15 Post by PyTom »

Okay, could someone with Mac OS 10.3.9 try out the attached launcher? I think this should work, but I don't have a good way to test it.

Please let me know if this works, so I can release 6.1.1b with it.
Attachments
renpy-launcher-6.1.1.zip
(1.55 MiB) Downloaded 123 times
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: Ahrefs [Bot], jeffster, risukadekei