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

p4a apk webview bug #738

Closed
jligeza opened this issue May 11, 2016 · 3 comments
Closed

p4a apk webview bug #738

jligeza opened this issue May 11, 2016 · 3 comments

Comments

@jligeza
Copy link

jligeza commented May 11, 2016

When I run p4a apk --private=/path --package=org.test.webview --name="webview test" --version=0.1, I get this error:

[INFO]: webviewtest has compatible recipes, using this one
[INFO]: -> directory context /home/stefan/.local/share/python-for-android/dists/webviewtest
Traceback (most recent call last):
File "/usr/local/bin/p4a", line 9, in
load_entry_point('python-for-android==0.3', 'console_scripts', 'p4a')()
File "/usr/local/lib/python2.7/dist-packages/python_for_android-0.3-py2.7.egg/pythonforandroid/toolchain.py", line 745, in main
ToolchainCL()
File "/usr/local/lib/python2.7/dist-packages/python_for_android-0.3-py2.7.egg/pythonforandroid/toolchain.py", line 334, in init
getattr(self, args.command)(unknown)
File "/usr/local/lib/python2.7/dist-packages/python_for_android-0.3-py2.7.egg/pythonforandroid/toolchain.py", line 94, in wrapper_func
func(self, args)
File "/usr/local/lib/python2.7/dist-packages/python_for_android-0.3-py2.7.egg/pythonforandroid/toolchain.py", line 580, in apk
build_args = build.parse_args(args)
File "/home/stefan/.local/share/python-for-android/dists/webviewtest/build.py", line 487, in parse_args
make_package(args)
File "/home/stefan/.local/share/python-for-android/dists/webviewtest/build.py", line 241, in make_package
make_tar('assets/private.mp3', tar_dirs, args.ignore_path)
File "/home/stefan/.local/share/python-for-android/dists/webviewtest/build.py", line 173, in make_tar
files += [(x, relpath(realpath(x), sd)) for x in listfiles(sd)
File "/home/stefan/.local/share/python-for-android/dists/webviewtest/build.py", line 98, in listfiles
for item in os.listdir(d):
OSError: [Errno 2] No such file or directory: '/home/stefan/.local/share/python-for-android/dists/webviewtest/webview_includes'

This can be fixed by creating the webview_includes directory manually.

@inclement
Copy link
Member

I just pushed a fix to make sure setup.py installs this folder, so this should be fixed. Could you verify if that's indeed worked?

@jligeza
Copy link
Author

jligeza commented May 11, 2016

@inclement I can confirm it works now.

@inclement
Copy link
Member

Great, thanks for reporting it and giving the debug information!

On 11/05/16 21:09, jligeza wrote:

@inclement https://github.com/inclement I can confirm it works now.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#738 (comment)

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

2 participants