libplist NameError: libc
Reported by iconstate | 2012-09-16 05:50:55 UTC | in 1.2.0 Release
Traceback (most recent call last):
File "sb.py", line 20, in <module>
print(sbsclient.icon_state)
File "plist.pyx", line 136, in plist.Node.__str__ (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:2274)
File "plist.pyx", line 626, in plist.Array.get_value (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:11552)
File "plist.pyx", line 627, in plist.Array.get_value (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:11496)
File "plist.pyx", line 626, in plist.Array.get_value (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:11552)
File "plist.pyx", line 627, in plist.Array.get_value (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:11496)
File "plist.pyx", line 626, in plist.Array.get_value (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:11552)
File "plist.pyx", line 627, in plist.Array.get_value (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:11496)
File "plist.pyx", line 514, in plist.Dict.get_value (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:9026)
File "plist.pyx", line 516, in plist.Dict.get_value (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:8950)
File "plist.pyx", line 329, in plist.String.get_value (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:5975)
File "plist.pyx", line 334, in plist.String.get_value (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:5865)
NameError: libc
Comments and changes to this ticket
-

iconstate 2012-09-16 05:59:04 UTC
I think it doesn't like folders. Folders or Dict in Dict are missing from to_xml().
-

iconstate 2012-09-16 06:08:06 UTC
I get this in the python console.
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "plist.pyx", line 624, in plist.Array.__repr__ (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:11395) File "plist.pyx", line 624, in plist.Array.__repr__ (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:11395) File "plist.pyx", line 624, in plist.Array.__repr__ (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:11395) File "plist.pyx", line 512, in plist.Dict.__repr__ (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:8803) File "plist.pyx", line 294, in plist.String.__repr__ (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:5230) File "plist.pyx", line 334, in plist.String.get_value (/home/abuild/rpmbuild/BUILD/libplist-1.8/cython/plist.c:5865) NameError: libc -

iconstate 2012-09-18 03:43:46 UTC
Close this ticket. This error was on openSUSE 12.2. I built on Ubuntu 12.04 and do not have this error.
-

Martin S. 2012-10-21 15:33:01 UTC
- State changed from new to open
- Tag set to bindings, cython, libc, libplist, python
- Assigned user set to Martin S.
Was this maybe related or even caused by #287 ?
I kind of assume that the Cython bindings code requested a format 1 icon_state plist but failed as one would have to use format 2.
The Cython binding code wasn't probably handling this case and wrongly assumes a valid plist will always be returned which would have led to the libc error you reported.
-

-

Martin S. 2013-02-27 14:22:06 UTC
- State changed from open to resolved
Should be fixed in git master, please reopen if it's still valid.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A project around supporting the iPhone in Linux.
See http://libimobiledevice.org