[solved]ren'py for android compiling error?

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
k i r a
Regular
Posts: 34
Joined: Sat Nov 04, 2006 9:39 pm
Contact:

[solved]ren'py for android compiling error?

#1 Post by k i r a »

I see noone could save my last post...I hope this time anyone can help me...

well, I installed python 2.7, java SDK, android SDK, apache ant, and Ren'py apk pack.
And I wrote in the command prompt:

Code: Select all

build.py --dir ht --name "harutsubaki" --version 1.0 debug
I've got this traceback:

Code: Select all

Traceback(most recent call last):
File(C:\renpyapk\build.py), line 17, in <module>
import jinja2
import error: no module named jinja2
please, please help me!!
Last edited by k i r a on Thu Jul 14, 2011 9:14 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:

Re: ren'py for android compiling error?

#2 Post by PyTom »

For now, do easy_install jinja2 to get it.
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

k i r a
Regular
Posts: 34
Joined: Sat Nov 04, 2006 9:39 pm
Contact:

Re: ren'py for android compiling error?

#3 Post by k i r a »

thank you, PyTom, it worked, but worked pretty bad...

now I've got something like this and I'm really lost, maybe more than installing jinja2...

Code: Select all

C:\>build.py --dir ht --package com.blogspot.ri-thum.harutsubaki \ --name "harut
subaki" --version 1.0
Traceback (most recent call last):
  File "C:\renpyapk\build.py", line 296, in <module>
    make_package(args)
  File "C:\renpyapk\build.py", line 183, in make_package
    manifest_extra = manifest_extra,
  File "C:\renpyapk\build.py", line 71, in render
    template = environment.get_template(template)
  File "C:\Python27\lib\site-packages\jinja2-2.5.5-py2.7.egg\jinja2\environment.
py", line 716, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "C:\Python27\lib\site-packages\jinja2-2.5.5-py2.7.egg\jinja2\environment.
py", line 690, in _load_template
    template = self.loader.load(self, name, globals)
  File "C:\Python27\lib\site-packages\jinja2-2.5.5-py2.7.egg\jinja2\loaders.py",
 line 115, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "C:\Python27\lib\site-packages\jinja2-2.5.5-py2.7.egg\jinja2\loaders.py",
 line 180, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: AndroidManifest.tmpl.xml
and, if I include debug in the code, I get this:

Code: Select all

C:\>build.py --dir ht --package com.blogspot.ri-thum.harutsubaki \ --name "harut
subaki" --version 1.0 debug
usage: build.py [-h] --package PACKAGE --name NAME --version VERSION
                [--numeric-version NUMERIC_VERSION] [--dir DIR]
                [--private PRIVATE] [--launcher] [--icon-name ICON_NAME]
                [--orientation ORIENTATION] [--permission PERMISSIONS]
                [--icon ICON] [--presplash PRESPLASH]
                [--install-location INSTALL_LOCATION] [--compile-pyo]
                [--with-sqlite3] [--with-PIL]
                command
build.py: error: unrecognized arguments: debug
help me!

k i r a
Regular
Posts: 34
Joined: Sat Nov 04, 2006 9:39 pm
Contact:

Re: ren'py for android compiling error?

#4 Post by k i r a »

I've re-installed the jdk, python, ant, android sdk, and tried again, but the situation ins the same.
the only different thing is that debug is recognized.

so, the code and error are:

Code: Select all

C:\>build.py --dir ht --package harutsubaki --name "harutsubaki"
--version 1.0 debug
Traceback (most recent call last):
  File "C:\renpyapk\build.py", line 296, in <module>
    make_package(args)
  File "C:\renpyapk\build.py", line 183, in make_package
    manifest_extra = manifest_extra,
  File "C:\renpyapk\build.py", line 71, in render
    template = environment.get_template(template)
  File "C:\Python27\lib\site-packages\jinja2-2.5.5-py2.7.egg\jinja2\environment.
py", line 716, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "C:\Python27\lib\site-packages\jinja2-2.5.5-py2.7.egg\jinja2\environment.
py", line 690, in _load_template
    template = self.loader.load(self, name, globals)
  File "C:\Python27\lib\site-packages\jinja2-2.5.5-py2.7.egg\jinja2\loaders.py",
 line 115, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "C:\Python27\lib\site-packages\jinja2-2.5.5-py2.7.egg\jinja2\loaders.py",
 line 180, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: AndroidManifest.tmpl.xml
am I doing the right thing?
(I installed the things and configured the path, and typed build.py......in command prompt.)
if I am, why does it appear? :(

now, hoping someone can help me.......I'm really desperated.

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: ren'py for android compiling error?

#5 Post by PyTom »

Does AndroidManifest.tmpl.xml exist in the templates directory?
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

k i r a
Regular
Posts: 34
Joined: Sat Nov 04, 2006 9:39 pm
Contact:

Re: ren'py for android compiling error?

#6 Post by k i r a »

you mean, in templates directory of Ren'py packaging tool?
yes, it exists.

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: ren'py for android compiling error?

#7 Post by PyTom »

Hm... you seem to be pulling in jinja from site-packages, rather than using the included version. Perhaps you can try removing that install?
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

k i r a
Regular
Posts: 34
Joined: Sat Nov 04, 2006 9:39 pm
Contact:

Re: ren'py for android compiling error?

#8 Post by k i r a »

well, thank you, PyTom,
I tried without including th Ren'py apk path, and it worked.

How is it...?

Anyway, thank you for the support!! :D

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]