Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

libplist NameError: libc

#286
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

Reported by iconstate · September 16th, 2012 @ 05:50 AM

State: resolved
Milestone: 1.2.0 Release
Assigned to: Martin S. Martin S.

Activity

  1. iconstate
    iconstate

    I think it doesn't like folders. Folders or Dict in Dict are missing from to_xml().

    September 16th, 2012 @ 05:59 AM

  2. iconstate
    iconstate

    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
    

    September 16th, 2012 @ 06:08 AM

  3. iconstate
    iconstate

    Close this ticket. This error was on openSUSE 12.2. I built on Ubuntu 12.04 and do not have this error.

    September 18th, 2012 @ 03:43 AM

  4. Martin S.
    Martin S.
    • 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 Python imobiledevice.SpringboardServicesClient.icon_state Does Not Have Subfo... ?

    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.

    October 21st, 2012 @ 03:33 PM

  5. Martin S.
    Martin S.
    • Milestone set to 1.2.0 Release

    Assigning to next milestone.

    February 12th, 2013 @ 02:00 PM

  6. Martin S.
    Martin S.
    • State changed from open to resolved

    Should be fixed in git master, please reopen if it's still valid.

    February 27th, 2013 @ 02:22 PM

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.