P4A : ValueError: name is too long

48 views
Skip to first unread message

Joey daniel darko

unread,
Sep 26, 2016, 2:26:04 PM9/26/16
to Kivy users support
Hi, finally i have been able to cross all the obstacles that prevented me from using p4a but after running for sometime, i finally get slapped with this error.. please what's the problem. thanks
[INFO]:    -> directory context /home/mcroni/.local/share/python-for-android/dists/unnamed_dist_2
Traceback (most recent call last):
 
File "/usr/local/bin/p4a", line 9, in <module>
    load_entry_point
('python-for-android==0.4', 'console_scripts', 'p4a')()
 
File "/usr/local/lib/python2.7/dist-packages/python_for_android-0.4-py2.7.egg/pythonforandroid/toolchain.py", line 795, in main
   
ToolchainCL()
 
File "/usr/local/lib/python2.7/dist-packages/python_for_android-0.4-py2.7.egg/pythonforandroid/toolchain.py", line 470, in __init__
    getattr
(self, args.subparser_name.replace('-', '_'))(args)
 
File "/usr/local/lib/python2.7/dist-packages/python_for_android-0.4-py2.7.egg/pythonforandroid/toolchain.py", line 147, in wrapper_func
    func
(self, args)
 
File "/usr/local/lib/python2.7/dist-packages/python_for_android-0.4-py2.7.egg/pythonforandroid/toolchain.py", line 653, in apk
    build_args
= build.parse_args(args.unknown_args)
 
File "/home/mcroni/.local/share/python-for-android/dists/unnamed_dist_2/build.py", line 491, in parse_args
    make_package
(args)
 
File "/home/mcroni/.local/share/python-for-android/dists/unnamed_dist_2/build.py", line 248, in make_package
    make_tar
('assets/private.mp3', tar_dirs, args.ignore_path)
 
File "/home/mcroni/.local/share/python-for-android/dists/unnamed_dist_2/build.py", line 197, in make_tar
    tf
.add(fn, afn)
 
File "/usr/lib/python2.7/tarfile.py", line 2016, in add
   
self.addfile(tarinfo, f)
 
File "/usr/lib/python2.7/tarfile.py", line 2039, in addfile
    buf
= tarinfo.tobuf(self.format, self.encoding, self.errors)
 
File "/usr/lib/python2.7/tarfile.py", line 1000, in tobuf
   
return self.create_ustar_header(info)
 
File "/usr/lib/python2.7/tarfile.py", line 1017, in create_ustar_header
    info
["prefix"], info["name"] = self._posix_split_name(info["name"])
 
File "/usr/lib/python2.7/tarfile.py", line 1104, in _posix_split_name
   
raise ValueError("name is too long")
ValueError: name is too long


Alexander Taylor

unread,
Sep 26, 2016, 6:41:31 PM9/26/16
to Kivy users support
We've seen this happen in file paths that are extremely long before, but I don't know exactly what causes it. What is the path to your app dir?

Joey daniel darko

unread,
Sep 26, 2016, 10:38:08 PM9/26/16
to Kivy users support
Thanks the path is home/mcroni/build_1
,thank you
Reply all
Reply to author
Forward
0 new messages