buildozer can't find main.py

1,107 views
Skip to first unread message

Cristiano Araujo

unread,
Apr 21, 2014, 10:28:03 AM4/21/14
to kivy-...@googlegroups.com
   with open(fn) as fd:
IOError: [Errno 2] No such file or directory: './main.py'

when i try to deploy my app to apk this error occurs everytime! someone can help me to fix this?

Ben Rousch

unread,
Apr 21, 2014, 10:32:31 AM4/21/14
to kivy-...@googlegroups.com
Make sure that the relative path you specify on Line 13 of your buildozer.spec points to where your main.py is located.


--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
 Ben Rousch
   bro...@gmail.com
   http://clusterbleep.net/

Cristiano Araujo

unread,
Apr 21, 2014, 11:30:48 AM4/21/14
to kivy-...@googlegroups.com


Traceback (most recent call last):
  File "/usr/local/bin/buildozer", line 9, in <module>
    load_entry_point('buildozer==0.15-dev', 'console_scripts', 'buildozer')()
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.15_dev-py2.7.egg/buildozer/scripts/client.py", line 13, in main
    Buildozer().run_command(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.15_dev-py2.7.egg/buildozer/__init__.py", line 957, in run_command
    self.target.run_commands(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.15_dev-py2.7.egg/buildozer/target.py", line 85, in run_commands
    func(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.15_dev-py2.7.egg/buildozer/target.py", line 97, in cmd_debug
    self.buildozer.build()
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.15_dev-py2.7.egg/buildozer/__init__.py", line 193, in build
    self.target.build_package()
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.15_dev-py2.7.egg/buildozer/targets/android.py", line 450, in build_package
    version = self.buildozer.get_version()
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.15_dev-py2.7.egg/buildozer/__init__.py", line 648, in get_version

Cristiano Araujo

unread,
Apr 21, 2014, 11:32:27 AM4/21/14
to kivy-...@googlegroups.com
main.py is my app or other directory. i'm totally newbie.

Cristiano Araujo

unread,
Apr 21, 2014, 11:37:34 AM4/21/14
to kivy-...@googlegroups.com
where can i find main.py? inside buildozer there's no main.py.

 # (str) Source code where the main.py live
source.dir = .

how can i put on this line?

Ben Rousch

unread,
Apr 21, 2014, 11:39:45 AM4/21/14
to kivy-...@googlegroups.com
Your buildozer.spec is in some directory. You run the buildozer command from that directory. Your main.py may be in that same directory, or some other. Line 13 of your buildozer.spec says where your main.py is relative to the buildozer.spec directory.

main.py is what you must name the initial entry point of your app. When you are testing locally, you would run `python main.py` (or `kivy main.py` on some platforms). If you're running some other file, you need to rename it to main.py.


--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Cristiano Araujo

unread,
Apr 21, 2014, 11:43:21 AM4/21/14
to kivy-...@googlegroups.com


Cristiano Araujo

unread,
Apr 21, 2014, 11:47:15 AM4/21/14
to kivy-...@googlegroups.com
thanks a lot! works fine! i gave it a version int method 2 and my apk file was created!

On Monday, April 21, 2014 12:43:21 PM UTC-3, Cristiano Araujo wrote:


Reply all
Reply to author
Forward
0 new messages