Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] #649

Closed
novifyeer opened this issue Apr 9, 2018 · 7 comments
Closed

FileNotFoundError: [Errno 2] #649

novifyeer opened this issue Apr 9, 2018 · 7 comments

Comments

@novifyeer
Copy link

 File "/home/sadikmaxlk/.local/bin/buildozer", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/dist-packages/buildozer-0.35.dev0-py3.5.egg/buildozer/scripts/client.py", line 13, in main
    Buildozer().run_command(sys.argv[1:])
  File "/usr/local/lib/python3.5/dist-packages/buildozer-0.35.dev0-py3.5.egg/buildozer/__init__.py", line 1058, in run_command
    self.target.run_commands(args)
  File "/usr/local/lib/python3.5/dist-packages/buildozer-0.35.dev0-py3.5.egg/buildozer/target.py", line 92, in run_commands
    func(args)
  File "/usr/local/lib/python3.5/dist-packages/buildozer-0.35.dev0-py3.5.egg/buildozer/target.py", line 104, in cmd_debug
    self.buildozer.build()
  File "/usr/local/lib/python3.5/dist-packages/buildozer-0.35.dev0-py3.5.egg/buildozer/__init__.py", line 212, in build
    self.target.build_package()
  File "/usr/local/lib/python3.5/dist-packages/buildozer-0.35.dev0-py3.5.egg/buildozer/targets/android.py", line 822, in build_package
    copyfile(join(apk_dir, apk), join(self.buildozer.bin_dir, apk_dest))
  File "/usr/lib/python3.5/shutil.py", line 114, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/home/sadikmaxlk/Desktop/pythonKivy/.buildozer/android/platform/build/dists/myapp/build/outputs/apk/myapp-debug.apk'

@zhaomh1998
Copy link

I believe it's a bug on buildozer. For my case I found my apk in
/.buildozer/android/platform/build/dists//bin

So look in
/home/sadikmaxlk/Desktop/pythonKivy/.buildozer/android/platform/build/dists/myapp/bin

@filipeaguiar22
Copy link

same here.
Found the file deep in the hidden buildozer folder

@guysoft
Copy link
Contributor

guysoft commented Jan 14, 2019

There is a line missing here that helps understand what is going on.
P4A is renaming the file based on the version number, and then buildozer does not find it:

INFO]:    # Add version number to APK
[INFO]:    # APK renamed to myapp-0.1-debug.apk
[DEBUG]:   -> running cp /buildozer/.buildozer/android/platform/build/dists/myapp/build/outputs/apk/debug/myapp-debug.apk myapp-0.1-debug.apk
WARNING: Received a --sdk argument, but this argument is deprecated and does nothing.
No compiled python is present to zip, skipping.
Traceback (most recent call last):
  File "/usr/local/bin/buildozer", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/buildozer/scripts/client.py", line 13, in main
    Buildozer().run_command(sys.argv[1:])
  File "/usr/local/lib/python3.6/dist-packages/buildozer/__init__.py", line 1059, in run_command
    self.target.run_commands(args)
  File "/usr/local/lib/python3.6/dist-packages/buildozer/target.py", line 92, in run_commands
    func(args)
  File "/usr/local/lib/python3.6/dist-packages/buildozer/target.py", line 104, in cmd_debug
    self.buildozer.build()
  File "/usr/local/lib/python3.6/dist-packages/buildozer/__init__.py", line 212, in build
    self.target.build_package()
  File "/usr/local/lib/python3.6/dist-packages/buildozer/targets/android.py", line 871, in build_package
    copyfile(join(apk_dir, apk), join(self.buildozer.bin_dir, apk_dest))
  File "/usr/lib/python3.6/shutil.py", line 120, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/buildozer/.buildozer/android/platform/build/dists/myapp/build/outputs/apk/myapp-debug.apk'

@guysoft
Copy link
Contributor

guysoft commented Jan 14, 2019

@guysoft
Copy link
Contributor

guysoft commented Jan 15, 2019

There is a change in #700 that clams to fix it. Will try ton install buildozer from master and see if it works

guysoft added a commit to guysoft/p4a-build-spaces that referenced this issue Jan 15, 2019
@guysoft
Copy link
Contributor

guysoft commented Jan 15, 2019

This issue can be closed, the solution is already merged to master.

The following fixed it for me:

pip3 install https://github.com/kivy/buildozer/archive/master.zip

@inclement
Copy link
Member

Closing as stale, I think this is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants