Skip to content

p4a apk command results in: No such file or directory: 'src/main/assets/private.mp3' #1312

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

Closed
aricliu-markov opened this issue Jul 17, 2018 · 3 comments

Comments

@aricliu-markov
Copy link

Still getting this error despite seeing possible fixes in other issues(#1262) and cloning from master today.

p4a apk --private /Users/aricliu/helloworld/ --package=org.example.myapp --name "My application" --version 0.1 --bootstrap=sdl2 --requirements=python2,kivy --arch=armeabi-v7a

is the command I'm running.

Full traceback is:

File "/usr/local/bin/p4a", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/pythonforandroid/toolchain.py", line 975, in main
ToolchainCL()
File "/usr/local/lib/python2.7/site-packages/pythonforandroid/toolchain.py", line 512, in init
getattr(self, args.subparser_name.replace('-', '_'))(args)
File "/usr/local/lib/python2.7/site-packages/pythonforandroid/toolchain.py", line 150, in wrapper_func
func(self, args)
File "/usr/local/lib/python2.7/site-packages/pythonforandroid/toolchain.py", line 754, in apk
build_args = build.parse_args(args.unknown_args)
File "/Users/aricliu/.python-for-android/dists/unnamed_dist_1/build.py", line 567, in parse_args
make_package(args)
File "/Users/aricliu/.python-for-android/dists/unnamed_dist_1/build.py", line 248, in make_package
make_tar('src/main/assets/private.mp3', tar_dirs, args.ignore_path)
File "/Users/aricliu/.python-for-android/dists/unnamed_dist_1/build.py", line 187, in make_tar
tf = tarfile.open(tfn, 'w:gz', format=tarfile.USTAR_FORMAT)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.py", line 1693, in open
return func(name, filemode, fileobj, **kwargs)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.py", line 1740, in gzopen
fileobj = gzip.GzipFile(name, mode, compresslevel, fileobj)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gzip.py", line 94, in init
fileobj = self.myfileobj = builtin.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: 'src/main/assets/private.mp3'

@ghost
Copy link

ghost commented Aug 5, 2018

Same problem here on Fedora 28 with latest version from pip. (Having this issue with the python3crystax build)

@AndreMiras
Copy link
Member

seems to be the exact same as #1320 that was apparently solved with:

Update: instead of the latest regular version on pip, now I tried this version: https://github.com/kivy/python-for-android/archive/master.zip - and that one works! tada

@inclement
Copy link
Member

Apparently fixed on master.

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

3 participants